tis-malwarebytes icon

Malwarebytes

Silent install package for Malwarebytes

4.6.14.402-6

  • package: tis-malwarebytes
  • name: Malwarebytes
  • version: 4.6.14.402-6
  • categories: Security
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor: Malwarebytes
  • licence: freemium
  • locale: all
  • target_os: windows
  • impacted_process: mbam,MbamBgNativeMsg,MBAMInstallerService,MbamPt,MBAMService,mbamtray,MBAMWsc,mbuns,malwarebytes_assistant
  • architecture: all
  • signature_date:
  • size: 1.45 Mo
  • installed_size: 250.85 Mo
  • homepage : https://fr.malwarebytes.com/

package           : tis-malwarebytes
version           : 4.6.14.402-6
architecture      : all
section           : base
priority          : optional
name              : Malwarebytes
categories        : Security
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : Malwarebytes is an anti-malware software that finds and removes malware
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://www.malwarebytes.com/mwb-download
installed_size    : 250847232
impacted_process  : mbam,MbamBgNativeMsg,MBAMInstallerService,MbamPt,MBAMService,mbamtray,MBAMWsc,mbuns,malwarebytes_assistant
description_fr    : Malwarebytes est un logiciel créé pour détecter et supprimer les logiciels malveillants
description_pl    : Malwarebytes to oprogramowanie anty-malware, które znajduje i usuwa złośliwe oprogramowanie
description_de    : Malwarebytes ist eine Anti-Malware-Software, die Malware findet und beseitigt
description_es    : Malwarebytes es un software antimalware que encuentra y elimina el malware
description_pt    : Malwarebytes é um software anti-malware que encontra e remove malware
description_it    : Malwarebytes è un software anti-malware che trova e rimuove il malware
description_nl    : Malwarebytes is een anti-malware software die malware vindt en verwijdert
description_ru    : Malwarebytes - это антивирусное программное обеспечение, которое находит и удаляет вредоносные программы
audit_schedule    : 
editor            : Malwarebytes
keywords          : malware,spyware,ads
licence           : freemium
homepage          : https://fr.malwarebytes.com/
package_uuid      : 187e40b8-4d34-4bad-b7f0-a1a23d1495eb
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 6.1
max_os_version    : 
icon_sha256sum    : 1fe4f6c86e0972272f4398673d2c3cfecbdfc2436f9d0e407aef7e4aeef95354
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : xkqssoVO9om60ibex/HTfxSWVqq8QG5PzknkvZJXe6q6d/NyQUFtzyIDJH/I4dQR6p1HenG3ObHZ+IuUEY66oTVNzdWykrSLwVC18PCYDPtz4RQ8zBaYIdmOuCeGL8MdkiwvwcuIyRGYa26iKsECe4M11Sx39mpFzK1fh4pkVk6OvC3w6w2V0vl50SStCm4tQXNVrqeQUUTdW+DXP1i+5+WiFo7VoN5dyd2gKecI9yn1FFxN/MGUIGCzIlqyUAv8xrpkILeOqVKcZNLtdrVzuWkCbxNPuaXFI8tVASkAOxbSIr7uwtvMsLBTETHKoWBR4FTiP5JnjST5PFiRNZoabg==
signature_date    : 2024-06-08T18:00:12.752356
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

# -*- 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
bin_name = "MBSetup.exe"
silentflags = "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART"
app_uninstallkey = "{35065F43-4BB2-439A-BFF7-0F1014F2E0CD}_is1"
app_editor_dir = makepath(programfiles, "Malwarebytes")
app_dir = makepath(programfiles, "Malwarebytes", "Anti-Malware")
bin_path = makepath(app_dir, "mbuns.exe")


def install():
    # Declaring local variables
    package_version = control.get_software_version()

    # Installing the software
    print("Installing: %s (%s)" % (control.name, package_version))
    install_exe_if_needed(bin_name, silentflags=silentflags, key=app_uninstallkey, min_version="", timeout=600)

    # Avoiding the usage by WAPT of the app built-in Uninstallstring
    uninstallkey.remove(app_uninstallkey)


def audit():
    # Declaring local variables
    package_version = control.version.split("-", 1)[0]
    app_name = control.name

    # Getting installed software version
    if installed_softwares(uninstallkey=app_uninstallkey):
        installed_version = installed_softwares(uninstallkey=app_uninstallkey)[0]["version"]
    else:
        installed_version = None

    # Auditing software
    print("Auditing: %s" % control.package)
    if installed_version is None:
        print("%s is not installed" % (app_name, installed_version))
        return "ERROR"
    else:
        print("%s is installed in correct version (%s)" % (app_name, installed_version))
        return "OK"


def uninstall():
    # Uninstalling the software
    for to_uninstall in installed_softwares(app_uninstallkey):
        print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
        killalltasks(control.impacted_process.split(","))
        run([bin_path] + ["/VERYSILENT"] + ["/NORESTART"])
        wait_uninstallkey_absent(to_uninstall["key"])
    """ if service_installed("MBAMService"):
        service_delete("MBAMService") """
    """ if isdir(app_dir):
        killalltasks(control.impacted_process.split(","))
        print("Removing: %s" % (app_dir))
        remove_tree(app_dir)
    if isdir(app_editor_dir) and dir_is_empty(app_editor_dir):
        print("Removing: %s since he is empty" % (app_editor_dir))
        remove_tree(app_editor_dir) """

# -*- coding: utf-8 -*-
from setuphelpers import *
import platform


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    url = "https://www.malwarebytes.com/mwb-download"
    download_url = "https://data-cdn.mbamupdates.com/web/mb4-setup-consumer/MBSetup.exe"
    latest_bin = download_url.split("/")[-1]

    # Downloading latest binaries
    if not isfile(latest_bin):
        remove_file(latest_bin)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)

    # Checking version from file
    version = get_version_from_binary(latest_bin, "FileVersion")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    # control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return result

60fcf66adaf6443786899e2fb2cda116eabde54064aaf7af2cf9482b8520cc1a : setup.py
c39c4e3985810f7e1a13892a9aeec6649c5a9d626536d25594bd28a79e1fe633 : update_package.py
1fe4f6c86e0972272f4398673d2c3cfecbdfc2436f9d0e407aef7e4aeef95354 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
4fc58a3479f8238e4f16dc3eaca2ee1223d9c93c995f98b24b3718a87277ace6 : WAPT/changelog.txt
78b8c308f09e69e35cfd15eb886cb022fa8e329d7e7abb50c89fb2cbc1cc3dff : luti.json
fac81ed928b9c2afad4f0fc86165159142f98ee70e0e7f588a7a9b2d5462952f : MBSetup.exe
0be3a8be416bbf2a34172ea76c6ac8584d3fbd15bd87d89d9f7f52b6f4d7262d : WAPT/control

4.5.2.260-5
===
split update package