Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sslyze nassl error #2866

Closed
bennysp opened this issue Jan 22, 2018 · 4 comments
Closed

sslyze nassl error #2866

bennysp opened this issue Jan 22, 2018 · 4 comments

Comments

@bennysp
Copy link

bennysp commented Jan 22, 2018

  • Your Windows build number: (Type ver at a Windows Command Prompt)

Microsoft Windows [Version 10.0.16299.192]
(this is a fresh install of both OS and subsystem)

  • What you're doing and what's happening: (Copy&paste specific commands and their output, or include screen shots)
  1. apt-get install python-pip -y
  2. pip install --upgrade setuptools
  3. pip install sslyze
  4. sslyze hit [ENTER]

You will get the following error:
Traceback (most recent call last): File "/usr/local/bin/sslyze", line 7, in <module> from sslyze.__main__ import main File "/usr/local/lib/python2.7/dist-packages/sslyze/__main__.py", line 12, in <module> from sslyze.concurrent_scanner import ConcurrentScanner File "/usr/local/lib/python2.7/dist-packages/sslyze/concurrent_scanner.py", line 9, in <module> from sslyze.plugins.plugin_base import PluginScanResult File "/usr/local/lib/python2.7/dist-packages/sslyze/plugins/plugin_base.py", line 12, in <module> from sslyze.server_connectivity import ServerConnectivityInfo File "/usr/local/lib/python2.7/dist-packages/sslyze/server_connectivity.py", line 13, in <module> from nassl.ssl_client import ClientCertificateRequested, OpenSslVersionEnum File "/usr/local/lib/python2.7/dist-packages/nassl/ssl_client.py", line 7, in <module> from nassl import _nassl ImportError: /usr/local/lib/python2.7/dist-packages/nassl/_nassl.so: cannot enable executable stack as shared object requires: Invalid argument

  • What's wrong / what should be happening instead:

I should get the sslyze help screen.

  • Strace of the failing command, if applicable: (If some_command is failing, then run strace -o some_command.strace -f some_command some_args, and link the contents of some_command.strace in a gist here)

sslyze.zip

See our contributing instructions for assistance.

@therealkenc
Copy link
Collaborator

in from nassl import _nassl ImportError: /usr/local/lib/python2.7/dist-packages/nassl/_nassl.so: cannot enable executable stack as shared object requires: Invalid argument

#286 #916 #2553 #2562 (message) etc etc

@koczkatamas
Copy link

I think the executable stack is unnecessary for NASSL, it is only enabled by mistake. After turning it off, sslyze seemingly works on WSL:

sudo apt install execstack
sudo execstack -c /usr/local/lib/python2.7/dist-packages/nassl/_nassl.so
sudo execstack -c /usr/local/lib/python2.7/dist-packages/nassl/_nassl_legacy.so
sslyze ... => works

@bennysp
Copy link
Author

bennysp commented Jan 27, 2018

Thank you @koczkatamas . This worked for me!

@koczkatamas
Copy link

@bennysp meanwhile I reported the issue to the author of sslyze (see the linked issue above), and it has been fixed.

Hopefully there will be a new release soon, so it won't be necessary to modify the files manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants