Commit f0ea3efe authored by lovely.wcm's avatar lovely.wcm

c2NyaXB0IHVwZGF0ZQo=

parent 1a8e9990
#!/bin/bash
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;
fi
......@@ -10,9 +10,9 @@ do
host=$( echo "$line" |
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"
......@@ -75,7 +75,7 @@ if [ "$convertedLog" != "" ]; then
# log format: author1:"message1"; author2:"message2"...
base64 -d gfwlist.txt > list.txt &&
git commit -a -m "$convertedLog" &&
git commit -a -m "$convertedLog";
# apply local modification
if [ -s temp.patch ]; then git apply temp.patch; fi &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment