Shodan nmap in Docker (smap)
Create the Docker image
sudo docker build . -t smap
Run the Docker with your command
Example with 1.1.1.1
sudo docker run --rm smap 1.1.1.1
Output
Starting Nmap 9.99 ( https://nmap.org ) at 2022-05-24 12:27 UTC
Nmap scan report for sni.cloudflaressl.com (1.1.1.1)
Host is up.
PORT STATE SERVICE VERSION
53/tcp open domain?
443/tcp open https?
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 0.07 seconds
Create a volume from ./ressources
sudo docker run --rm -v $(pwd)/ressources:./data smap -iL /data/example.txt
Version 1.0