Nmap -sV scans not working
l4rm4nd opened this issue · 3 comments
l4rm4nd commented
Hi, running nmap with the the -sV
flag does not work.
Example nmap command:
nmap -sS -Pn -sV -p 80 scanme.org
Produces the following error:
NSE: failed to initialize the script engine:
could not locate nse_main.lua
stack traceback:
[C]: in ?
QUITTING!
According to the Internet a fix would be to install the following additional package:
nmap-scripts
Might be a considerable change, in order to make nmap fully functional.
KamranAzeem commented
I will look into it as soon as I have some time. Hopefully it will be done soon.
KamranAzeem commented
Added nmap-scripts. It works now.
[kamran@kworkhorse tmp]$ docker pull praqma/network-multitool:extra
extra: Pulling from praqma/network-multitool
4e9f2cdf4387: Already exists
2161da2e90f1: Pull complete
4d0304ad3b7b: Pull complete
ad8a23f4f5b4: Pull complete
1a1d52bd9973: Pull complete
Digest: sha256:d89cd23fc8a02f741c12551b83958e9b3a3b155d451cf9b814708e39534be56a
Status: Downloaded newer image for praqma/network-multitool:extra
docker.io/praqma/network-multitool:extra
[kamran@kworkhorse tmp]$ docker run --rm -it praqma/network-multitool:extra /bin/bash
The directory /usr/share/nginx/html is not mounted.
Over-writing the default index.html file with some useful information.
bash-5.1# nmap -sS -Pn -sV -p 80 scanme.org
Host discovery disabled (-Pn). All addresses will be marked 'up' and scan times will be slower.
Starting Nmap 7.91 ( https://nmap.org ) at 2021-10-19 11:00 UTC
Nmap scan report for scanme.org (45.33.32.156)
Host is up (0.20s latency).
Other addresses for scanme.org (not scanned): 2600:3c01::f03c:91ff:fe18:bb2f
rDNS record for 45.33.32.156: scanme.nmap.org
PORT STATE SERVICE VERSION
80/tcp open http Apache httpd 2.4.7 ((Ubuntu))
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 9.38 seconds
bash-5.1#
l4rm4nd commented
Many thanks for your fast replies and the actual fix.