#include
INT main (void) {int Ret; Ret = setuid (0); // Make the program to run Printf ("Ret% D / N", RET); system ("/ bin / bash");} and it is Before you get the root privilege, you can make the following modifications! ! ! ! !
# cc ac # chmod 04777 a.out // Set the UID bit for s # chown root: root a.out // Make the file owner to root, under Mac, SYSTEM, the group is Wheel # su - guest $ a. Outret 1 #