Skip to content

Instantly share code, notes, and snippets.

@c1b3rh4ck
Created March 18, 2011 03:19
Show Gist options
  • Save c1b3rh4ck/875563 to your computer and use it in GitHub Desktop.
Save c1b3rh4ck/875563 to your computer and use it in GitHub Desktop.
PoC bash Scripting
#!/bin/bash
for webservmethod in GET POST PUT TRACE CONNECT OPTIONS PROPFIND;
do
printf "$webservmethod " ;
printf "$webservmethod /HTTP/1.1\nHost:$1\n\n " |nc -q 1 $1 80 |grep "HTTP/1.1"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment