File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
modules/exploits/unix/http Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ def check
76
76
}
77
77
} )
78
78
rescue ::Rex ::ConnectionRefused , ::Rex ::HostUnreachable , ::Rex ::ConnectionTimeout
79
- print_error ( "#{ rhost } : #{ rport } - Failed to connect to the web server" )
79
+ vprint_error ( "#{ peer } - Failed to connect to the web server" )
80
80
return Exploit ::CheckCode ::Unknown
81
81
end
82
82
@@ -109,7 +109,7 @@ def request(cmd)
109
109
}
110
110
} )
111
111
rescue ::Rex ::ConnectionRefused , ::Rex ::HostUnreachable , ::Rex ::ConnectionTimeout
112
- print_error ( "#{ rhost } : #{ rport } - Failed to connect to the web server" )
112
+ vprint_error ( "#{ peer } - Failed to connect to the web server" )
113
113
return nil
114
114
end
115
115
vprint_status ( "Sent command #{ cmd } " )
@@ -197,17 +197,17 @@ def exploit
197
197
res = request ( cmd )
198
198
199
199
unless res
200
- fail_with ( Failure ::Unknown , "#{ rhost } : #{ rport } - Unable to execute payload" )
200
+ fail_with ( Failure ::Unknown , "#{ peer } - Unable to execute payload" )
201
201
end
202
202
203
- print_status ( "#{ rhost } : #{ rport } - Blind Exploitation - unknown exploitation state" )
203
+ print_status ( "#{ peer } - Blind Exploitation - unknown exploitation state" )
204
204
return
205
205
end
206
206
207
207
@pl = generate_payload_exe
208
208
209
209
unless @pl
210
- fail_with ( Failure ::BadConfig , "#{ rhost } : #{ rport } - Please set payload before to run exploit." )
210
+ fail_with ( Failure ::BadConfig , "#{ peer } - Please set payload before to run exploit." )
211
211
return
212
212
end
213
213
You can’t perform that action at this time.
0 commit comments