In the past I used CentOS Linux the open source RedHat Enterprise Linux clone but these days I find myself using Ubuntu Linux more and more often because so many more packages that clients want installed are more up to date. One command I used to use on CentOS all the time was the yum whatprovides command which would allow me to search for specific applications, scripts, libraries, etc. to figure out what packages I needed to install. The command that is similar on Ubuntu is apt-file which does not come installed by default. Below I show the output of an example yum whatprovides command on CentOS Linux followed by what needs to be done to use apt-file on Ubuntu Linux.
Earlier today I needed to lookup the origin of some IP’s and I typically use whois but it wasn’t installed on the CentOS server I was working on. Attempting to install whois failed so below there is information on installing whois using the yum package manager on CentOS.
Recently I wrote an article about using dig and whois on Windows 7. If you want to review the previous article click here. A question recently came up about how to whois .de domains. For each TLD or Top Level Domain such as .de, .co.uk, .mil, .ru, etc. you will need to use a different whois server. Below there is information about attempting to run whois against google.de without specifying a different whois server followed by information using the proper whois server.
I have been wanting to get the use of dig on Windows 7 for awhile but hadn’t taken the time to do so until now. The problem is nslookup is not as helpful in terms of TTL of zone files, etc. and while you can accomplish your tasks with nslookup using dig makes life much easier on Windows 7 when troubleshooting DNS type issues. The other night I was in the middle of a time critical launch of a new web cluster and needed dig on the Windows 7 laptop I was working on so I decided to get it working while I was waiting for some data to transfer. I actually had slipped on setting the TTL, which was for a single sub domain that was part of the transfer, from a TTL of a entire day (86400 seconds) to a TTL of one hour (3600 seconds). Anyhow below is more information on installing dig on a Windows 7 computer.
In going through all the tools with Alex on Backtrack I have discovered a few bugs and missing modules or libs. I will be writting posts on how to fix them but I will also be adding the fix’s to Backtrack svn as well. This morning I was writting the article on Dnsenum by my buddy Barbsie and I ran into a missing perl module.
- root@666:/pentest/enumeration/dnsenum# ./dnsenum.pl --enum -f dns.txt --update a -r cnn.com
- dnsenum.pl VERSION:1.2
- Warning: can't load Net::Whois::IP module, whois queries desabled.
Below I will show to to download and install the needed module: