Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run-nmap.sh depends on bash #11

Open
exploide opened this issue Jun 2, 2022 · 0 comments
Open

run-nmap.sh depends on bash #11

exploide opened this issue Jun 2, 2022 · 0 comments

Comments

@exploide
Copy link

exploide commented Jun 2, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant