[+] Modify script arguments, change LOG_FILE to /dev/null
parent
3fb814cef3
commit
7e4a666e1b
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue