OWASP / ZSC

OWASP ZSC - Shellcode/Obfuscate Code Generator https://www.secologist.com/
https://www.secologist.com/
Other
646 stars 217 forks source link

OSX: Wrong compile command #91

Closed CodeMaxx closed 8 years ago

CodeMaxx commented 8 years ago

compile example: gcc -ggdb -static -m32 -fno-stack-protector -z execstack -mpreferred-stack-boundary=2 -o shellcode_compiled

Since OS X(since version 10.6) doesn't support PowerPC architecture some of these gcc flags like -mpreferred-stack-boundary won't work...I'm looking for alternatives. Will send in a PR soon.

paraschetal commented 8 years ago

@Pratik151 Are the instructions working for windows?

Ali-Razmjoo commented 8 years ago

like johanna said in #86, just add an simple example for osx and linux, i don't think even these switchs like -ggdb or ... be required, i just add it to analysis shellcodes sometimes :D it's not necessary. Just add a simple sample in the tmp file.

CodeMaxx commented 8 years ago

@Ali-Razmjoo Do you mean something like gcc -m32 -o shellcode_compiled filename.c ?

Ali-Razmjoo commented 8 years ago

yes.