Add KVRT sections
This commit is contained in:
parent
cf8b600dd5
commit
03000662fe
2 changed files with 27 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ BASE_MENUS = {
|
|||
'Malware Cleanup': (
|
||||
MenuEntry('BleachBit', 'auto_bleachbit'),
|
||||
MenuEntry('HitmanPro', 'auto_hitmanpro'),
|
||||
MenuEntry('KVRT', placeholder_function),
|
||||
MenuEntry('KVRT', 'auto_kvrt'),
|
||||
MenuEntry('Windows Defender', placeholder_function),
|
||||
MenuEntry('Reboot', 'auto_reboot'),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -628,6 +628,12 @@ def auto_hitmanpro(group, name):
|
|||
save_settings(group, name, result=result)
|
||||
|
||||
|
||||
def auto_kvrt(group, name):
|
||||
"""Run KVRT scan."""
|
||||
result = TRY_PRINT.run('KVRT...', run_kvrt, msg_good='DONE')
|
||||
save_settings(group, name, result=result)
|
||||
|
||||
|
||||
def auto_reboot(group, name):
|
||||
"""Reboot the system."""
|
||||
save_settings(group, name, done=True, failed=False, message='DONE')
|
||||
|
|
@ -771,6 +777,26 @@ def run_hitmanpro():
|
|||
)
|
||||
|
||||
|
||||
def run_kvrt():
|
||||
"""Run KVRT scan."""
|
||||
log_path = format_log_path(log_name='KVRT', timestamp=True, tool=True)
|
||||
log_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
quarantine_path = set_local_storage_path(
|
||||
'Quarantine', 'KVRT', date=True,
|
||||
)
|
||||
quarantine_path.mkdir(parents=True, exist_ok=True)
|
||||
cmd_args = (
|
||||
'-accepteula',
|
||||
'-d', quarantine_path,
|
||||
'-dontencrypt', '-fixednames',
|
||||
'-processlevel', '1',
|
||||
'-custom', SYSTEMDRIVE,
|
||||
'-silent', '-adinsilent',
|
||||
)
|
||||
proc = run_tool('KVRT', 'KVRT', *cmd_args, download=True)
|
||||
log_path.write_text(proc.stdout)
|
||||
|
||||
|
||||
def run_rkill():
|
||||
"""Run RKill scan."""
|
||||
log_path = format_log_path(log_name='RKill', timestamp=True, tool=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue