![]() |
[Tut] DNS Hacking and Information gathering - Windows [Local Injection] - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Computers (https://sinister.ly/Forum-Computers) +--- Forum: Operating Systems (https://sinister.ly/Forum-Operating-Systems) +--- Thread: [Tut] DNS Hacking and Information gathering - Windows [Local Injection] (/Thread-Tut-DNS-Hacking-and-Information-gathering-Windows-Local-Injection) |
[Tut] DNS Hacking and Information gathering - Windows [Local Injection] - Shining White - 06-06-2012 There is lot of methods to take DNS information and and Hacking with DNS Information i will show two ways in here to take DNS information gathering first : using nslookup command in windows command Prompt second : using Application Called dig Using CMD - nslookup Command what is nslookup Definition - Name Server Look up Nslookup.exe is a command-line administrative tool for testing and troubleshooting DNS servers. This tool is installed along with the TCP/IP protocol through Control Panel. First of all open the CMD (Command Prompt) in your Computer for that Press Win+R or Start -> Run -> cmd (in windows 8 , press the Win key and type "cmd") ![]() then type Code: nslookup ![]() About the Showing "Default server : Unknown " Code: When NSLOOKUP starts, before anything else, it checks the computer's network configuration to determine the IP address of the DNS server that the computer uses. Here is a Sample Cheat Sheet for the nslookup Code: HINFO - Host Information or this code Source from - >http://ss64.com/nt/nslookup.html Code: Command Mode options: or you can siply type Help on the cmd on nslookup ![]() We'll look some sample codes now set current default server to the root simply type Code: root ![]() if we need to see the nameservers : we type from the above command for sample site i will use Google.com first type Code: set q=ns Code: google.com see the image : ![]() We take every DNS info Code: set q=any ok here we finish the dns looking up through the cmd nslookup CMD - Using DIG (Domain Information grabber) Download the dig - Click here Source Site : http://members.shaw.ca/nicholas.fong/dig/ Capture : DIG Vs Whois Information Code: The DNS system and the whois system are not the same, they are only loosely tied together. in here With Dig we will use to nslookup , and DNS queries and with Whois ---> Domains and IP First goto the folder Code: c:\windows\system32\drivers\etc\ Code: resolv.conf ![]() Note : if the folder not allowed to make a file there , create it in anywhere else and paste on the path folder After that Extract the dig to the C:\dig ![]() Now goto PHP Code: MyComputer Properties --> Advance System Settings --> Environment Variables In System Variable list search for the path and Edit it in the End of Variable value Box Add Code: ;C:\dig see the image : ![]() Now Open the cmd and type the Code: dig ![]() OKay Lets take some samples now , i will take the gmail.com for the Sample Site type Code: dig mx gmail.com *trace you can see MX records from the gmail, there ![]() MX records : Short for mail exchange record, an entry in a domain name database that identifies the mail server that is responsible for handling e-mails for that domain name. if we might want to check the IP Address from the mx records we type Code: dig _record that we found on above search_ then if we need to check host name (revers dns lookup) type Code: dig -x _IP that we found_ also we can trace the Nameservers with this Code: dig -x _IP_ *trace we can find Domain Control Nameservers like , edu , mil , ae , lk , au , in , pk , Code: dig edu.NS and we are going to use Whois Option in dig now
type Code: whois ![]() and i want to find whois info about facebook.com type Code: whois facebook.com ![]() in there you can find Domain register and expire date also ![]() interesting huh :whistle: i found one nameserver IP address is 69.171.224.37 on Facebook from dig facebook.com command and now going to whois on it Code: whois 69.171.224.37 ![]() searching bgp prefix on the domain name Code: whois -h bgpmon.net 69.171.224.37 ![]() you can see prefix Origin AS number , etc Shows the spf Code: dig txt _domainname_ I hope this covers the basic parts of the DIG and you can find now yourself searching some interesting information about this ![]() BBye ![]() ![]() RE: [Tut] DNS Hacking and Information gathering - Windows [tut] - ranchescdoer - 06-06-2012 cant really understand..... but i will do.. thanks for this wonderful tutorial RE: [Tut] DNS Hacking and Information gathering - Windows [tut] - Shining White - 06-06-2012 (06-06-2012, 11:25 PM)ranchescdoer Wrote: cant really understand..... but i will do.. thanks for this wonderful tutorial which part you not understanding really ? RE: [Tut] DNS Hacking and Information gathering - Windows [Local Injection] - HrDe - 06-07-2012 Awesome tutorial by awesome hacker, thanks for share. also want to write on my blog. RE: [Tut] DNS Hacking and Information gathering - Windows [Local Injection] - Shining White - 06-07-2012 (06-07-2012, 01:15 AM)HrDe Wrote: Awesome tutorial by awesome hacker, thanks for share. also want to write on my blog. i love your blog ! |