Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to limit wide open 0.0.0.0 to 127.0.0.1 ? #5

Open
w0lfcat opened this issue Sep 11, 2022 · 1 comment
Open

How to limit wide open 0.0.0.0 to 127.0.0.1 ? #5

w0lfcat opened this issue Sep 11, 2022 · 1 comment

Comments

@w0lfcat
Copy link

w0lfcat commented Sep 11, 2022

First of all, thanks for such cool project. Quick question, when I run this, it opens port the connection to my local computer pretty much open wide (0.0.0.0). How do I limit this to only localhost (127.0.0.1) as this software is meant to be vulnerable?

$ python vAPI.py 
 * Serving Flask app 'vAPI'
 * Debug mode: on

$ ss -antp | grep python
LISTEN       0        128         0.0.0.0:8081            0.0.0.0:*                        users:(("python",pid=18589,fd=6),("python",pid=18589,fd=4),("python",pid=18587,fd=6),("python",pid=18587,fd=4))
$
@jorritfolmer
Copy link
Owner

In vapy.py there is a line at the end (395) containing app.run(). If you add host=“localhost” as argument it will probably do what you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants