mirror of
https://github.com/rizinorg/shellforge4.git
synced 2026-11-08 17:48:11 -10:00
18 lines
238 B
C
Executable File
18 lines
238 B
C
Executable File
/*
|
|
* ShellForge example: report UID and EUID
|
|
* $Id$
|
|
*/
|
|
|
|
int main()
|
|
{
|
|
int u;
|
|
|
|
u = getuid();
|
|
write(1, &u, sizeof(u));
|
|
u = geteuid();
|
|
write(1, &u, sizeof(u));
|
|
close(1);
|
|
exit(0);
|
|
}
|
|
|