Created
October 30, 2009 23:55
-
-
Save pgib/222834 to your computer and use it in GitHub Desktop.
Proof-of-concept to hide an exploit used to upload and execute a malicious script.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
$pid = fork(); | |
if ($pid) | |
{ | |
print("Deleting $0 to be sneaky..."); | |
unlink($0); | |
exit(0); | |
} | |
else | |
{ | |
# hide our original location | |
chdir "/"; | |
# stick around so our peeps can see us | |
sleep 300; | |
# do a bunch of other nasty stuff... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment