See your system through the eyes of a hacker
WARNING: Never try anything you read here outside of your local network. Scanning and exploring distant ports or other people's networks is legally questionable, and could land you in very hot water. DON'T DO IT.
While regularly updating your system and having a firewall and antivirus software installed is essential, this isn't always enough to defeat information-gathering tools. Many of the standard tools used by network security professionals (and malicious hackers themselves) are freely available online.
They can easily reveal shocking details about your network, and using one gives you a better idea of both the need to secure yourself and what to secure. With a few mouse clicks, you can interrogate machines for what's running behind each open port, get details of the user's operating systems, and even find details of their network cards.
Here's how to do it, but there's an important caveat: this is only to be done on your own network. Scanning computers on the internet will get you into trouble.
All about Nmap
Nmap is the work of Gordon Lyon, known to the network security community as 'Fyodor'. What Nmap does is both simple and ingenious. It's essentially a port scanner that's designed to list open TCP and UDP ports on a running, networked computer.
Since its initial release in 1997, this simple functionality has been augmented to turn Nmap into a serious network analysis and attack tool. Nmap can find out far more about the target than just which of its ports are open.
By sending special sequences of data packets and analysing the results sent back by the target's TCP/IP 'stack' software, Nmap can detect the operating system running on the remote machine with a high degree of accuracy. It can also tell the make and model of the network adapter, the uptime of Linux machines and even the version of the software that's connected to a specific port.
This makes this program very dangerous in the wrong hands, but it can also be very useful if you're trying to improve your own security by looking at your system through the eyes of a hacker.
Nmap began life on Linux, but we're going to use the Windows version, which has a graphical user interface that makes things a bit easier to negotiate.
Simple scanning
Download the Nmap installation executable and run it. As part of the installation process, the open-source packet-capture software Pcap will be installed. Nmap needs this software to run properly under Windows, so don't be alarmed when you're asked to confirm this.
If you have a previous version installed on your machine, the installation process will uninstall the old one first. Other than this, the whole installation process is a question of simply accepting the licence agreement, then repeatedly hitting 'Next'.
After this is done, you can run Nmap by firing up the Zenmap user interface, which you'll find on the Start menu. Maximise the initial window when it appears.
Let's now perform a basic scan of a machine. If you've not set up your 'hosts' file to map names to IP addresses, enter the IP of a target, otherwise enter its name into the Target input box at the top left of the interface.
In the Profile dropdown menu to the right, select 'Regular Scan' and press the 'Scan' button next to it. The scan takes a few seconds to complete, during which time Nmap's output is piped to the main pane of the user interface.
Launching it on a Linux system with the Apache 2 web server and VNC (remote desktop software) installed reveals almost instantly that port 80 is open for HTTP connections, and that port 5900 is open for remote desktop connections.
If this machine were out unprotected in the wilds of the internet, you could expect to see it being probed at least every few minutes by software with Nmap-like facilities in preparation for an attack.
There are several tabs on the main pane of the Zenmap interface. The Ports/Hosts tab enables you to list and sort the open ports on your network, while the Topology tab gradually draws you a diagram of your network as you scan more hosts. Click on the 'Fisheye' and 'Controls' buttons to zoom in and get a better view of the network layout.
Comprehensive scans
We can use Nmap to discover even more information about the target machine by using some different scan types. Try the 'Intense scan, all TCP ports' scanning option. This takes a few moments to complete, but it scans the entire range of possible TCP port numbers (1 to 65,535), looking for open holes. It also performs operating system identification checks as well as trying to spot the software running behind each open port.
Going back to the Ports/Hosts tab, it now shows not only the two ports we saw a moment ago, but also the names of the applications running on them. In the case of Apache 2, it also displays the version of the software and even the underlying operating system name (Ubuntu, in our case).
Next, click on the Host Details tab. This is an option that often has the power to shock people into installing a proper firewall. Expand the sections to see more detail.
Nmap knows that our machine is running Linux (including the version of the running kernel). It also knows the network card's MAC address, which enables it to look up the manufacturer. Knowing this could give a skilled hacker a means to crash the card.
Interestingly, our copy of Zenmap also found a P2P file-sharing application that was running. It was technically connected to a port, but it was not connected to the Internet at the time of the scan.
The most comprehensive of the default scans that Zenmap has at its disposal is the 'Slow comprehensive scan'. This takes quite a while to complete, but it leaves no stone unturned while looking for even tiny details of the target host. As you scan more targets, these are added to the topology diagram in Zenmap, giving you a unique graphical view of your network.
If you have a network segmented into subnets using a router or switch, try scanning that too. Nmap – with or without the Zenmap front end – is a great tool for explaining to people why they need to ensure that only the ports they actually need should be open on the firewall, and that using old versions of networked software is very dangerous.
For example, older versions of Apache 2 have vulnerabilities that are exploitable directly using a buffer overflow attack. A hacker only needs to know which version of Apache 2 is being used to decide which attack to try, a piece of information that Nmap can work out in a few moments.
Network snooping
'Sniffing' network traffic as it goes by is another important technique used by hackers, and it can be even more revealing. One industry standard tool for network sniffing is Wireshark, which was previously known as Ethereal.
During my past life as a network security consultant, one of my jobs was to assess the internal security of networks for corporate clients. The first thing I'd do would always be to set Ethereal running. I remember one tough assignment where everything seemed very secure indeed. I had nothing much to tell the client in my subsequent presentation and report.
However, towards the end of my time on-site, I suddenly noticed some telnet traffic going by in Ethereal, including the username 'root' and a password. My heart leapt. Linux and Unix users will recognise 'root' as the system administration account – the so-called 'super user'.
Telnet sends usernames and passwords over the network as plain text. A system administrator was logging into a server using this when he should have been using a secure connection. I quickly logged into the server myself using the same account, downloaded the system's password file and began running it through a password cracker.
I soon realised that usernames and passwords were the same on other servers, giving me free range to log in wherever I pleased. At the final presentation, I passed an envelope to each of the rather bored-looking network administration team. It was rather satisfying to watch their faces become ashen as they read the messages inside, which told them their personal, supposedly secure account passwords.
But now, back to business. Download the executable for Wireshark and run it to begin installation. During this process, you'll again be asked if you'd like to install Pcap. This time decline, but also untick the Services box on the same screen that allows users without administrator access to capture traffic. This prevents normal users discovering that Wireshark is installed and using it to snoop on others.
Once installed, run Wireshark. The program uses Pcap to put the network card into 'promiscuous' mode, which means that it will accept packets that aren't meant for it. This is easy in Linux, but the writers of Windows never envisioned that such functionality would ever be needed – hence the need for Pcap.
Capturing traffic
Select 'Interfaces' from the Capture dropdown menu and a box will pop up listing all of the interfaces, including virtual ones. You can select any of these and capture traffic from them, but if you're connected directly to your broadband connection, let's try something that might just shock you.
Locate the WAN interface. It's the one with a public IP address, and its name will be something like 'WAN (PPP/SLIP) Interface'. Press the associated 'Start' button, and Wireshark will begin its capture.
Now, go to your mail client and set it to download new messages from your ISP's server. Back in Wireshark, you'll see that data will begin to accumulate. After a moment or so, the traffic will subside. Once this has happened, go to Wireshark's Capture menu and select 'Stop'.
Each captured packet has a time, a source and destination address, an associated protocol and a short description of its content or type. Scroll through the data and look for the entries with information columns starting with the words 'Request: USER' and 'Request: PASS'. You should recognise them as being the username and password you used to log into your ISP's mail server – being sent over the internet in clear text!
If your ISP's email server supports username and password encryption, use it to prevent this happening. If it doesn't, but the ISP's webmail interface uses SSL (the URL begins with 'HTTPS'), then use this instead. SSL is ideal if you're worried about your credentials being sent in plain text and intercepted en route, because the connection and information will be encrypted before it even leaves your web browser.
Source:- http://www.techradar.com/news/networking/network-scanning-secrets-revealed-607211?artc_pg=2
Monday, June 29, 2009
Network scanning secrets revealed
Posted by
John Pol
11:08 PM
Labels
- 2009 (1)
- Acer (1)
- administrator (1)
- AMD (1)
- antivirus software (1)
- Apple Mac OS (1)
- Apple Macintosh (1)
- AppLocker (1)
- ARM (1)
- Automatic PC cleanup (1)
- bebo (1)
- Bing (1)
- BitLocker (1)
- bottlenecks (1)
- Brandon LeBlanc (1)
- Cognos (1)
- companies (1)
- Comprehensive scans (1)
- computer security (1)
- Computex. (1)
- conficker (1)
- Conficker Cabal (1)
- Conficker explodes (1)
- Conficker infections (1)
- Conficker worm (2)
- Conficker.B (1)
- Conficker.B++ (1)
- Conficker.C (1)
- controlled (1)
- Custom power switch (1)
- database (1)
- DCS (1)
- DDR3 ECC DIMM (1)
- Dell (1)
- Dell Server (1)
- DeskScapes (1)
- Desktops (1)
- DLA (1)
- DreamScene (1)
- Et Velata (1)
- ETA (1)
- Events (1)
- facebook (3)
- facebook privacy policy (1)
- facebook under scrutiny (1)
- february 10 (1)
- Firefox (2)
- Firefox 3.5 (1)
- Fisheye Controls (1)
- fix (1)
- Fortuna (1)
- Free Utilities to Speed Up Your PC (2)
- Fujitsu (1)
- Fyodor (1)
- GA. (1)
- Gmail (1)
- google (2)
- google chrome (2)
- google web browser (1)
- green IT (1)
- hackers (2)
- Halo 3 (1)
- Hewlett-Packard (1)
- Hood (1)
- hospitals (1)
- Hyper-V (1)
- IBM (1)
- IE8 (1)
- Intel (2)
- Intel Microprocessor (1)
- Intel's Nehalem processor (1)
- Internet Explorer (1)
- IP Address (1)
- iPhone Application (1)
- iPhone. (1)
- IPMI (1)
- iSCSI (1)
- ISP. (1)
- javascript (1)
- junk email (1)
- junk emails (1)
- junk mail (1)
- knowledge (1)
- Linux (1)
- Linux machines (1)
- Mac (1)
- Mac Desktops (1)
- MAC OS X (1)
- malicious piece of software (2)
- malware (1)
- memory (1)
- Microcontroller (1)
- microsft windows 7 (5)
- Microsoft (1)
- microsoft window 7 (1)
- Microsoft Windows (1)
- Microsoft Windows 7 (1)
- microsoft windows 7 beta (2)
- microsoft windows 7 download (1)
- microsoft windows 7 pre (1)
- Microsoft Windows विस्टा (1)
- Microsoft Windows विस्टा support (1)
- Microsoft Windows विस्टा हेल्प (1)
- Microsoft Zune (1)
- MP3 player expert (1)
- MP3 players (1)
- MSDN (1)
- multi-core processing (1)
- Multi-threaded Robocopies (1)
- nanoWatt XLP (1)
- Nehalem-EX processor (1)
- netbooks (1)
- new microsoft windows 7 (1)
- News From ZDnet (1)
- NICs (1)
- Nmap (1)
- non-controlled (1)
- Notes. (1)
- Obama'. (1)
- Obumbrata (1)
- Online Shopping (1)
- Operating Systems... 20 TalkBacks (1)
- Personal blogs (1)
- Phishing Scams (1)
- Plagiarism. (1)
- rapidshare (1)
- Registry (1)
- remote desktop Software (1)
- Restore the Quick Launch Toolbar (1)
- Restricted Information. (1)
- rootkit (1)
- RSS-powered slideshows (1)
- RTM (1)
- security vulnerability (1)
- Skydrive (1)
- sleeping or watching TV. (1)
- Smartbooks (1)
- Snow Leopard (1)
- social networking news (2)
- Social Policy (1)
- spam email (1)
- spam mail (1)
- Spyware (1)
- statistics (1)
- Sticky Notes (1)
- subnets (1)
- Sun Microsystem (1)
- SysInternals (1)
- TCP (1)
- TechNet (1)
- technology (1)
- TechRadar (1)
- terabyte (1)
- Terabyte hard drive (1)
- Theora codecs. (1)
- Transcend (1)
- twitter (1)
- universities (1)
- Update (1)
- upgrades (1)
- Vista Ultimate. (1)
- Walkman MP3 players (1)
- web 2.0 (1)
- web page (1)
- whats new in windows 7 (1)
- window 7 (1)
- windows 7 (8)
- windows 7 details (1)
- Windows 7 Enterprise (1)
- windows 7 feature (1)
- windows 7 features (1)
- windows 7 new features (1)
- Windows 7 release candidate (1)
- windows 7 review (1)
- Windows 7RC1 (2)
- Windows Live Sync (1)
- Windows Live Writer (1)
- Windows Software (1)
- Windows XP (2)
- Wireshark (1)
- word data (1)
- worm (1)
- XPM (1)
- YouTube (1)
- Zenmap (1)
- गार्टनर (1)
- नेत्बूक. (1)
Blog Archive
-
▼
2009
(52)
-
►
July
(11)
- Sony Launches Walkman MP3 Players
- Microsoft Windows vista help
- Microchip launches new range of 8-bit PIC MCUs
- Transcend Unveils Thermal Sensor Equipped DDR3 Mem...
- Mac HFS+ read-write support for Windows
- Windows 7 gets virtual 'XP Mode'
- Internet Explorer has a few Disadvantages.
- Google has muscle for long-term battle with Micros...
- Facebook for iPhone 3.0 Coming Soon - Preview and ...
- 6 Microsoft freebies I actually love to use
- 10 top tips for Windows 7 power users
-
▼
June
(15)
- Mozilla looking beyond Firefox 3.5
- Network scanning secrets revealed
- Windows 7 is Coming
- What is a Terabyte?
- Fujitsu to offer Windows 7 upgrades but not for fr...
- Tips for Healthy Computing
- Little and Large
- Windows 7 RTM/GA Final Stage
- Microsoft Windows 7 online shopping
- Computer virus attacks 'to peak next Monday'
- DATA CLASSIFICATION POLICY
- Social Networking Policy
- Activate DreamScene or DeskScapes in MS Windows 7 ...
- Windows Users are being forced to use bing
- Microsoft Windows Rejected smartbooks
-
►
May
(10)
- Free Utilities to Speed Up and Tweak Your PC
- Eight Reasons Your Next Computer Should Be A Mac
- 10 Things to Hate About Tech
- How to Avoid Phishing Scams
- Parallels to offer XP compatibility for Win 7
- Windows 7 adds remote streaming tool
- XP Mode in Windows 7 could cause support problems
- Windows 7 RC is out for free to public download ti...
- Windows 7 sites crashes with heavy demand
- Acer to Ship Windows 7 PCs by October 23
-
►
July
(11)







