Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <How I did it 01>
- # First download the list from PasteBin
- $ curl -O https://pastebin.com/raw/eyDNad03
- 1holejhaltf.top
- 1royalbankrbc-control.top
- 1royalrbcc-supportrbc.top
- 1track-qonline2.top
- 1zunostorecc.top
- ...
- # Second, resolve the domains to IP
- $ for i in $(eyDNad03); do printf $i"\n" && dig +short $i && printf "\n"; done > d1
- 1holejhaltf.top
- 1royalbankrbc-control.top
- 1royalrbcc-supportrbc.top
- 1track-qonline2.top
- 47.74.186.197
- 1zunostorecc.top
- 47.74.186.197
- ...
- # Sort Unique IP
- $ grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" d1 | sort -u > d2
- 103.91.217.25
- 104.154.199.132
- 104.154.95.132
- 104.199.27.137
- 104.203.224.147
- ...
- # Find out the country of each IP
- $ for IP in $(cat d2) ; do printf $IP"," && curl -sL http://ipinfo.io/$IP/country ; done > d3
- 103.91.217.25,HK
- 104.154.199.132,US
- 104.154.95.132,US
- 104.199.27.137,US
- 104.203.224.147,US
- ...
- # Select those IP residing in Singapore
- $ grep "SG$" d3
- 47.74.150.164,SG
- 47.74.186.197,SG
- # Grep the previous line to find the domain resoving to this IP
- $ grep -B 1 47.74.150.164 d1 | grep -v ^4 | grep -v ^-- >> d4
- joramores1.name
- # Grep the previous line to find the domain resoving to this IP
- $ grep -B 1 47.74.186.197 d1 | grep -v ^4 | grep -v ^-- >> d4
- 1track-qonline2.top
- 1zunostorecc.top
- 2onlinetrackqstore1.top
- abc-store-vcc.com
- abcstore-vcc.com
- atmccshop.top
- ...
- $ mkdir tmp
- # Visit each domain to check its HTTP status code
- $ for url in $(cat d4) ; do curl --socks5 127.0.0.1:9150 --max-time 5 -H "Accept: text/javascript, text/html, application/xml, */*" -A "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)" -sL -w "%{http_code} %{url_effective}\\n" "$url" -o ./tmp/$url.html; done > d5;
- 000 http://joramores1.name/
- 200 http://1track-qonline2.top/
- 200 http://1zunostorecc.top/
- 200 http://2onlinetrackqstore1.top/
- 200 http://abc-store-vcc.com/
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement