mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 07:30:33 +00:00
e0fc376dab
* Initial working version of shellcodes inside r_egg $ ragg2 -i x86.osx.binsh -b 64 -k osx -f mach064 -o a.out ragg2 -L : list all plugins ragg2 -i <shellcode-plugin> : select shellcode ragg2 -r : show raw bytes ragg2 -x : execute -- fails :( * Use r_lib in r_egg - User defined shellcode plugins can now be loaded on runtime * Fix append_bytes in r_egg api * Implement r_egg option_{get|set} * Use working shellcode for x86.osx.binsh example (64bit) * Update pkgconfig templates * Add -D flag to rasm2 (show hex and asm) --HG-- rename : libr/egg/p/x86_osx_binsh.c => libr/egg/p/egg_x86_osx_binsh.c
14 lines
172 B
Bash
Executable File
14 lines
172 B
Bash
Executable File
#!/bin/sh
|
|
EXIT=0
|
|
OUTPUT="hello world"
|
|
cat > t.r <<EOF
|
|
exit@syscall(1);
|
|
write@syscall(4);
|
|
main@global(128,128) {
|
|
write (1, "hello world\n", 12);
|
|
exit (0);
|
|
}
|
|
EOF
|
|
. ./t.sh
|
|
|