Advertisement
qiwichupa

IPScan - ipinfo.cgi

Aug 5th, 2011
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.31 KB | None | 0 0
  1. #!/bin/sh
  2. # test.sh
  3. # Environment Variable
  4. IP=`echo "$QUERY_STRING" | cut -f2 -d=`
  5. echo Content-type: text/html
  6. echo
  7. echo "<html>"
  8. echo "<head>"
  9. echo "<title>"
  10. echo "nmap -A $IP"
  11. echo "</title>"
  12. echo "</head>"
  13. echo "<body>"
  14.  
  15. echo `nmap -A $IP|sed 's/$/<br>/g'`
  16.  
  17. echo "</body>"
  18. echo "</html>"
  19. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement