tintinweb / scapy-ssl_tls

SSL/TLS layers for scapy the interactive packet manipulation tool
GNU General Public License v2.0
419 stars 156 forks source link

pip installation does not work #68

Closed hackers-terabit closed 8 years ago

hackers-terabit commented 8 years ago

I have python3 installed,I can't install scapy_ssl-tls with pip or pip3:

 # pip install scapy_ssl-tls
Collecting scapy-ssl-tls
  Using cached scapy-ssl_tls-1.2.2.tar.gz
Collecting scapy (from scapy-ssl-tls)
  Using cached scapy-2.3.2.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-f333v30u/scapy/setup.py", line 35
        os.chmod(fname,0755)
                          ^
    SyntaxError: invalid token

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-f333v30u/scapy/
tintinweb commented 8 years ago

scapy-ssl_tls currently does not support python3. In order to install scapy and scapy-ssl_tls run pip with python2.x.

please let me know if that works for you.

//The actual problem here is that with python3 the notation for octal values changed from 0<> to 0o<>/0O<> see Abstract PEP-3127.

hackers-terabit commented 8 years ago

Thank you but I wanted it to be the central feature of my script which is already about 500 lines of python3. I won't ask you to support python3 but I would appreciate any pointers on how to get it working python3. I was unable to find any other existing module to monitor TLS handshakes in python.

tintinweb commented 8 years ago

atm there are no plans to port it to python3. Also see https://github.com/tintinweb/scapy-ssl_tls/issues/39

hackers-terabit commented 8 years ago

ok,thank you for addressing this,I'll close the issue.

hackers-terabit commented 8 years ago

fyi , I forked it for python3 ,seems to be working fine for now https://github.com/hackers-terabit/scapy-ssl_tls-python3

tintinweb commented 8 years ago

we were discussing porting scapy to python3 either with a compatibility layer or as a different branch in the other issue. Howerver, there's no no one working on this atm but we'd appreciate if someone would jump in starting the initial port to python3 making sure that unittests pass and file a PR for review.

thanks, tin