Skip to content

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

Open
@requeijaum

Description

@requeijaum

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions