37 lines
952 B
Markdown
37 lines
952 B
Markdown
# Nmap
|
|
|
|
## Build Linux x86
|
|
|
|
```
|
|
sudo docker build -t static-toolbox-nmap-x86 .
|
|
sudo docker run -v $(pwd)/output:/output static-toolbox-nmap-x86
|
|
```
|
|
|
|
## Build Linux x86_64
|
|
|
|
```
|
|
sudo docker build -t static-toolbox-nmap-x86-64 .
|
|
sudo docker run -v $(pwd)/output:/output static-toolbox-nmap-x86-64
|
|
```
|
|
|
|
## 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
|
|
```
|
|
|
|
## 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
|
|
```
|