[+] Modify script arguments, change LOG_FILE to /dev/null

GSoC/Meterpreter_Web_Console
Wang Yihang 2018-08-12 04:54:08 +08:00
parent 3fb814cef3
commit 7e4a666e1b
1 changed files with 4 additions and 1 deletions

View File

@ -243,7 +243,10 @@ class CommandShell
script_path = binary_exists("script") script_path = binary_exists("script")
if script_path != nil if script_path != nil
print_status("Using `script` to pop up an interactive shell") print_status("Using `script` to pop up an interactive shell")
shell_command(script_path) # Payload: script /dev/null
# Using /dev/null to make sure there is no log file on the target machine
# Prevent being detected by the admin or antivirus softwares
shell_command("#{script_path} /dev/null")
return return
end end