static-toolbox icon indicating copy to clipboard operation
static-toolbox copied to clipboard

`run-nmap.sh` depends on bash

Open exploide opened this issue 3 years ago • 0 comments

The statically compiled nmap is especially useful in restricted environments, like containers. However, the run-nmap.sh script only works when bash is available, which isn't always the case. Especially in the mentioned restricted environments, like for example in an Alpine container.

So I think it is useful to have the wrapper script being compatible with /bin/sh like this:

#!/bin/sh
SCRIPT_DIR="$(dirname "$(readlink -f -- "$0")")"
NMAPDIR="$SCRIPT_DIR/data" "$SCRIPT_DIR/nmap" "$@" 

I don't know if this repository is still maintained and welcomes patches? If yes, I would be happy to submit a PR.

exploide avatar Jun 02 '22 15:06 exploide