Skip to content

Commit

Permalink
Finally fixed the ImportError.
Browse files Browse the repository at this point in the history
  • Loading branch information
nimia committed Mar 1, 2016
1 parent 0db6875 commit f304d80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
from binascii import hexlify
import base64

sys.path.append("./scapy-ssl_tls/")
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
import scapy
from scapy.all import *
from ssl_tls import *
import ssl_tls_crypto

from scapy_ssl_tls.ssl_tls import *
from scapy_ssl_tls import ssl_tls_crypto

from pyx509.pkcs7.asn1_models.X509_certificate import Certificate
from pyx509.pkcs7_models import X509Certificate, PublicKeyInfo, ExtendedKeyUsageExt
Expand Down Expand Up @@ -245,7 +245,7 @@ def sslv2_connect(ip, port, protocol, cipher_suite, result_additional_data):
return NO_STARTTLS


client_hello = SSLv2Record()/SSLv2ClientHello(cipher_suites=SSL2_CIPHER_SUITES.keys(),challenge=CHALLENGE)
client_hello = SSLv2Record()/SSLv2ClientHello(cipher_suites=SSLv2_CIPHER_SUITES.keys(),challenge=CHALLENGE)
s.sendall(str(client_hello))

rlist, wlist, xlist = select.select([s], [], [s], SOCKET_TIMEOUT)
Expand Down

0 comments on commit f304d80

Please sign in to comment.