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

Lua/NSE error - ssh-auth-methods.nse #1014

Open
FrankSpierings opened this Issue Sep 20, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@FrankSpierings

FrankSpierings commented Sep 20, 2017

I receive the following error (ip removed):

NSE: ssh-auth-methods against #.#.#.#:22 threw an error!
ERROR
stack traceback:
	[C]: in function 'libssh2.session_open'
	/usr/local/bin/../share/nmap/nselib/libssh2-utility.lua:36: in method 'connect'
	/usr/local/bin/../share/nmap/scripts/ssh-auth-methods.nse:33: in function </usr/local/bin/../share/nmap/scripts/ssh-auth-methods.nse:30>
	(...tail calls...)

This occurs when a ssh connection can not be actually made. "The SYN cookies are a lie". They make nmap think the port is open.

@dmiller-nmap

This comment has been minimized.

Show comment
Hide comment
@dmiller-nmap

dmiller-nmap Sep 20, 2017

Thanks for the report. It looks like we should be checking for Lua errors thrown by libssh2 functions, so I'll add that in. Then we will be able to just treat this as a failed connection without cluttering the debug output with errors.

dmiller-nmap commented Sep 20, 2017

Thanks for the report. It looks like we should be checking for Lua errors thrown by libssh2 functions, so I'll add that in. Then we will be able to just treat this as a failed connection without cluttering the debug output with errors.

@FrankSpierings

This comment has been minimized.

Show comment
Hide comment
@FrankSpierings

FrankSpierings Sep 20, 2017

FrankSpierings commented Sep 20, 2017

@cldrn cldrn added NSE bug labels Sep 24, 2017

@FrankSpierings FrankSpierings changed the title from Segmentation fauled - ssh-auth-methods.nse to Segmentation fault - ssh-auth-methods.nse Sep 28, 2017

@dmiller-nmap dmiller-nmap changed the title from Segmentation fault - ssh-auth-methods.nse to Lua/NSE error - ssh-auth-methods.nse Oct 4, 2017

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