
Disable SMBv3 Compression
Paquet d’installation silencieuse pour Disable SMBv3 Compression
2.0-1
- package: tis-disable-smbv3-compression
- name: Disable SMBv3 Compression
- version: 2.0-1
- categories: System and network
- maintainer: WAPT Team,Jimmy PELÉ
- target_os: windows
- architecture: all
- signature_date:
- size: 9.94 Ko
package : tis-disable-smbv3-compression
version : 2.0-1
architecture : all
section : base
priority : optional
name : Disable SMBv3 Compression
categories : System and network
maintainer : WAPT Team,Jimmy PELÉ
description : Disabling SMBv3 Compression during the 0-day vulnerability phase on Windows 10 and Windows Server 2016/2019
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_os_version : 10.0
max_os_version :
min_wapt_version : 1.5
sources :
installed_size :
impacted_process :
description_fr : Désactiver la compression SMBv3 pendant la phase de vulnérabilité 0-day sur Windows 10 et Windows Server 2016/2019
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor :
keywords :
licence :
homepage :
package_uuid : af4aa872-727a-413a-8dfd-94625dc178a7
valid_from :
valid_until :
forced_install_on :
changelog :
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : y/eoz5vPMFWd0Ye9YfBxp14Ggu3lRiPoJejGyLGIEWdXfx3D9Tol1K+eBaAYO9Q/JA2N1D7vV8MaSh+Az331kTydsP80qBAEyrJjGdSyASMxDimRR4jS8FN+5jsZdZAZsL9ZIyREiZGrJkJjnCk7sajHkksjsjEo5vIWf4wuWiDqC7vno3JDyfvgMCiunf1MOGr/sA08STSwLeB7uG+vYHfzjeZRaDKaWbAa0ZyIyBpqII+QQ6AZqcSGNXRiMkG7spRS+lmEkrnbizv7zluUZ5SZ9N0/pUBIkZzDN9VvCyHU5EKb907KhfoVcKPEe0fNtHMPGIniS8UsCye5tx0pdQ==
signature_date : 2020-10-22T10:12:02.658676
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,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,signer,signer_fingerprint,signature_date,signed_attributes
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
pass
# put here what to do when package is installed on host
# implicit context variables are WAPT, basedir, control, user, params, run
registry_set(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters','DisableCompression',1)
def uninstall():
pass
# put here what to do when package is removed from host
# implicit context variables are WAPT, control, user, params, run
registry_set(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters','DisableCompression',0)
def audit():
pass
# put here code to check periodically that state is matching expectations
# return "OK", "WARNING" or "ERROR" to report status in console.
# all print statement are reported too
smb_comp_status = str(registry_readstring(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters','DisableCompression'))
if smb_comp_status == '1':
print('The SMBv3 Compression is actually disabled, all good!')
return "OK"
elif smb_comp_status == '0':
print('The SMBv3 Compression is actually enabled, please be careful!')
return "WARNING"
else:
print('The SMBv3 Compression option is not applied, meaning she is enabled, please be careful!')
return "WARNING"
def update_package():
pass
a2ce4257883413a29ef9287d3cb21fcda634354cea13c307cda90680c61ae199 : .vscode/launch.json
7a50879cdebb2f179b6a22fc497c263a99aba65a8694f0f791985ca67d7dc012 : .vscode/settings.json
d3442f953e2bc03096f7f43c54aa30f16c06f844e42861efa28181377944d00d : Jenkinsfile
a234287776ab1f34c94581344bfd36d2045db5b1f1641f88f9171baa84ba4ca6 : README.md
3d52aba9759d1be0963a276c108565f57979a3eb692b2cf9e75ebd17bc80ce5c : setup.py
87fc7b0d7f0df7bf56dd403b8e464b59899a3187794addaadf9b048907c2a890 : WAPT/icon.png
ab0613273a032435c397ab4b183a7a81bced95880acca8c89655b0daa6bf2f13 : WAPT/wapt.psproj
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
0baa6372fda65a123fc8b7a2e05385a9ef2404d70944781bcd22d744db2353ea : WAPT/control