-
Notifications
You must be signed in to change notification settings - Fork 25
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
Error while running script - NSE: failed to initialize the script engine #1
Comments
I had the same problem. My error was: I copied the file from this side - therefore it was in html-format (First lines empty). You have to save it as plain test (First line: local nmap = require "nmap") |
|
Hi, I have a similar problem, I'm new to VAPT and I'm using GUI for windows, this is what I got when I used this script from nmap online guide [nmap -p 80 --script http-default-accounts.routers xx.xx.xx.xx]. I borrowed the script from here : https://nmap.org/nsedoc/scripts/http-default-accounts.html Nmap output begins below this line: NSE: failed to initialize the script engine: C:\Program Files (x86)\Nmap/nse_main.lua:823: 'http-default-accounts.category' did not match a category, filename, or directory stack traceback:
QUITTING! |
Hi at ALL,
I got this error while running the script.
$ nmap --script=CVE-2017-7494.nse
Starting Nmap 7.40 ( https://nmap.org ) at 2017-05-30 06:56 CEST
NSE: failed to initialize the script engine:
/usr/bin/../share/nmap/nse_main.lua:255: /usr/bin/../share/nmap/scripts/CVE-2017-7494.nse:7: unexpected symbol near '<'
stack traceback:
[C]: in function 'assert'
/usr/bin/../share/nmap/nse_main.lua:255: in upvalue 'loadscript'
/usr/bin/../share/nmap/nse_main.lua:597: in field 'new'
/usr/bin/../share/nmap/nse_main.lua:820: in local 'get_chosen_scripts'
/usr/bin/../share/nmap/nse_main.lua:1271: in main chunk
[C]: in ?
QUITTING!
$ lua -v
Lua 5.3.4 Copyright (C) 1994-2017 Lua.org, PUC-Rio
How to fix this ?
Here the nse_main script:
nse_main.zip
Thanks
The text was updated successfully, but these errors were encountered: