
crowdsec
Silent install package for crowdsec
1.6.5-1
- package: tis-crowdsec
- name: crowdsec
- version: 1.6.5-1
- maintainer: WAPT Team,Tranquil IT,Amel FRADJ
- licence: MIT license
- target_os: windows
- architecture: x64
- signature_date:
- size: 93.18 Mo
- homepage : crowdsec.net
package : tis-crowdsec
version : 1.6.5-1
architecture : x64
section : base
priority : optional
name : crowdsec
categories :
maintainer : WAPT Team,Tranquil IT,Amel FRADJ
description : CrowdSec is a free, modern and collaborative behavior detection engine, coupled with a global IP reputation network
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version :
sources : https://github.com/crowdsecurity/crowdsec
installed_size :
impacted_process :
description_fr : CrowdSec est un moteur de détection des comportements gratuit, moderne et collaboratif, associé à un réseau mondial de réputation IP
description_pl : CrowdSec to darmowy, nowoczesny i oparty na współpracy mechanizm wykrywania zachowań, połączony z globalną siecią reputacji IP
description_de : CrowdSec ist eine kostenlose, moderne und kollaborative Verhaltenserkennungs-Engine, gekoppelt mit einem globalen IP-Reputationsnetzwerk
description_es : CrowdSec es un motor de detección de comportamientos gratuito, moderno y colaborativo, unido a una red global de reputación IP
description_pt : O CrowdSec é um motor de deteção de comportamentos gratuito, moderno e colaborativo, associado a uma rede global de reputação de IP
description_it : CrowdSec è un motore di rilevamento del comportamento gratuito, moderno e collaborativo, abbinato a una rete globale di reputazione IP
description_nl : CrowdSec is een gratis, moderne en collaboratieve engine voor gedragsdetectie, gekoppeld aan een wereldwijd IP-reputatienetwerk
description_ru : CrowdSec - это бесплатная, современная и совместная система обнаружения поведения в сочетании с глобальной сетью IP-репутации
audit_schedule :
editor :
keywords :
licence : MIT license
homepage : crowdsec.net
package_uuid : 299cb185-4523-402c-96e2-63eebb957bf6
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version : 10.0
max_os_version :
icon_sha256sum : da6ec54d1ffb8c7cb932e0523ea3d545a3a0a273a5f79b0e77af9de07e49f6f1
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2025-02-18T15:01:54.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature : Tb3eMl312lgjoBtKICORhFS5mm2LPtZJ/CSlWLGvk7T2CY9L64EtqbpaPg5a7Pf2LgrFEpVh9OdTwExAghxOrscNs64jDydoGggWMXgoDi8gaSbM2HDmJmJZ9wX/S+YQsIXJdvh4FKWmvQB7s87OPj/TAn8Jo9CdiujspdvQkc0nT13oizX0AE5y3BJ7IQjC1/0r5GEsW1/2gkFqNTLqzIO6qS0IqFW+WjXUiSpfdT/gJerBx/PHJfS8Zt1svrxYPDMQ6ZMS0n/0pT/DWcVUJyFvak37NiMfCNgRDCSOPC/tq9DBI7+UGERFMS79C0QBcsBm934A5n9KOZLMq+G/KA==
# -*- coding: utf-8 -*-
from setuphelpers import *
r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
def install():
# Declaring local variables
bin_name = glob.glob('crowdsec_*.msi')[0]
# Uninstalling older major versions of the software
for to_uninstall in installed_softwares(name="crowdsec"):
if Version(to_uninstall["version"]) < Version(control.get_software_version()) or force:
print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
killalltasks(ensure_list(control.impacted_process))
run(uninstall_cmd(to_uninstall["key"]))
wait_uninstallkey_absent(to_uninstall["key"])
# Installing the software
install_msi_if_needed(bin_name)
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import json
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
def update_package():
result = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
git_repo = "crowdsecurity/crowdsec"
url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo
# Getting latest version information from official sources
print("API used is: %s" % url_api)
json_load = json.loads(wgets(url_api, proxies=proxies))
for download in json_load["assets"]:
if download["browser_download_url"].endswith('.msi') :
url_dl = download["browser_download_url"]
version = json_load["tag_name"].replace("v","")
filename = download["name"]
break
if not isfile(filename):
package_updated = True
wget(url_dl,filename,proxies=proxies)
#nettoyer les fichiers temporaires
for f in glob.glob('*.msi'):
if f != filename:
remove_file(f)
version =get_version_from_binary(filename)
control.set_software_version(version)
control.save_control_to_wapt()
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
a0cd5d17e0e7b14eba79889b67733f49c38d7c1729f52f4a3f03aafd4e947498 : WAPT/control
da6ec54d1ffb8c7cb932e0523ea3d545a3a0a273a5f79b0e77af9de07e49f6f1 : WAPT/icon.png
b09d5867cf0381f86afbcba2422fa68982c7d39c7f85d51c2c67c22a14f10983 : crowdsec_1.6.5.msi
c85ae16c826db11c12c94b744f4705b9dd935a0b07d81200664b9e002fb8f8a2 : luti.json
4eb75a6a865caaff163f814e17e40b74d4bc8353813e8684422933a878e7acb8 : setup.py
6ac0f5d3f65cff87f7838f158441d7c9ade346d0c813829b053765d09787a186 : update_package.py