Guest User

Untitled

a guest
Feb 22nd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. curl -d "username=admin"
  2. -d "password=password"
  3. -d "site=NW3"
  4. -XPOST "http://localhost/sites/site.cgi"
  5.  
  6. curl -s -d "username=admin"
  7. -d "password=password"
  8. -d "site=NW3"
  9. -XPOST "http://localhost/sites/site.cgi" > /dev/null
  10.  
  11. if [ "$1" == "debug" ]; then
  12. curl=''
  13. res=''
  14. else
  15. curl='-s'
  16. res=' > /dev/null'
  17. fi
  18.  
  19. curl $curl -d "username=admin"
  20. -d "password=password"
  21. -d "site=NW3"
  22. -XPOST "http://localhost/sites/site.cgi" $res
Add Comment
Please, Sign In to add comment