RAGG2(1) General Commands Manual RAGG2(1) (NAME) ragg2 - Radare2 r_egg x86 ARM (SYNOPSIS) ragg2 [-FOLsrxhvz] [-a arch] [-b bits] [-k os] [-o file] [-i sc] [-I path] [-E enc] [-B hex] [-c k=v] [-C file] [-p pad] [-q off] [-S string] [-f fmt] [-nN dword] [-dDw off:hex] [-e expr] (DESCRIPTION) r_egg x86-32 x86-64 ARM . r_asm r_bin . r_egg (relocatable) . ragg2 C . rabin2 . (OPTIONS) -a arch (x86, mips, arm) -b bits (32, 64, ..) -B hexpairs (hexpair) -c k=v -C file -d off:dword dword ( ) -D off:qword qword ( ) -e egg-expr egg -E encoder . : -L -f format (raw, c, pe, elf, mach0, python, javascript) -F (osx=mach0, linux=elf, ..) -h -H var -i shellcode . : -L -I path include -k os (linux,bsd,osx,w32) -L ( ) -n dword ( ) -N dword ( ) -o file -O ( a.out) -p padding (padding=n10s32) ntas : nop trap 'a' NTAS : -P size debruijn -q fragment debruijn -r -s -S string -v -w off:hex -x -X hexpairs rop -z () C (ENVIRONMENT) R2_NOPLUGINS R2_PLUGINS_ORDER : i= e= h= s= =iehs ? (EXAMPLES) r_egg: $ cat hi.r /* hello world in r_egg */ write@syscall(4); //x64 write@syscall(1); exit@syscall(1); //x64 exit@syscall(60); main@global(128) { .var0 = "hi!\n"; write(1,.var0, 4); exit(0); } $ ragg2 -O -F hi.r $ ./hi hi! C: $ cat hi.c main() { write(1, "Hello\n", 6); exit(0); } $ ragg2 -O -F hi.c $ ./hi Hello : $ wc -c < hi 165 : $ ragg2 hi.c | tail -1 eb0748656c6c6f0a00bf01000000488d35edffffffba06000000b8010 000000f0531ffb83c0000000f0531c0c3 XOR : $ ragg2 -e xor -c key=64 -B $(ragg2 hi.c | tail -1) 6a2d596a405be8ffffffffc15e4883c60d301e48ffc6e2f9ab4708252 c2c2f4a40ff4140404008cd75adbfbfbffa46404040f8414040404f45 71bff87c4040404f45718083 (SEE ALSO) radare2(1) (AUTHORS) pancake . July 10, 2025