Information Security

Backtrack 5: Information Gathering: Network Analysis: DNS Analysis: reverseraider

So many of the DNS enumeration scripts available in backtrack focus on typical DNS but reverseraider does what it sounds like it might do which is enumerate reverse DNS names. Enumerating reverse DNS on an IP or set of IP’s can sometimes reveal information you did not previously have. It is possible to be targeting a web server that has a bunch of virtual hosts and you prefer to track down primary web site on the web server which is where reverseraider may provide the results necessary as it is more likely that the most important site on the virtual web server has reverse DNS configured on the host itself. Below I display the primary three methods of using reverseraider.

Technology Insights

Count How Many Files Are In A Directory And All Sub Directories On A Linux Server

Counting files in Linux is fairly easy by simply listing the files using ls and then using the wc application. Both the ls application and the wc application are core Linux applications and should be installed by default on your server. One thing that I had forgotten how to do was how to count all files in a specific directory as well as all files in each sub directories. The second method I will display below is not 100% accurate because it will count sub directories twice however it is likely you just need a round about method to get an idea of how many files and sub directories you are working with. Below I describe first how to count all files and directories within a single directory and second how to count all the files, sub directories, and files within the sub directories via a Linux shell or command prompt.

Technology Insights

Use wget To Download All PDF Files Listed On A Web Page, wget All PDF Files In A Directory

Earlier tonight I was working on a project for a customer that wants to translate the Hebrew Interlinear Bible into English which obviously has been done many times before. This customer however has some translations that he wants to make for himself so I needed to find a Hebrew Interlinear Bible in text or PDF format. I was able to locate the Hebrew Interlinear Bible in PDF format however there was a separate PDF for each chapter in each book which numbers something like 930 different PDF’s. I was able to use the wget command described in detail below to download all of the PDF’s with a single command on my Windows 7 computer.

Technology Insights

CentOS Linux: sort: invalid option — R, Try sort –help for more information

I was working on an article a couple days ago with a friend and he had sent over some commands for me to reference in the article which included the “sort -R” command. The sort -R switch will randomly sort the contents of a file which is very useful in certain situations. The problem is that the sort command which is installed by the coreutils RPM package on CentOS does not include the -R switch because it is to old. Below I describe the issue in more detail and provide references on how you could upgrade sort on CentOS Linux.