tis-crowdsec

1.6.3-1
CrowdSec is a free, modern and collaborative behavior detection engine, coupled with a global IP reputation network
1016 downloads
Download
See build result See VirusTotal scan
tis-crowdsec icon
  • package : tis-crowdsec
  • name : crowdsec
  • version : 1.6.3-1
  • categories :
  • maintainer : WAPT Team,Tranquil IT,Amel FRADJ
  • editor :
  • licence : MIT license
  • locale :
  • target_os : windows
  • impacted_process :
  • architecture : x64
  • signature_date : 2024-09-21 10:00
  • size : 62.37 Mo
  • homepage : crowdsec.net
package           : tis-crowdsec
version           : 1.6.3-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      : 3b11e350-62be-4e8d-ad9c-9d17646548dc
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    : 2024-09-21T10:00:43.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         : FqrXLiZ0de1feFwXAMDgHgEsYxoabuUFOOzsF+RrKDkBJk5l7GSdJ1rQVf/3+RidvrmIfGqee7ysky7IBbR+sp31LYufM7sqahgCyhV+BjUMAoN32DTaTaGD5qLoNn/CdT5JAE+zZ3kJw4+OVBppYzrjtj/cdYcuIbBgVgx2vAVtRopnbMOaUaajsDZLHZ8X199U3LcMvyXq5S6NylfRbpg5CrJcTqaeyHGU5jY0RTtMXKTwWEtPWfeKiC9dNEhr0qhsP1zvTN5XuIUaTiR53OkvgG+I78CpXs8/N4wcBWeweLmXirvJBok1NDO16Dl84pT0GDbz0cOB3GwWtaT2eQ==
# -*- 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
1f7acb8ffc7e50ad6d06a0c2f77f1bb96814909c0ea902f9698e7a399c4aeff1 : WAPT/control
da6ec54d1ffb8c7cb932e0523ea3d545a3a0a273a5f79b0e77af9de07e49f6f1 : WAPT/icon.png
d3401a91596768925b60ef517c08ad6f055b21bf0ed333c3500d600b7f205b0e : crowdsec_1.6.3.msi
8fe6f343232f97536d572d1a373716bf91aa1bf7a55f951d567505985ef6aaad : luti.json
4eb75a6a865caaff163f814e17e40b74d4bc8353813e8684422933a878e7acb8 : setup.py
6ac0f5d3f65cff87f7838f158441d7c9ade346d0c813829b053765d09787a186 : update_package.py