Share E-Book
Scan to open this page

Scan with your phone to open this page

AuthorJon Erickson

Hacking is the art of creative problem solving, whether that means finding an unconventional solution to a difficult problem or exploiting holes in sloppy programming. Many people call themselves hackers, but few have the strong technical foundation needed to really push the envelope. Rather than merely showing how to run existing exploits, author Jon Erickson explains how arcane hacking techniques actually work. To share the art and science of hacking in a way that is accessible to everyone, Hacking: The Art of Exploitation, 2nd Edition introduces the fundamentals of C programming from a hacker's perspective. The included LiveCD provides a complete Linux programming and debugging environment—all without modifying your current operating system. Use it to follow along with the book's examples as you fill gaps in your knowledge and explore hacking techniques on your own. Get your hands dirty debugging code, overflowing buffers, hijacking network communications, bypassing protections, exploiting cryptographic weaknesses, and perhaps even inventing new exploits. This book will teach you how to: – Program computers using C, assembly language, and shell scripts – Corrupt system memory to run arbitrary code using buffer overflows and format strings – Inspect processor registers and system memory with a debugger to gain a real understanding of what is happening – Outsmart common security measures like nonexecutable stacks and intrusion detection systems – Gain access to a remote server using port-binding or connect-back shellcode, and alter a server's logging behavior to hide your presence – Redirect network traffic, conceal open ports, and hijack TCP connections – Crack encrypted wireless traffic using the FMS attack, and speed up brute-force attacks using a password probability matrix Hackers are always pushing the boundaries, investigating the unknown, and evolving their art. Even if you don't already know how to program, Hacking: The Art of Exploitation, 2nd Edition will give you a complete picture of programming, machine architecture, network communications, and existing hacking techniques. Combine this knowledge with the included Linux environment, and all you need is your own creativity.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on, from-the-ground-up guide to serious hacking that teaches you C, assembly, and debugging from a hacker's perspective, then shows you how to exploit memory, networks, and cryptography—ideal for curious beginners and self-taught programmers who want to truly understand how attacks work, not just run existing tools. 【Book Arc】 - **Opening (~0%–10%)**: Sets the philosophical tone—hacking as creative problem-solving—and frames the book's promise: not just running exploits, but understanding the underlying programming and machine architecture. It introduces the included LiveCD Linux environment as your sandbox for following along. - **Early (~10%–30%)**: Lays the technical foundation, covering C programming fundamentals from a hacker's viewpoint, along with assembly language and shell scripting. This stage solves the problem of "I don't know how programs work" by giving you the building blocks to read and write exploit code. - **Middle (~30%–60%)**: Dives into the core exploitation techniques: corrupting system memory via buffer overflows and format strings, and using a debugger to inspect processor registers and memory. This is where you learn to run arbitrary code and understand exactly what happens at the machine level. - **Late (~60%–85%)**: Moves to advanced offensive tactics—bypassing common protections like nonexecutable stacks and intrusion detection systems, crafting port-binding or connect-back shellcode, and hiding your presence by altering server logging behavior. - **Ending (~85%–100%)**: Covers network-level attacks and cryptography: redirecting traffic, concealing open ports, hijacking TCP connections, cracking encrypted wireless traffic with the FMS attack, and using a password probability matrix to speed up brute-force attempts. The book closes by emphasizing that creativity is the final ingredient. 【Key Takeaways】 - **Hacking is a mindset, not a toolset** (Opening): The book reframes hacking as creative problem-solving, arguing that a strong technical foundation—not memorized exploits—is what separates real hackers from script kiddies. This sets the expectation that you'll learn *why* attacks work. - **C programming is the hacker's native language** (Early): You'll learn C from scratch, but with a twist—every concept is taught with an eye toward how it can be misused. This is essential because most classic vulnerabilities live in C's manual memory management. - **Assembly and debugging reveal the machine's true behavior** (Early): By inspecting processor registers and system memory with a debugger, you gain a concrete mental model of what your code actually does. This is the bridge between high-level code and low-level exploitation. - **Buffer overflows and format strings are the gateway to arbitrary code execution** (Middle): The book walks you through corrupting system memory step-by-step, showing how to overwrite return addresses and control program flow. This is the core skill that makes everything else possible. - **Protections are obstacles, not walls** (Late): Nonexecutable stacks and intrusion detection systems are presented as challenges to outsmart, not absolute barriers. You'll learn the logic behind bypassing them, which deepens your understanding of both attack and defense. - **Shellcode is about access and stealth** (Late): Port-binding and connect-back shellcode give you remote access to a server, while altering logging behavior lets you cover your tracks. This is where theory turns into practical remote exploitation. - **Network attacks are about manipulation, not brute force** (Ending): Redirecting traffic, concealing ports, and hijacking TCP connections show that networking protocols are full of assumptions you can exploit. Understanding these attacks is key to securing modern systems. - **Cryptography can be broken with clever math and statistics** (Ending): The FMS attack on wireless encryption and the password probability matrix demonstrate that cryptographic weaknesses are often about patterns and probabilities, not raw computing power. 【Reading Tips】 - **Skim the philosophy, deep-read the code**: The opening chapters on "hacking as art" are inspiring but brief. Spend your real effort on the C, assembly, and debugging sections—they're the foundation for everything else. - **Use the LiveCD as your lab**: Don't just read—boot the included Linux environment and type out every example. Exploitation is a hands-on skill; you'll only internalize it by breaking and fixing code yourself. - **Expect a steep learning curve in the middle**: Buffer overflows and format strings are conceptually dense. If you get lost, go back to the debugger sections and trace the memory changes visually—it's the fastest way to make the abstract concrete. - **Treat the later chapters as a survey, not a manual**: Network and crypto attacks are complex and often require specific environments. It's fine to read these for understanding rather than trying to reproduce every attack on your first pass. - **Take away the mindset, not just the tricks**: The book's real value is teaching you to think like an attacker—questioning assumptions, tracing data flow, and seeing systems as malleable. That mindset transfers to any security or programming work. 【Coverage Limits】 This guide synthesizes the book's stated scope and structure from the provided excerpts, which focus on the introduction, table of contents, and promotional material. Detailed chapter-by-chapter content, specific code listings, and step-by-step attack walkthroughs are not covered here—they require reading the full text.
Excerpt 1
书名: Hacking The Art of Exploitation, 2nd Edition (Jon Erickson) (Z Library) 作者: Jon Erickson Hacking is the art of creative problem solving, whether that m...
View in text
Excerpt 2
undaries, investigating the unknown, and evolving their art. Even if you don't already know how to program, Hacking: The Art of Exploitation, 2nd Edition wil...
View in text
Page 1
graphic weaknesses, and perhaps even inventing new exploits. This book will teach you how to: j Program computers using C, assembly language, and shell scrip...
View in text
Page 3
t just show how to use the exploits but how to develop them.” —PHRACK “From all the books I’ve read so far, I would consider this the seminal hackers handboo...
View in text
Page 6
p. cm. ISBN-13: 978-1-59327-144-2 ISBN-10: 1-59327-144-1 1. Computer security. 2. Computer hackers. 3. Computer networks--Security measures. I. Title. QA76.9...
View in text
Tags
AI categories
CybersecurityProgramming LanguageOS
ISBN: 1593271441
Publish Year: 2008
Language: English
Pages: 492
File Format: PDF
File Size: 4.4 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…