Skip to Content
Hacking: The Next Generation
book

Hacking: The Next Generation

by Nitesh Dhanjani, Billy Rios, Brett Hardin
August 2009
Beginner
298 pages
9h 5m
English
O'Reilly Media, Inc.
Content preview from Hacking: The Next Generation

Abusing ARP

Address Resolution Protocol (ARP) is a way for machines to translate IP addresses into Media Access Control (MAC) addresses. MAC addresses are link layer addresses assigned by the network device manufacturer. These addresses are static, meaning they never change. Due to the dynamic nature of IP addresses, ARP allows a way to correlate these static addresses to their more dynamic counterparts.

Think of ARP as a phone operator. If a person knows an individual’s name but not her phone number, he can contact the phone operator who aids him by giving him the individual’s phone number. This is similar to the way that ARP works.

When a computer, router, or switch receives a packet that has an IP address associated with it, the device will do an ARP lookup in its ARP tables to see what MAC address is bound to that IP address.

Back to the operator analogy: before people call an operator for assistance, they check their personal address book to see whether they already have the individual’s phone number. Similarly, if the packet’s IP address does not correspond to an IP address that is in the ARP table, the machine will send out an ARP broadcast request that essentially asks all the computers on the local network, “Who is bound to this IP address?”

In this situation, the machine that owns the IP address will respond to the broadcast request. This response is called an ARP reply. Once the machine that sent the ARP request receives the response, the ARP-to-IP address translation is ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Network Security Hacks

Network Security Hacks

Andrew Lockhart
Metasploit

Metasploit

David Kennedy, Jim O'Gorman, Devon Kearns, Mati Aharoni

Publisher Resources

ISBN: 9780596806309Errata Page