Created
April 17, 2022 01:21
-
-
Save webgtx/bdab20f4e1d25be3d97e5b03bcd860c4 to your computer and use it in GitHub Desktop.
How to use system shell in C.
This file contains hidden or 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
int system(const char *shell); | |
int main() { | |
system("whoami"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment