ShadowClone
ShadowClone copied to clipboard
Error coming while running Nuclei
Encountered a bad command exit code!
Command: 'nuclei -duc -l /tmp/infile -t /nuclei-templates -config-directory /tmp/'
Exit code: 127
Stdout: already printed
Stderr: already printed
Were you able to resolve the error?
not yet
I know this is old, but adding some info in case anyone else comes across it.
I ran into this yesterday. For me at least, it was being caused by trying to provide nuclei-templates in my container in /tmp but the permissions weren't correct causing nuclei to crash. There is a good chance the permissions on your nuclei-templates directory are also incorrect.
For context, when you build the container via lithops, it runs everything as root. If you are executing this container on AWS Lambda, the user becomes sbx_user1051.
You could try running nuclei with only nuclei -version
, which would not attempt to read the templates or config and should return your nuclei version. If that is the case, then it is definitely issues with your templates.
Hey guys, I have same problem. @linuxkd Hey Drew, I just installed and configured shadowclone and wanted to run it for the first time. I got this command from the demo video:
python3 /root/ShadowClone/shadowclone.py -i /root/apple.txt --split 300 -o httpxout -c "/root/.pdtm/go/bin/httpx -1 {input} -t 100"
but I got
Encountered a bad command exit code!
Command: '/root/.pdtm/go/bin/httpx -1 {input} -t 100'
Exit code: 126
Stdout: already printed
Stderr: already printed
Is it possible for you to tell me how I can fix this?
P.s This works alone fine:
/root/.pdtm/go/bin/httpx -l apple.txt -t 100
Hi @amiremami, did u find any solution for that error?
@MustafaSky Yes, contact me on discord "amir_23"