File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
modules/exploits/multi/misc Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -93,12 +93,20 @@ def exploit
93
93
begin
94
94
Timeout . timeout ( datastore [ 'HTTPDELAY' ] ) { super }
95
95
rescue Timeout ::Error
96
- # When the server stops due to our timeout, fail and
97
- # don't wait WfsDelay
98
- fail_with ( Failure ::Unknown , "The HTTP Server didn't get a payload requests" )
96
+ # When the server stops due to our timeout, re-raise
97
+ # RuntimeError so it won't wait the full wfs_delay
98
+ raise ::RuntimeError , "Timeout HTTPDELAY expired and the HTTP Server didn't get a payload request"
99
+ rescue Msf ::Exploit ::Failed
100
+ # When the server stops due primer failing, re-raise
101
+ # RuntimeError so it won't wait the full wfs_delays
102
+ raise ::RuntimeError , "Exploit aborted due to failure #{ fail_reason } #{ ( fail_detail || "No reason given" ) } "
99
103
end
100
104
end
101
105
106
+ def peer
107
+ "#{ rhost } :#{ rport } "
108
+ end
109
+
102
110
def primer
103
111
connect
104
112
You can’t perform that action at this time.
0 commit comments