Login Register


Subprocess Exploitation filter_list
Author
Message
Subprocess Exploitation #1
This code uses the system function to execute two commands in the terminal. The first command, "ls -lra /etc", lists the contents of the /etc directory in a long format, including hidden files. The second command, "set", displays the environment variables set in the current terminal session. After executing the commands, the program returns 0, indicating successful execution.

Code:
#include <stdio.h> #include <stdlib.h> int main() { system("ls -lra /etc; set"); return 0; }

Reply





Messages In This Thread
Subprocess Exploitation - by DoXeD - 10-01-2023, 05:53 AM
RE: Subprocess Exploitation - by Mr.Kurd - 10-01-2023, 08:47 AM
RE: Subprocess Exploitation - by DoXeD - 10-02-2023, 12:30 AM



Users browsing this thread: 1 Guest(s)