Chimera icon indicating copy to clipboard operation
Chimera copied to clipboard

MacOS Catalina shuf error

Open Darkcast opened this issue 4 years ago • 5 comments

MacOS running: catalina 10.15.7

./chimera.sh: line 71: shuf: command not found ░\e[0m ./chimera --file powershell.ps1 --all --output /tmp/payload.ps1

I have install the core utils brew install coreutils

still giving me the error

Darkcast avatar Feb 23 '21 21:02 Darkcast

sorry the brew install fixed the shuf issue but I am still getting this error ░\e[0m ./chimera --file powershell.ps1 --all --output /tmp/payload.ps1

Darkcast avatar Feb 23 '21 21:02 Darkcast

Open a terminal and try:

whereis shuf

Or:

sudo find / -type f -name 'shuf' 2>/dev/null

Maybe try replacing the 5 occurrences of shuf with the full path specified by one of the above commands? (e.g., replace shuf with /Users/<path>/<to>/<your>/shuf)

tokyoneon avatar Feb 23 '21 21:02 tokyoneon

sorry, after installing the brew install coreutils shuf works I thikn its that the term color codes are not compatible with mac :( but everythign works. I just wanted to put in this ticket so someone could updare the readme and but that they need to install brew install coreutils to get the app working on mac, minus the color code error thing :)

Darkcast avatar Mar 02 '21 10:03 Darkcast

Thanks. Newer versions of macOS with Zsh seem to handle ANSI color codes properly. If you're using Bash, I bet it's the version of echo on macOS, it doesn't have the -e option like Linux systems. Can you try replacing echo -e with printf? I'm curious to know if that'll work.

sed -i "s/echo -e/printf '%b\\\n'/g" /path/to/chimera.sh

tokyoneon avatar Mar 02 '21 17:03 tokyoneon

I am using ohmysh (thug life choose me) hahaha

Darkcast avatar Mar 03 '21 13:03 Darkcast