21y4d / nmapAutomator

A script that you can run in the background!
MIT License
2.72k stars 802 forks source link

Doesn't work on mac (+workaround) #9

Closed iodbh closed 4 years ago

iodbh commented 4 years ago

Hi, Thanks for the script !

I've been using it on mac and it doesn't work out of the box, because the version of head shipped with MacOS doesn't support the arguments used in the script.

The workaround is to install the gnu version of head (via homebrew: brew install coreutils and to edit the script by either adding PATH="$(brew --prefix)/opt/coreutils/libexec/gnubin:$PATH" at the start OR replacing all calls to head by calls to ghead (see https://formulae.brew.sh/formula/coreutils).

If you're interested in supporting MacOS, I can send a pull request your way to indicate the extra depency in the README and edit the script accordingly.

21y4d commented 4 years ago

Thanks for the tip. I designed it mainy for OSCP, and hence for Kali Linux "Debian". It shouldn't be hard to have it work on macOS like you mentioned, but it would be better to have a Mac version as a fork instead of a pull on the original one.

Thanks for sharing..