SECFORCE / Tunna

Tunna is a set of tools which will wrap and tunnel any TCP communication over HTTP. It can be used to bypass network restrictions in fully firewalled environments.
1.24k stars 282 forks source link

Error - module object has no attribute create_default_context #17

Open Alex220 opened 5 years ago

Alex220 commented 5 years ago

windows 10 with Python.exe (version 2.6.5) when I use the following command: proxy.py -u http://X.X.X.X/conn.php -l 8080 -r 8081 --no-socks

I receive the following Error:

[-] Error: 'module' object has no attribute 'create_default_context'
[!] Received Interrupt or Something Went Wrong
[-] Disconnected

But proxy.exe -u http://X.X.X.X/conn.php -l 8080 -r 8081 --no-socks works Fine.

I want to use proxy.py Script.

nvssks commented 5 years ago

This is probably because you're using Python 2.6. The executable was statically compiled when tat version of urllib was not checking certs.

Try adding "--verify-server-cert" to the command, should bypass that part of the code

Alex220 commented 5 years ago

Thanks for your quick response. Which version of Python is suitable for running Tunna on Windows?