2018-02-22 12:54:13 +00:00
# Nmap
2018-02-26 16:02:00 +00:00
## Build Linux x86
2018-02-22 12:54:13 +00:00
```
sudo docker build -t static-toolbox-nmap-x86 .
sudo docker run -v $(pwd)/output:/output static-toolbox-nmap-x86
```
2018-02-26 16:02:00 +00:00
## Build Linux x86_64
2018-02-22 12:54:13 +00:00
```
sudo docker build -t static-toolbox-nmap-x86-64 .
sudo docker run -v $(pwd)/output:/output static-toolbox-nmap-x86-64
```
2018-02-26 16:02:00 +00:00
## Build Linux armhf
```
sudo docker build -t static-toolbox-nmap-armhf .
sudo docker run -v $(pwd)/output:/output static-toolbox-nmap-armhf
```
## Build Linux aarch64
```
sudo docker build -t static-toolbox-nmap-aarch64 .
sudo docker run -v $(pwd)/output:/output static-toolbox-nmap-aarch64
```
2018-02-22 12:54:13 +00:00
## Using the Nmap data directory
In order to use features like script scanning, we also need the Nmap data files that are typically installed into `/usr/share/nmap` . They are available in the `data/nmap` directory. Just copy this directory to the target system, e.g. into `/tmp/nmap-data` and run Nmap like this:
```
NMAPDIR=/tmp/nmap-data ./nmap
```