Advertisement
metalx1000

Basic Busybox httpd webserver

Oct 5th, 2014
705
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.67 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. busybox httpd -p 8080 -v -f
  4.  
  5. #this will run as what ever user you start it as unless you tell it otherwise with '-u'
  6. #this means that if you start it with 'sudo' it will have sudo permissions.
  7. #default / is the current dir unless you use '-h'
  8. #cgi files should be in 'cgi-bin' of servers /
  9. #don't forget to chmod +x cgi files
  10. #'-f' Do not daemonize
  11. #more info at http://wiki.openwrt.org/doc/howto/http.httpd
  12.  
  13. #example config:
  14. #busybox httpd -p 8080 -v -f -c http.conf
  15. #H:/tmp/web
  16. #A:127.0.0.1
  17. #D:*
  18. #*.cgi:/bin/sh
  19. #example user is bob and password is linux2
  20. #/:bob/linux2
  21. #password as hash httpd -m "linux2"
  22. #/:bob:$1$1mWbCBYu$3Yp2f6Kao5SiEdW.f/WEv0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement