Skip to content

Commit d89cd11

Browse files
author
Brent Cook
committed
remove wininet workaround in meterpreter http/s
We had a workaround to close connections on very old wininet implementations that would not do it themselves. With the new WinHttp API-using meterpreters and stagers, we no longer should use this workaround. It can actually be actively bad and prematurely close the connection. This needs testing around different payloads, and they should be on real networks, ideally where TCP really has to work to get data transfered.
1 parent b770f8d commit d89cd11

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/rex/post/meterpreter/packet_dispatcher.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ def on_passive_request(cli, req)
114114
cli.send_response(resp)
115115
end
116116

117-
# Force a closure for older WinInet implementations
118-
self.passive_service.close_client( cli )
119-
120117
rescue ::Exception => e
121118
elog("Exception handling request: #{cli.inspect} #{req.inspect} #{e.class} #{e} #{e.backtrace}")
122119
end

0 commit comments

Comments
 (0)