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

ike-version scripts issue #1999

allan9595 opened this issue Apr 11, 2020 · 2 comments

ike-version scripts issue #1999

allan9595 opened this issue Apr 11, 2020 · 2 comments


Copy link

@allan9595 allan9595 commented Apr 11, 2020

my nmap command is nmap -sU -sC --top-ports 20 and I encountered the following issue, it seems there is an error in the script itself. Do you know how to fix this?

NSE: ike-version against threw an error! /usr/bin/../share/nmap/nselib/ike.lua:408: attempt to call a table value (upvalue 'PROTOCOL_IDS') stack traceback: /usr/bin/../share/nmap/nselib/ike.lua:408: in upvalue 'generate_aggressive' /usr/bin/../share/nmap/nselib/ike.lua:499: in function 'ike.request' /usr/bin/../share/nmap/scripts/ike-version.nse:75: in upvalue 'get_version' /usr/bin/../share/nmap/scripts/ike-version.nse:118: in function </usr/bin/../share/nmap/scripts/ike-version.nse:117> (...tail calls...)

Copy link

@luc-x41 luc-x41 commented Apr 14, 2020

Ran into the same issue. If you look at ike.lua:408, it indeed tries to "call" PROTOCOL_IDS as if it is a function instead of looking up an index in the table. Replacing the parentheses with square brackets worked for me: the ike-version script now shows me the server's IKE info. Submitted a pull request (see the reference above).

If anyone wants to quickly hotfix their installation, just sudo vim /usr/share/nmap/nselib/ike.lua (or where-ever your ike.lua is installed) and replace the parentheses after PROTOCOL_IDS with square brackets as in the patch.

@nnposter nnposter self-assigned this Apr 14, 2020
@nnposter nnposter added bug NSE labels Apr 14, 2020
@nmap-bot nmap-bot closed this in 351eea1 Apr 14, 2020
Copy link

@nnposter nnposter commented Apr 14, 2020

Please refresh file nselib/ike.lua from the SVN master or the Github mirror.

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

Successfully merging a pull request may close this issue.

None yet
3 participants