Advertisement
Guest User

fake_test

a guest
Nov 26th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. #!/bin/bash
  2. ##########################################################
  3. # Fake privilege escapation for Weevely 1.0 demostration #
  4. ##########################################################
  5.  
  6. # THIS EXPLOIT SPAWN A ROOT SHELL
  7.  
  8. # With Weevely you can easily edit files situated on target as if
  9. # it was on local machine, for example to configure scripts like this.
  10.  
  11. RUNIT=0
  12.  
  13. if [ $RUNIT -ne 0 ]; then
  14. echo "Spawning root shell.."
  15. /sbin/suidproc
  16. else
  17. echo "Please edit this script to activate the example exploit. Quitting."
  18. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement