Advertisement
qiwichupa

IPScan - portsearch.cgi

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