Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


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

RE: Subprocess Exploitation #2
But that is a normal C or C++ coding bro.. Where is the exploit lol
Die  But Don't Lie
“Oh Abu Dharr! Don’t look at the smallness of the sin but look at the one you disobeyed.” Prophet Muhammad (pbuh)
[Image: p_237m2jx1.png]
Click for Free VPN

Reply

RE: Subprocess Exploitation #3
(10-01-2023, 08:47 AM)Mr.Kurd Wrote: But that is a normal C or C++ coding bro.. Where is the exploit lol
Run it on w3schools ide compiler
(This post was last modified: 10-02-2023, 12:30 AM by DoXeD.)

Reply







Users browsing this thread: 4 Guest(s)