macOS 10.11.6's BASH complains when executing the script
requeijaum opened this issue · comments
BSD readlink
readlink -f
and "-f" is not a valid argument.
How to solve:
Install Homebrew's readlink from "coreutils" package - and rename "readlink" to "greadlink" inside the script.
BSD bash 3.2
The standard (OLD) version that comes with macOS El Capitan. I want the actual 4.4.*.
Installed since I got brew's "coreutils" - I replaced "#!/bin/env bash" for "#!/usr/local/bin/bash".
Another error... now it's with "getopt" command.
Hack-de-Rafael:bin requeijaum$ sudo ./massh-enum --hosts $masked --users "../wordlists/users"
massh-enum: invalid option -- '--long'
And... I don't know what to do.
EDIT:
Solved by install "gnu-getopt" from Homebrew and replacing "getopt" for "/usr/local/opt/gnu-getopt/bin/getopt" inside the script.
Let's test the script...