tis-disable-smbv3-compression

1.0-1
Disabling SMBv3 Compression during the 0-day vulnerability for Windows 10
692 downloads
Download

  Description 

  • package : tis-disable-smbv3-compression
  • version : 1.0-1
  • architecture : all
  • categories : System and network
  • maintainer : WAPT Team,Jimmy PELÉ
  • description : Disabling SMBv3 Compression during the 0-day vulnerability for Windows 10
  • locale :
  • target_os : windows
  • 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
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-03-11T11:20:24.056000

  Setup.py 

# -*- 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 = 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


										

  Changelog 



No changelog.txt.
									
  manifest.sha256