beefproject / beef

The Browser Exploitation Framework Project
https://beefproject.com
9.73k stars 2.16k forks source link

can i use beef on wan without port forwarding? #1455

Closed nirajmaharz closed 6 years ago

nirajmaharz commented 6 years ago

Verify first that your issue/request has not been posted previously:

Ensure you're using the latest version of BeEF.

Environment

What version/revision of BeEF are you using?

On what version of Ruby?

On what browser?

On what operating system?

Configuration

Are you using a non-default configuration?

Have you enabled or disabled any BeEF extensions?

Summary

Please provide a summary of the issue.

Expected Behaviour

What was the expected result?

Actual Behaviour

What was the actual result?

Steps to Reproduce

Please provide steps to reproduce this issue.

Additional Information

Please provide any additional information which may be useful in resolving this issue, such as debugging output and relevant screen shots.

bcoles commented 6 years ago

If BeEF is hosted in a NATed environment you will not be able to hook browsers outside of the environment without forwarding at least one port on the border gateway.

BeEF is short for The Browser Exploitation Framework. It is a penetration testing tool that focuses on the web browser. Web browsers typically speak HTTP. HTTP is a layer 7 protocol. Layer 7 protocols have no control over managing network routes.

If the host operating system on which a web browser is running does not know any network routes to the BeEF server then the web browser will not be able to route traffic to the BeEF server.