Comments (13)
Do you have the pyx509 directory alongside the scanner.py file?
from public_drown_scanner.
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.
Have you tried this:
#30
?
from public_drown_scanner.
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.
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.
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.
Oh, makes sense.
Please try:
inspect.getsourcefile(derDecoder)
Also, what version of pyasn1 do you have running?
from public_drown_scanner.
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.
Sorry for the late response.
Would it be possible for you to try pyasn1 version 0.1.9?
from public_drown_scanner.
Forgive the dumb question, but how do I upgrade pyasn1?
from public_drown_scanner.
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.
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.
For me this fixed it:
yum install python-pyasn1
from public_drown_scanner.
Related Issues (20)
- missing tcpdump dependency HOT 2
- Ubuntu import errors HOT 8
- ImportError: No module named asn1 HOT 11
- a prebuilt docker image on dockerhub would be nice HOT 1
- ImportError: No module named ssl_tls HOT 2
- unsexy error HOT 1
- Case 3d; Server hello did not contain SSLv2 HOT 2
- File "scanner.py", line 156 -- SyntaxError: invalid syntax HOT 1
- AttributeError: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC' HOT 2
- Gives wrong answer for SMTP servers that use paused greeting HOT 1
- Import Errors
- Make dnet only required on Mac HOT 2
- Not Working On Windows HOT 3
- centos issue HOT 1
- python-enum : Conflicts: python-enum34 but 1.1.2-1 is to be installed. HOT 3
- No module named crypto HOT 1
- ValueError when used with docker HOT 2
- DES_192_EDE3_CBC_WITH_MD5 HOT 4
- SyntaxError: invalid syntax HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from public_drown_scanner.