pietrod21

Untitled

Nov 11th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #asm to elf aliases
  2.  
  3. alias escape="python -c $'import sys; a = sys.stdin; f = a.readlines()[0].strip(); print 2*'\''\\\\'\''+'\''x'\''+(2*'\''\\\\'\''+'\''x'\'').join([f[x:x+2] for x in range(len(f))][0::2])'"
  4. alias a2e='echo -e "#include <stdio.h>\n#include <string.h>\nunsigned char shellcode[]=\"$(</dev/stdin)\";\nmain(){__asm__(\"call shellcode\");}" | gcc -m32 -fno-stack-protector -z execstack -o elf -xc -'
Advertisement
Add Comment
Please, Sign In to add comment