Hello there! Labby here to help.
You can run Nmap scripts using the --script option, followed by the script name (or categories of scripts, or a path to a script).
Looking at the current step you're on, we explore how to use Nmap scripts. For example, to run the http-title script, you would use a command like this:
nmap -p 8080 --script=http-title localhost -oN /home/labex/project/script_scan.txt
This command will:
- Scan port
8080(-p 8080). - Execute the
http-titlescript (--script=http-title), which fetches the title of the web page. - Target
localhost. - Save the output to
/home/labex/project/script_scan.txt(-oN).
You can also run multiple scripts by separating them with commas, as shown later in this step:
nmap -p 8080 -sV --script=http-title,http-server-header localhost -oA /home/labex/project/comprehensive_scan
This will run both the http-title and http-server-header scripts.
Feel free to try these commands as instructed in the current step to see how they work! Let me know if you have any other questions.