0

I want to find out all my available routers with nmap.

Typing this in command line returns the expected output.

nmap --script=broadcast-dchp-discover -e eno1

But when I try to run this command in a short bash script nmap returns an error:

NSE: failed to initialize the script engine:
/usr/bin/../share/nmap/nse_main.lua:801: 'broadcast-dchp-discover' did not match a category, filename, or directory
stack traceback:
        [C]: in function 'error'
        /usr/bin/../share/nmap/nse_main.lua:801: in function 'get_chosen_scripts'
        /usr/bin/../share/nmap/nse_main.lua:1251: in main chunk
        [C]: in ?

What am I doing wrong?

0

You have a typo in the commandline options:

wrong: broadcast-dchp-discover correct: broadcast-dhcp-discover

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.