pwn0sec / PwnXSS

PwnXSS: Vulnerability (XSS) scanner exploit
MIT License
738 stars 137 forks source link

Dictionary handled as string #29

Open phydroxide opened 2 years ago

phydroxide commented 2 years ago

https://github.com/pwn0sec/PwnXSS/blob/4f75e6a99d24d7fc8836aa1cdf83472f79925528/pwnxss.py#L44

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?