Git Product home page Git Product logo

Comments (13)

nimia avatar nimia commented on June 30, 2024

Do you have the pyx509 directory alongside the scanner.py file?

from public_drown_scanner.

jrmain avatar jrmain commented on June 30, 2024

I do now. Problem solved. Now I get this:

Traceback (most recent call last):
  File "scanner.py", line 25, in <module>
    from pyx509.pkcs7.asn1_models.X509_certificate import Certificate
  File "/home/jrivett/drown-scanner/pyx509/pkcs7/asn1_models/X509_certificate.py", line 32, in <module>
    from tools import *
  File "/home/jrivett/drown-scanner/pyx509/pkcs7/asn1_models/tools.py", line 24, in <module>
    from decoder_workarounds import decode
  File "/home/jrivett/drown-scanner/pyx509/pkcs7/asn1_models/decoder_workarounds.py", line 10, in <module>
    class BooleanFixDerDecoder(derDecoder.Decoder): pass
AttributeError: 'module' object has no attribute 'Decoder'

from public_drown_scanner.

nimia avatar nimia commented on June 30, 2024

Have you tried this:
#30
?

from public_drown_scanner.

jrmain avatar jrmain commented on June 30, 2024

I'm on Ubuntu 12.04, not CentOS. And the error in that report doesn't seem related to what I'm seeing. But I could easily be wrong about that.

from public_drown_scanner.

nimia avatar nimia commented on June 30, 2024

Fair enough. This looks like an issue with the pyasn1 package.
These lines should work on a python shell:

from pyasn1.codec.der import decoder as derDecoder
import inspect
inspect.getsourcefile(derDecoder.Decoder)

and should print something similar to

/usr/lib/python2.7/dist-packages/pyasn1/codec/cer/decoder.py

What version of pyasn1 do you have running?

from public_drown_scanner.

jrmain avatar jrmain commented on June 30, 2024

The first two commands just return the Python prompt. The third command results in this:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Decoder'

from public_drown_scanner.

nimia avatar nimia commented on June 30, 2024

Oh, makes sense.
Please try:
inspect.getsourcefile(derDecoder)
Also, what version of pyasn1 do you have running?

from public_drown_scanner.

jrmain avatar jrmain commented on June 30, 2024

inspect.getsourcefile(derDecoder) gives me this:
'/usr/lib/python2.7/dist-packages/pyasn1/codec/der/decoder.py'

pyasn1 (0.0.11a0)

from public_drown_scanner.

nimia avatar nimia commented on June 30, 2024

Sorry for the late response.
Would it be possible for you to try pyasn1 version 0.1.9?

from public_drown_scanner.

jrmain avatar jrmain commented on June 30, 2024

Forgive the dumb question, but how do I upgrade pyasn1?

from public_drown_scanner.

nimia avatar nimia commented on June 30, 2024

On the contrary, I'm unsure myself.
I'd try moving the /usr/lib/python2.7/dist-packages/pyasn1/ directory somewhere else,
and installing 0.1.9 according to these instructions:
https://pypi.python.org/pypi/pyasn1

from public_drown_scanner.

jrmain avatar jrmain commented on June 30, 2024

That seems to have done the trick. The scanner now runs as expected, reporting the results of a series of tests, like this:

Testing localhost on port 443
localhost: Case 3d; Server hello did not contain SSLv2
localhost: Server is NOT vulnerable with cipher RC2_128_CBC_EXPORT40_WITH_MD5, Message: 3d: no tls
localhost: Case 3d; Server hello did not contain SSLv2
localhost: Server is NOT vulnerable with cipher RC4_128_EXPORT40_WITH_MD5, Message: 3d: no tls
localhost: Case 3d; Server hello did not contain SSLv2
localhost: Server is NOT vulnerable with cipher RC4_128_WITH_MD5, Message: 3d: no tls
localhost: Case 3d; Server hello did not contain SSLv2
localhost: Server is NOT vulnerable with cipher DES_64_CBC_WITH_MD5, Message: 3d: no tls        

from public_drown_scanner.

basvanbeeknl avatar basvanbeeknl commented on June 30, 2024

For me this fixed it:

yum install python-pyasn1

from public_drown_scanner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.