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
The issue is related to how the proxy extension attempts to read data from an SSLSocket before a handshake has been made.
How to Reproduce
Launch beef on localhost port 3000, hook a browser on localhost (tested on firefox linux), right click browser and select "Use as proxy" now run: http_proxy=http://localhost:6789 curl http://localhost:3000/
Errror
#<Thread:0x00007cfba10dc180 /beef/extensions/proxy/proxy.rb:53 run> terminated with exception (report_on_exception is true):
/usr/local/lib/ruby/3.2.0/openssl/buffering.rb:80:in `sysread': SSL session is not started yet (OpenSSL::SSL::SSLError)
from /usr/local/lib/ruby/3.2.0/openssl/buffering.rb:80:in `fill_rbuff'
from /usr/local/lib/ruby/3.2.0/openssl/buffering.rb:332:in `eof?'
from /usr/local/lib/ruby/3.2.0/openssl/buffering.rb:285:in `readline'
from /beef/extensions/proxy/proxy.rb:55:in `handle_request'
The text was updated successfully, but these errors were encountered:
Thank you for reporting this issue. The proxy extension has been a recurring topic, and we acknowledge the challenges with its current implementation, especially with SSLSocket handling. However, due to bandwidth constraints, addressing this fix is currently a low priority.
Contributions or pull requests addressing this issue are welcome and appreciated in the meantime.
Summary
Beef has a proxy extension which runs a HTTP proxy on port 6789 which is supposed to tunnel traffic through a zombie. (Ref https://github.com/beefproject/beef/wiki/Tunneling )
The proxy extension on port 6789 has been reported broken in multiple issues, however the issues have been closed.
#3029
#2973
#2679
#2567
The issue is related to how the proxy extension attempts to read data from an SSLSocket before a handshake has been made.
How to Reproduce
Launch beef on localhost port 3000, hook a browser on localhost (tested on firefox linux), right click browser and select "Use as proxy" now run:
http_proxy=http://localhost:6789 curl http://localhost:3000/
Errror
The text was updated successfully, but these errors were encountered: