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 Catalina shuf error #3

Open
Darkcast opened this issue Feb 23, 2021 · 5 comments
Open

MacOS Catalina shuf error #3

Darkcast opened this issue Feb 23, 2021 · 5 comments

Comments

@Darkcast
Copy link

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
Copy link
Author

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

@tokyoneon
Copy link
Owner

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)

@Darkcast
Copy link
Author

Darkcast commented Mar 2, 2021

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 :)

@tokyoneon
Copy link
Owner

tokyoneon commented Mar 2, 2021

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

@Darkcast
Copy link
Author

Darkcast commented Mar 3, 2021

I am using ohmysh (thug life choose me) hahaha

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

No branches or pull requests

2 participants