viagra canada apcalis levitra viagra delivery best viagra best viagra alternative bio viagra herbal brand viagra brand viagra over the net brand viagra professional sales brand viagra without prescription buy buy cheap viagra buy discount viagra buy generic viagra india rx buy pfizer viagra buy pfizer viagra in canada sales buy pfizer viagra online now buy real viagra canada buy real viagra online without prescription now buy real viagra without prescription buy viagra buy viagra china now buy viagra germany canadian meds buy viagra in canada discounts buy viagra in canada no prescription buy viagra mexico now buy viagra no prescription buy viagra online pills buy viagra pills delivery buy viagra safely buy viagra without a prescription pharmacy buying generic viagra mexico rx fast buying real viagra without prescription discounts buying viagra canada buying viagra in canada buying viagra in the us now buying viagra online cheap us buying viagra with no prescription sales buying viagra without perscription usa can i get viagra in mexico cheap can you buy viagra without a prescription canada meds viagra canada pharmacy viagra pfizer usa canada viagra discounts canada viagra generic buy canada viagra pharmacies scam canadain viagra india canadian generic viagra online canadian healthcare viagra sales canadian pharmacy discount code viagra canadian pharmacy viagra buy canadian pharmacy viagra legal canadian viagra pills canadian viagra 50mg now canadian viagra best deals pharmacy cheap canadian viagra pharmacy cheap viagra delivery cheap viagra from uk cheap viagra online usa cheapest prices for viagra cheapest prices on viagra online cheapest viagra usa cheapest viagra online germany cheep viagra china viagra buy cost of viagra express viagra delivery female viagra female viagra pills germany generic viagra generic viagra canada canada generic viagra canadian generic viagra in canada generic viagra in mexico online generic viagra india usa generic viagra made in india generic viagra mexico generic viagra online get viagra germany get viagra fast herbal alternative to viagra herbal viagra delivery how does viagra work pills how much is viagra how much is viagra from canada how much to buy viagra in pounds usa how to buy viagra how to get viagra how to get viagra no prescription how you get pfizer viagra indian viagra inexpensive viagra without prescription is pfizer viagra available in india levitra viagra levitra vs viagra low cost canadian viagra now low cost viagra mexico viagra buy natural viagra pharmacy next day viagra no prescription viagra now non prescription viagra canada non prescription viagra canada obtain viagra without prescription online cheap viagra delivery online order viagra overnight delivery online viagra sales online viagra gel to buy canada online viagra next day delivery discounts order usa viagra online discounts ordering viagra ordering viagra overnight delivery usa overnight canadian viagra overnight viagra pfizer female viagra pfizer mexico viagra delivery pfizer soft viagra pfizer viagra pfizer viagra 50 mg cheap pfizer viagra 50 mg online fast pfizer viagra 50mg discounts pfizer viagra canada pills pfizer viagra cheap canada pharmacie canadian viagra delivery pizer india viagra side effects prescription viagra price check 50mg viagra real viagra real viagra online real viagra pharmacy prescription real viagra without prescription rx generic viagra pills soft gel viagra soft gel viagra tablets pharmacy soft viagra spain female viagra germany uk deals cheap viagra united healthcare viagra us discount viagra overnight delivery sales usa generic viagra pharmacy viagra delivery viagra 100 mg viagra 50 mg germany viagra alternative now viagra aus usa viagra available in india viagra blister 4 viagra brand fast viagra buy viagra buy now viagra canada viagra canada generic viagra canadian viagra canadian pharmacy dosage viagra canadian scam cheap viagra canda viagra cheap canada viagra china viagra cookies viagra cost cheap viagra discount viagra discount codes viagra dosage delivery viagra dose now viagra doses viagra effects on the penis pharmacy viagra en gel sales viagra fast delivery viagra femele viagra for cheap viagra for sale viagra for women fast viagra for women in india viagra from india viagra from mexico viagra gel pills viagra generic viagra generic availability india usa viagra generic canada discounts viagra how much now viagra in canada viagra in canada pfizer germany viagra in india germany viagra in spain viagra india viagra indigestion as a side effect viagra injectable viagra label viagra levitra cheap viagra mexico buy viagra next day delivery viagra no prescription viagra non prescription buy viagra non prescription drug canada viagra on line viagra on-line canadian pharmacy buy viagra online 50mgs now viagra online deals buy viagra online pharmacy usa viagra online sales now viagra online without a prescription viagra oral gel viagra order viagra original pfizer order sales viagra overnight now viagra overnight delivery usa viagra overnite fast viagra pfizer viagra pfizer 50 mg canada viagra pfizer canada viagra pfizer online pharmacy viagra pills germany viagra porn viagra prescription label germany viagra prescriptions viagra price germany viagra prices viagra produced in mexico viagra professional sales viagra professionsl viagra propranolol viagra purchase pills viagra rx in canada viagra sale online viagra sales now viagra sales canada viagra sales in canada viagra samples delivery viagra seizures viagra selling points in pakistan sales viagra side effects viagra soft viagra soft tablets viagra soft tabs usa viagra soft tabs 100 mg viagra tablet viagra tablet weight canada viagra tablets fast viagra tablets no prescription viagra tablets sale sales viagra through canada usa viagra uit india viagra usa discounts viagra viagra nude viagra without prescription what better viagra or cialis delivery what is better viagra or levitra when will viagra be available as a generic when will viagra be generic germany where can i buy real viagra usa where can i buy viagra fast where to get viagra usa where to get viagra cheap germany where to purchase viagra pills which is better viagra cialis sales which is better viagra or cialis cheap wholesale generic viagra in canada women viagra cialis 5 mg cialis 5 mg original brand cialis pharmacy 50 mg cialis online 50 mg cialis dose buy best cialis price best price for generic cialis sales best price on brand name prescription cialis buy best way to take cialis best way to use cialis brand cialis for sale brand name cialis discounts brand name cialis overnight bruising on cialis buy brand name cialis without prescription canada buy cheapest cialis canada buy cialis buy cialis canada pharmacy buy cialis doctor online buy cialis fedex shipping buy cialis next day delivery buy cialis on line buy cialis once daily buy cialis online canada buy cialis online uk buy cialis online without a prescription buy cialis online without prescription buy cialis professional buy cialis without a prescription buy cialis without doctor prescription buy cialis without prescription buy generic cialis buy generic cialis expressdelivery usa buy real cialis buy real cialis online without prescription buying cialis fast buying cialis next day delivery buying cialis on line canada buying cialis online buying cialis soft tabs 100 mg germany buying generic cialis mexico rx canadian generic cialis now canadian healthcare cialis canadian pharmacy cialis fast canadian pharmacy cialis pfizer cheapest cialis cheapest cialis overnight delivery cheepest cialis chip cialis cialis 100 mg cialis 20 mg cialis 30 mg now cialis 50 mg cialis alternative cialis alternatives pharmacy cialis alternatives no prescription cheap cialis and canada custom canada cialis and diarrhea cialis and ketoconazole cheap cialis and levitra usa cialis angioplasty cialis arterial fibrillation pharmacy cialis at real low prices cialis blood thinner cialis brand cialis brand name cialis buy cialis buy overnight now cialis by mail cialis canada cialis canada illegal buy sales cialis canadian delivery cialis canadian cost cialis canadian pharmacy cialis cheap cialis cost cialis daily cialis daily canada now cialis delivered overnight pills cialis diarrhea online cialis discount now cialis dosage pharmacy cialis dosagem delivery cialis dose cialis en mexico cialis endurance discounts cialis express delivery germany cialis fast delivery cialis fast delivery usa cheap cialis for less 20 mg cialis for sale cialis for woman cialis for women cialis from mexico cialis generic sales cialis headaches now cialis india usa cialis india pharmacy now cialis iop delivery cialis kanada cialis low price cialis medication cialis neutropenia leukopenia buy cialis next day delivery cialis next day delivery cialis no prescription cialis no rx cialis okay for women cialis on line pricing in canada germany cialis on sale cialis once daily now cialis online canada sales cialis online sales pharmacy cialis online without prescription cialis order usa cialis overnight cialis overnight delivery cialis pharmacy generic online cialis philippines canada cialis prescription cheap cialis price cialis price 100 mg cialis price in canada pills cialis prices canada cialis profesional delivery cialis professional fast cialis professional 100 mg cheap cialis professional 20 mg cialis professional next day delivery cialis professional no prescription cialis quick shipment fast cialis refractory buy cialis sales delivery cialis samples cialis samples in canada cialis soft cialis soft canada cialis soft pills cialis soft tablets cialis soft tabs 100 mg cialis soft tabs discount sale cialis strenght mg pharmacy cialis tablets cialis tablets foreign cialis testimonial cialis transdermal pharmacy cialis trazodone pills cialis usa cialis vs levitra online cialis without prescription online cialis woman cialis women cialisis in canada usa combine cialis and levitra cost of cialis pharmacy discount brand name cialis discount canadian cialis sales discount cialis fast does generic cialis work double dose of cialis effect of cialis on women pills generic cialis cheap generic cialis canadian usa generic cialis in india generic cialis next day delivery generic cialis next day shipping generic cialis sale cheap generic cialis soft tabs discounts get cialis buy get cialis online canada getting cialis from canada pills herbal alternative to cialis how can i get some cialis canada how much cialis how much does cialis cost sales how much does cialis cost at the pharmacy how much is cialis in canada how quick does a cialis work fast how strong is 5 mg of cialis sales how to buy cialis in canada online how to get cialis how to get cialis in canada canada how to get cialis no prescription usa hydrochlorothiazide cialis indian cialis usa indian cialis canada germany indian cialis generic germany is a prescription required for cialis in philippines delivery levitra versus cialis levitra vs cialis usa levitra vs. cialis online long after purchase should cialis pills be discarded low cost cialis delivery low price cialis sales map of france with cialis mexico pharmacy cialis sales name brand cialis next day delivery cialis sales next day delivery of cialis non-pescription cialis online one day delivery cialis discounts online cialis online generic cialis 100 mg online pharmacy cialis ordering cialis gel original brand cialis sales over night delivery of cialis online cheap overnight delivery cialis prescription cialis price cialis price of cialis in canada professional cialis now professional cialis online purchase cialis purchase cialis cheap purchase cialis next day delivery purchase cialis overnight delivery germany purchasing cialis purchasing cialis with next day delivery online real cialis real cialis online pharmacy should i chew cialis discounts similar cialis germany soft cialis discounts tadalafil cialis no prescription the truth about cialis usa truth about cialis us cialis usa cialis delivery what is cialis delivery what is cialis professional when do i use cialis where can i purchase cialis canada where to buy cialis woman and cialis delivery woman testimonial of cialis

Analyzing a Hack from A to Z (Part 1)

By Don Parker

Within this article series we will both pull off a hack, and analyze its methodology. By understanding a hacker’s methodology one can better defend one’s networks.

If you would like to be notified when Don Parker releases the next part of this article series please sign up to the WindowSecurity.com Real time article update newsletter.

This article series will be based upon a network system breach. What we shall cover is the actual hack itself, from the reconnaissance stage, through to enumeration, network service exploitation, and ending with post-exploitation strategies. All of these steps will then be viewed at the packet level, and then explained. Being able to view, and understand an attack at the packet level is critically important for both system administrators (sys admin) and network security personnel. The output of firewalls, Intrusion Detection Systems (IDS) and other security devices will always in turn lead you to look at the actual network traffic. If you don’t understand what you are looking at, at the packet level, then all of the network security technology you have is utterly useless. This will then be followed by how to write a Snort signature based off of the attack traffic.

Tools used for this simulated network attack:

* Nmap
* IPEye
* Tcpdump
* Metasploit Framework
* Netcat
* SolarWinds TFTP Server
* Tftp client
* FU Rootkit

Setting the stage

There is no shortage of hostile scanning on the Internet today, not to mention worm activity, and other forms of malware, such as viruses. All of this amounts to a lot of white noise for the well protected computer network. What we shall look at is a person deliberately targeting a computer network. For the purposes of this article we shall assume that the hacker has already decided upon his victim and done earlier research such as finding out the IP address or addresses of the victim network. He may have also tried to find out other such nuggets of information, such as email addresses associated with that network. This type of information is critical in case the hacker were to find there was no way into the network after having scanned, profiled, and enumerated it. The email addresses that he may have harvested would be useful in setting up a client side attack by which he would try and lure a user to a malicious website via a link in an email. More on that type of attack in a later article series.

On with the show

We shall now view the actions of the potential hacker as he goes about the business of scanning, profiling, and enumerating the victim network. The first tool that the hacker uses is Nmap. Though Nmap has quite a few IDS signatures for it, it is still quite a useful tool, and is heavily used.

We can see via the syntax used by the hacker in the screenshot that he deliberately picks port 21 and 80, as he has several exploits he can use via the the Metasploit Framework. Not only that but those are two system services and protocols that he understands fairly well. Shown as well is that he is using a SYN scan which is also the most common port scan type. This is due to the fact if a service which uses TCP is listening on a port which is scanned with a SYN packet, then it will send back a SYN/ACK packet. That SYN/ACK packet indicates that a service is indeed listening there, and awaiting connections. The same cannot be said for UDP based services such as DNS (DNS also uses TCP though it mostly uses UDP for the bulk of its transactions).

Listed below the syntax is the output that Nmap gleans from the packets it sent, but to be more accurate, from the packets it receives as a result of the SYN scan it just did. We can see that there are seemingly both FTP and HTTP services offered. We are not really interested in the MAC address so we will ignore that. Though tools such as Nmap are not often wrong it is always good to verify your information at the packet level to ensure its accuracy. Not only that, but it is also in looking at the return packets, from the victim network, that we shall gather the host, service, and architectural information from.

Let us consult the packets

There are several programs out there today which will take packets off the wire and pull out information such as the operating system type, architectural info ie: x86 or SPARC and so on, for you. That really isn’t all that much fun, nor more importantly are we learning anything by letting a program do the work for us. On that note let’s take a look at the Nmap packet trace, and pull out some information about the victim network.
10:52:59.062500 IP (tos 0×0, ttl 43, id 8853, offset 0, flags [none], proto: ICMP (1), length: 28) 192.168.111.17 > 192.168.111.23: ICMP echo request seq 38214, length 8
0×0000: 4500 001c 2295 0000 2b01 0dd3 c0a8 6f11 E…”…+…..o.
0×0010: c0a8 6f17 0800 315a 315f 9546 ..o…1Z1_.F
10:52:59.078125 IP (tos 0×0, ttl 128, id 396, offset 0, flags [none], proto: ICMP (1), length: 28) 192.168.111.23 > 192.168.111.17: ICMP echo reply seq 38214, length 8
0×0000: 4500 001c 018c 0000 8001 d9db c0a8 6f17 E………….o.
0×0010: c0a8 6f11 0000 395a 315f 9546 0000 0000 ..o…9Z1_.F….
0×0020: 0000 0000 0000 0000 0000 0000 0000 …………..

Shown in the two packets above is the opening salvo from Nmap. What it does is send an ICMP echo request to the victim network. You will note that it is not aimed at a specific port, seeing as ICMP does not use ports, but rather is handled by the ICMP error message handler which is built into the TCP/IP protocol stack. This ICMP packet is also stamped with a unique number, 38214 in this case, in order to help the TCP/IP stack keep track of the returning traffic, and associate it with an earlier ICMP packet it sent. The packet directly above us is the response from the victim network, in the form of an ICMP echo reply. Also note it bears the sequence number of 38214. So the hacker knows that there is indeed a computer, or computer network behind that IP address.

This opening ICMP packet sequence is why Nmap has an IDS signature for it. This ICMP host discovery option can be disabled in Nmap if so desired. What kind of information can be gleaned via the resulting ICMP echo reply packet from the victim network? In reality not a ton of information is there to help us profile the network. Though we can take a preliminary stab at what the operating system family is. The time to live field and value next to it is highlighted in the packet above. A value of 128 points to the likelihood that this computer is probably a Microsoft Windows one. While this ttl value is not a definitive answer as to what the operating system is, it will hopefully be corroborated by the ensuing packets that we will look at.

Wrap up

So far in this part we have seen a malicious hacker scan a network for two specific ports using Nmap. He so far has ascertained that a computer or computer network resides at that IP address. In part two we shall go on to finish the study of our packet trace, and pull out the remaining pieces of profiling information. See you then.

About Don Parker
Don Parker specializes in matters of intrusion detection, and incident handling. He has also enjoyed a role as guest speaker at various network security conferences, and writing for various online and print media on matters of computer security. You can contact Don Parker at dparker@bridonsecurity.com

Related articles

Comments disabled

Comments on this article have been disabled.