Needless to say, I found this rather disconcerting and wanted to find more information about the site. One of the things I did was to figure out what other subdomains the site has on its server.
It's easy enough to figure out the main ip address of a website. From there, finding many subdomains isn't hard. Most web hosting companies give out ip addresses in a somewhat sequential manner. Most companies sign up for their main servers all at the same time. This should mean that their servers' ip addresses are clustered around each other, which makes it easy to enumerate all of them and see if the resolved domain names for the ip addresses belong to the site. This is how I did this from the command line:
@del ips.txt 2>nul &cmd /c "for /l %i in (0, 1, 255) do @echo 216.157.72.%i >> ips.txt & @echo 216.157.73.%i >> ips.txt" & nslookup 2>nul < ips.txt > results.txt & type results.txt | find /i "wegame"
@del ips.txt 2>nul & cmd /c "for /l %i in (0, 1, 255) do @echo 216.157.72.%i >> ips.txt & @echo 216.157.73.%i >> ips.txt" & nslookup 2>nul < ips.txt > results.txt & type results.txt | find /i "wegame"
Name: test3.wegame.com Name: test3.wegame.com Name: medproc3.wegame.com Name: medproc3.wegame.com Name: db2.wegame Name: db2.wegame Name: vip1.wegame.com Name: fw.wegame Name: medproc1.wegame Name: medproc1.wegame Name: medproc2.wegame Name: medproc2.wegame Name: test2.wegame Name: test2.wegame Name: test1.wegame Name: test1.wegame
@echo . & @echo ------------------------------ & @echo . NSLOOKUP SCRIPT & @echo ------------------------------ & @echo . & @echo . Generating ips into ips.txt & @del ips.txt 2>nul & cmd /c "for /l %i in (0, 1, 255) do @echo 216.157.72.%i >> ips.txt & @echo 216.157.73.%i >> ips.txt" & @echo . Running nslookup on generated ips & @echo . (results outputted to results.txt) & nslookup 2>nul < ips.txt > results.txt & @echo . Searching results for [wegame] & type results.txt | find /i "wegame" & @echo . DONE!
. ------------------------------ . NSLOOKUP SCRIPT ------------------------------ . . Generating ips into ips.txt . Running nslookup on generated ips . (results outputted to results.txt) . Searching results for [wegame] Name: test3.wegame.com Name: test3.wegame.com Name: medproc3.wegame.com Name: medproc3.wegame.com Name: db2.wegame Name: db2.wegame Name: vip1.wegame.com Name: fw.wegame Name: medproc1.wegame Name: medproc1.wegame Name: medproc2.wegame Name: medproc2.wegame Name: test2.wegame Name: test2.wegame Name: test1.wegame Name: test1.wegame . DONE!
No comments:
Post a Comment