Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Print target IP/Port when restoring currencies.php

  • Loading branch information...
commit d615e3bcb855c1efdd9378c5b0871d2af2612769 1 parent 712a217
@sinn3r sinn3r authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 modules/exploits/linux/http/webid_converter.rb
View
11 modules/exploits/linux/http/webid_converter.rb
@@ -81,10 +81,11 @@ def check
end
def on_new_session(client)
+ peer = "#{client.peerhost}:#{client.peerport}"
if client.type != "meterpreter"
- print_error("NOTE: you must use a meterpreter payload in order to automatically cleanup.")
- print_error("The currencies.php won't be restored automatically.")
+ print_error("#{peer} - NOTE: you must use a meterpreter payload in order to automatically cleanup.")
+ print_error("#{peer} - The currencies.php won't be restored automatically.")
return
end
@@ -103,19 +104,19 @@ def on_new_session(client)
currencies_php = currencies_php.gsub(/^\t\t\t/, '')
pwd = client.fs.dir.pwd
- print_status("Searching currencies.php file from #{pwd}")
+ print_status("#{peer} - Searching currencies.php file from #{pwd}")
res = client.fs.file.search(nil, "currencies.php", true, -1)
res.each do |hit|
filename = "#{hit['path']}/#{hit['name']}"
- print_status("Restoring #{filename}")
+ print_status("#{peer} - Restoring #{filename}")
client.fs.file.rm(filename)
fd = client.fs.file.new(filename, "wb")
fd.write(currencies_php)
fd.close
end
- print_status("Cleanup finished")
+ print_status("#{peer} - Cleanup finished")
end
Please sign in to comment.
Something went wrong with that request. Please try again.