mirror of
https://github.com/gfwlist/gfwlist.git
synced 2024-12-24 23:55:18 +00:00
c2NyaXB0IHVwZGF0ZQo=
This commit is contained in:
parent
1a8e9990e5
commit
f0ea3efe53
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ $# != 1 ]; then
|
if [ $# != 1 ]; then
|
||||||
echo -e "Usage:\n $./lookup.sh wordpress\n $./lookup.sh ghs\n";
|
echo -e "Usage:\n $./lookup.sh wordpress\n $./lookup.sh ghs.l.google\n";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -10,9 +10,9 @@ do
|
|||||||
|
|
||||||
host=$( echo "$line" |
|
host=$( echo "$line" |
|
||||||
grep -oE "[a-z0-9]([a-z0-9_\.\-]*[a-z0-9])?\.[a-z]{2,4}" |
|
grep -oE "[a-z0-9]([a-z0-9_\.\-]*[a-z0-9])?\.[a-z]{2,4}" |
|
||||||
grep -vE "dot$|htm$|php$" );
|
grep -vE "dotn$|html$|php$" );
|
||||||
|
|
||||||
[ "$host" ] && [ "$(nslookup $host | grep $1)" ] && echo $host;
|
[ "$host" ] && [ "$(nslookup $host | grep -i $1)" ] && echo $host;
|
||||||
|
|
||||||
done < "list.txt"
|
done < "list.txt"
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ if [ "$convertedLog" != "" ]; then
|
|||||||
|
|
||||||
# log format: author1:"message1"; author2:"message2"...
|
# log format: author1:"message1"; author2:"message2"...
|
||||||
base64 -d gfwlist.txt > list.txt &&
|
base64 -d gfwlist.txt > list.txt &&
|
||||||
git commit -a -m "$convertedLog" &&
|
git commit -a -m "$convertedLog";
|
||||||
|
|
||||||
# apply local modification
|
# apply local modification
|
||||||
if [ -s temp.patch ]; then git apply temp.patch; fi &&
|
if [ -s temp.patch ]; then git apply temp.patch; fi &&
|
||||||
|
Loading…
Reference in New Issue
Block a user