Advertisement
x3roxx

Run shell commands using C

May 14th, 2024
795
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.12 KB | Cybersecurity | 0 0
  1. #include <stdlib.h>
  2.  
  3. int main() {
  4.     system("id"); /* Change this for the command you want to execute */
  5.     return 0;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement