Hack Like a Pro: How to Conduct Passive Reconnaissance of a Potential Target

May 21, 2013 04:23 PM
May 21, 2013 04:26 PM
635047316193566641.jpg

Welcome back, my novice hackers!

Most of my tutorials up until this point have addressed how to exploit a target assuming that we already know some basic information about their system. These include their IP address, operating system, open ports, services running, and so on.

Several of you have written me asking how to find this information, so for the next few guides here in Null Byte, I'll be covering reconnaissance. In other words, how to get the information needed to hack your target system.

635047316592927342.jpg

Why Passive Recon?

Reconnaissance can be divided into at least two categories, active and passive. Active reconnaissance requires that you interact with the target computer system to gain information about it. Although this can be very useful and accurate, it risks detection. If you're detected doing reconnaissance on a system, the system admin may choose to block your IP address and you'll leave a trail to your subsequent activity.

If possible, we would prefer to gather the essential information without ever interacting with the system, thus leaving no trail to trace back to us. That's what passive reconnaissance is.

635047323638835718.jpg

Although there are a number of ways to conduct passive recon, one of the best ways is to use a website like Netcraft.

Step 1: Navigate a Browser to Netcraft

Let's open a browser and navigate to the Netcraft website. We should see a webpage that looks like this.

635047294314528212.jpg

Netcraft is a UK company that tracks virtually every website on the planet. From this data, they're able to calculate market share for web servers, uptime, etc., becoming one of the leading authorities for this type of information. They also offer some security services such an anti-phishing extension and phishing alerts.

Another service that Netcraft offers is data about nearly every website. This data can be extremely valuable to the hacker. Notice on the right side of the webpage, the area that asks "What's that site running?"

635047313951998704.jpg

We can simply type in a domain name and hit enter.

Step 2: Search a Domain

As we can see in the screenshot below, We simply typed in a domain and Netcraft returns results for the domain. Notice that in this case, it returned two sites.

635047304408525942.jpg

Let's click on the report of the second one.

Step 3: Open the Site Report

Now we can open the site report and get some critical information about this site. We can see at the top of this report, such information as site rank, primary language, IP address, and nameserver.

635047305773216339.jpg

If we scroll down a bit, we can get some excellent information that would be useful to a potential attacker.

635047307144926748.jpg

We can see under the heading "Hosting History" the netblock owner, IP address(es), operating system, web server, and when the server was last changed. All of this can be useful to the hacker, including the date last changed. This date generally represents the date the system was last rebooted or updated.

In the case above, we can see it was last updated Sept. 28, 2007. This would imply that any security OS patches that have been supplied in the interim have NOT been applied to this system. As a hacker, this is juicy information as it tells us that any vulnerabilities to this system that have been found since Sept. 28, 2007 are still available on this system as no vulnerability patches have been applied.

Step 4: Site Technology

When we scroll down a bit further, we come to a section titled "Site Technology". Here we get a rundown on the technology the site's running.

635047309514570910.jpg

This listing provides us with information of what technologies the site is running and from here the hacker can seek out vulnerabilities in these named technologies. This is a boon for the hacker as they don't have to guess what technologies are behind the website. As every hack is specific to a technology, knowing what technologies they are running makes it easier for the hacker to find the appropriate hack.

It's important to note here that Netcraft data is not foolproof. I would give it an 80-85% probability of being correct, and that's high enough to garner valuable recon info on a website.

In my coming coming articles, we will look at additional techniques to scan and do recon on potential targets. Until then, feel free to ask questions on this below, or head the Null Byte forum for any questions off topic.

Camouflaged soldier and Binoculars soldier photos via Shutterstock

Comments

No Comments Exist

Be the first, drop a comment!