0 Members and 1 Guest are viewing this topic.
Grep IP adresses
grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' <file> > output_file
Grab ip's and ports from a html proxy list
curl http://www.samair.ru/proxy/proxy-01.htm | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}:[0-9]\{1,5\}'
this can be handy to get some proxy ip's, I have a few bash scriptsfor collection all the proxy ip's from sites. (example samair.ru)there are a lot of sites who offered proxy ip's lists webbased.
grep -a -o -e "[0-9a-f]\{32\}" shop_users.html > userhash.txt
grep -o -e "[0-9a-f]\{32\}" shop_users.sql > userhash.txt
cat file | sed y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ > <output file>
sed 's/[0-9]*//g' input.txt > output.txt
sed 's/^[ \t]*//;s/[ \t]*$//'
sed '/./,$!d'
cat sqli.txt | sed "s/[']*//g" > sqli_list.txt
curl http://<weblink>.html | grep -o -E "[a-zA-Z]{3,}://[a-zA-Z0-9\.]+/*[a-zA-Z0-9/\\%_.]*\?*[a-zA-Z0-9/\\%_.=&]*"
grep -oP '(\d{1,3}\.){3}\d+'
awk '{print tolower($0)}'
grep -oP "\w{3,}://[\w\.-]{1,255}(/[^'\"<>\s]*){0,1}"