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

Dictionary handled as string #29

Open
phydroxide opened this issue Dec 30, 2021 · 0 comments
Open

Dictionary handled as string #29

phydroxide opened this issue Dec 30, 2021 · 0 comments

Comments

@phydroxide
Copy link

pos_opt.add_argument("--proxy",default=None,metavar="",help="Set proxy (e.g. {'https':'https://10.10.1.10:1080'})")

When I try to run this from CLI in kali the proxy is getting handled as a string by the required requests module and throws an error

/lib/python3.7/site-packages/requests/sessions.py", line 290, in rebuild_proxies
new_proxies = proxies.copy()

This appears to be because when it receives the parameter it is a string, even when passed as --proxy={'https':'https://localhost:8080'}

https://stackoverflow.com/questions/18006161/how-to-pass-dictionary-as-command-line-argument-to-python-script/18006814

Maybe a separate parameter for https, http, noproxy gets around this? Am I missing something simple?

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

1 participant