Skip to content

Commit

Permalink
exclude some ip
Browse files Browse the repository at this point in the history
  • Loading branch information
txthinking committed Apr 21, 2015
1 parent 9a5eabf commit 47e18a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/select.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ do
line=""
while read line
do
ip=$(echo $line | awk '{print $5}')
ip=$(echo $line | awk '{print $1}')
c=$(nmap --host-timeout 2s $ip -p 443 2>/dev/null | grep -Pc "443/tcp open")
if [ $c -ne 1 ]
then
Expand All @@ -52,7 +52,7 @@ do
if [ $domain = "*.google.com" ]
then
#c=$(echo $ip | grep -Pc "^(173|207|209|216|64|66|72|74)")
c=$(echo $ip | grep -Pc "^(173|207|209|64|66|72|74)")
c=$(echo $ip | grep -Pc "^(173|207|209|66|72|74)")
if [ $c -ne 1 ]
then
continue
Expand Down

0 comments on commit 47e18a2

Please sign in to comment.