You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/msf/core/handler/reverse_http.rb
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -154,7 +154,8 @@ def initialize(info = {})
154
154
OptInt.new('SessionCommunicationTimeout',[false,'The number of seconds of no activity before this session should be killed',300]),
155
155
OptString.new('MeterpreterUserAgent',[false,'The user-agent that the payload should use for communication','Mozilla/4.0 (compatible; MSIE 6.1; Windows NT)']),
156
156
OptString.new('MeterpreterServerName',[false,'The server header that the handler will send in response to requests','Apache']),
157
-
OptAddress.new('ReverseListenerBindAddress',[false,'The specific IP address to bind to on the local system'])
157
+
OptAddress.new('ReverseListenerBindAddress',[false,'The specific IP address to bind to on the local system']),
158
+
OptString.new('HttpUknownRequestResponse',[false,'The returned HTML response body when the handler receives a request that is not from a payload','<html><body><h1>It works!</h1></body></html>'])
158
159
],Msf::Handler::ReverseHttp)
159
160
end
160
161
@@ -359,7 +360,7 @@ def on_request(cli, req, obj)
359
360
print_status("#{cli.peerhost}:#{cli.peerport} Unknown request to #{uri_match}#{req.inspect}...")
360
361
resp.code=200
361
362
resp.message="OK"
362
-
resp.body="<h3>No site configured at this address</h3>"
0 commit comments