Skip to content

Commit 59f7570

Browse files
committed
Print out malicious URLs that will be used by default
1 parent 905f483 commit 59f7570

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

modules/exploits/multi/http/cve_2014_9390.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,14 @@ def exploit
237237

238238
def primer
239239
# add the git and mercurial URIs as necessary
240-
hardcoded_uripath(git_uri) if datastore['GIT']
241-
hardcoded_uripath(mercurial_uri) if datastore['MERCURIAL']
240+
if datastore['GIT']
241+
hardcoded_uripath(git_uri)
242+
print_status("Malicious Git URI is #{URI.parse(get_uri).merge(git_uri)}")
243+
end
244+
if datastore['MERCURIAL']
245+
hardcoded_uripath(mercurial_uri)
246+
print_status("Malicious Mercurial URI is #{URI.parse(get_uri).merge(mercurial_uri)}")
247+
end
242248
end
243249

244250
def on_request_uri(cli, req)

0 commit comments

Comments
 (0)