Skip to content

Dictionary handled as string #29

@phydroxide

Description

@phydroxide

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions