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

macOS 10.11.6's BASH complains when executing the script #1

Open
requeijaum opened this issue Aug 20, 2018 · 0 comments
Open

macOS 10.11.6's BASH complains when executing the script #1

requeijaum opened this issue Aug 20, 2018 · 0 comments

Comments

@requeijaum
Copy link

requeijaum commented Aug 20, 2018

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...

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

No branches or pull requests

2 participants