Advertisement
metalx1000

Very Basic httpd cgi-bin cmd runner

Jan 1st, 2015
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.23 KB | None | 0 0
  1. #!/system/bin/sh
  2. echo "Content-type: text/html"
  3. echo ""
  4.  
  5. eval $(echo "$QUERY_STRING"|awk -F'&' '{for(i=1;i<=NF;i++){print $i}}')
  6. tmp=`/system/bin/busybox httpd -d $cmd`
  7. echo "<h1>$tmp</h1>"
  8. echo "<pre>"
  9. $tmp
  10. echo "</pre>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement