ShadowClone icon indicating copy to clipboard operation
ShadowClone copied to clipboard

Error coming while running Nuclei

Open Ajaymagar opened this issue 1 year ago • 7 comments

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

Ajaymagar avatar Jun 24 '23 10:06 Ajaymagar

Were you able to resolve the error?

Bruno-Assis avatar Nov 28 '23 11:11 Bruno-Assis

not yet

Ajaymagar avatar Dec 01 '23 04:12 Ajaymagar

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.

linuxkd avatar Apr 17 '24 20:04 linuxkd

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

Sh4d0wHunt3rX avatar May 31 '24 15:05 Sh4d0wHunt3rX

Hi @amiremami, did u find any solution for that error?

MustafaSky avatar Jun 07 '24 12:06 MustafaSky

@MustafaSky Yes, contact me on discord "amir_23"

Sh4d0wHunt3rX avatar Jun 07 '24 12:06 Sh4d0wHunt3rX