cindy_wijaya

Simple Execute BASH/ASH Script with URL Code

Sep 28th, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1.  
  2. #This is simple script to execute bash/ash script with URLCODE MultiVariable
  3. #Of course it's vulnerable LOL just for fun :v
  4.  
  5. #---BEGIN OF SCRIPT ---
  6. IFS=$'&'; parm=$QUERY_STRING; for VAR in $parm; do eval $VAR; done
  7.  
  8. #var output test
  9. echo $a > /www/a.txt
  10.  
  11. #---END OF SCRIPT ---
  12.  
  13. #test with:
  14. #http://192.168.6.1/lop.sh?a=123&b=456&c=ok
  15.  
  16. #add uhttpd conf /etc/config/uhttpd
  17. ...
  18. list interpreter ".sh=/bin/sh"
  19. ...
Advertisement
Add Comment
Please, Sign In to add comment