Advertisement
douglasmun

How I did it 01?

Nov 17th, 2017
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.03 KB | None | 0 0
  1. <How I did it 01>
  2.  
  3. # First download the list from PasteBin
  4. $ curl -O https://pastebin.com/raw/eyDNad03
  5.  
  6.     1holejhaltf.top
  7.     1royalbankrbc-control.top
  8.     1royalrbcc-supportrbc.top
  9.     1track-qonline2.top
  10.     1zunostorecc.top
  11.     ...
  12.  
  13. # Second, resolve the domains to IP
  14. $ for i in $(eyDNad03); do printf $i"\n" && dig +short $i && printf "\n"; done > d1
  15.  
  16.     1holejhaltf.top
  17.  
  18.     1royalbankrbc-control.top
  19.  
  20.     1royalrbcc-supportrbc.top
  21.  
  22.     1track-qonline2.top
  23.     47.74.186.197
  24.  
  25.     1zunostorecc.top
  26.     47.74.186.197
  27.     ...
  28.  
  29. # Sort Unique IP
  30. $ grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" d1 | sort -u > d2
  31.  
  32.     103.91.217.25
  33.     104.154.199.132
  34.     104.154.95.132
  35.     104.199.27.137
  36.     104.203.224.147
  37.     ...
  38.  
  39. # Find out the country of each IP
  40. $ for IP in $(cat d2) ; do printf $IP"," && curl -sL http://ipinfo.io/$IP/country ; done > d3
  41.  
  42.     103.91.217.25,HK
  43.     104.154.199.132,US
  44.     104.154.95.132,US
  45.     104.199.27.137,US
  46.     104.203.224.147,US
  47.     ...
  48.  
  49. # Select those IP residing in Singapore
  50. $ grep "SG$" d3
  51.  
  52.     47.74.150.164,SG
  53.     47.74.186.197,SG
  54.  
  55. # Grep the previous line to find the domain resoving to this IP
  56. $ grep -B 1 47.74.150.164 d1 | grep -v ^4 | grep -v ^-- >> d4
  57.     joramores1.name
  58.  
  59. # Grep the previous line to find the domain resoving to this IP
  60. $ grep -B 1 47.74.186.197 d1 | grep -v ^4 | grep -v ^-- >> d4
  61.  
  62.     1track-qonline2.top
  63.     1zunostorecc.top
  64.     2onlinetrackqstore1.top
  65.     abc-store-vcc.com
  66.     abcstore-vcc.com
  67.     atmccshop.top
  68.     ...
  69.  
  70. $ mkdir tmp
  71.  
  72. # Visit each domain to check its HTTP status code
  73. $ 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;
  74.  
  75.     000 http://joramores1.name/
  76.     200 http://1track-qonline2.top/
  77.     200 http://1zunostorecc.top/
  78.     200 http://2onlinetrackqstore1.top/
  79.     200 http://abc-store-vcc.com/
  80.     ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement