Hacking Exposed Wireless, Second Edition [2 ed.] 9780071666619, 0071666613

I reviewed the first edition of Hacking Exposed: Wireless (HEW) in May 2007, and offered four stars. Three years later I

286 65 31MB

English Pages 514 Year 2010

Report DMCA / Copyright

DOWNLOAD PDF FILE

Table of contents :
Contents......Page 14
Foreword......Page 20
Acknowledgments......Page 22
Introduction......Page 24
Part I: Hacking 802.11 Wireless Technology......Page 30
A Parking Lot Approach......Page 31
The Robot Invasion......Page 32
Final Wrap-Up......Page 33
1 Introduction to 802.11 Hacking......Page 36
802.11 in a Nutshell......Page 37
Discovery Basics......Page 42
Hardware and Drivers......Page 50
Summary......Page 69
2 Scanning and Enumerating 802.11 Networks......Page 70
Choosing an Operating System......Page 71
Windows Discovery Tools......Page 72
Windows Sniffing/Injection Tools......Page 79
OS X Discovery Tools......Page 90
Linux Discovery Tools......Page 96
Mobile Discovery Tools......Page 102
Online Mapping Services (WIGLE and Skyhook)......Page 104
Summary......Page 106
3 Attacking 802.11 Wireless Networks......Page 108
Security Through Obscurity......Page 109
Defeating WEP......Page 117
Bringing It All Together: Cracking a Hidden Mac-Filtering, WEP-Encrypted Network......Page 133
Keystream Recovery Attacks Against WEP......Page 136
Attacking the Availability of Wireless Networks......Page 140
Summary......Page 142
4 Attacking WPA-Protected 802.11 Networks......Page 144
Breaking Authentication: WPA-PSK......Page 145
Breaking Authentication: WPA Enterprise......Page 158
Breaking Encryption: TKIP......Page 170
Attacking Components......Page 175
Summary......Page 180
Part II: Hacking 802.11 Clients......Page 182
Case Study: Riding the Insecure Airwaves......Page 183
5 Attack 802.11 Wireless Clients......Page 184
Attacking the Application Layer......Page 186
Attacking Clients Using an Evil DNS Server......Page 190
Ettercap Support for Content Modification......Page 194
Dynamically Generating Rogue APs and Evil Servers with Karmetasploit......Page 196
Direct Client Injection Techniques......Page 201
Device Driver Vulnerabilities......Page 211
Web Hacking and Wi-Fi......Page 216
Summary......Page 230
6 Taking It All The Way: Bridging the Airgap from OS X......Page 232
The Game Plan......Page 233
Making the Most of User-level Code Execution......Page 246
Summary......Page 267
7 Taking It All the Way: Bridging the Airgap from Windows......Page 268
The Attack Scenario......Page 269
Preparing for the Attack......Page 270
Local Wireless Reconnaissance......Page 277
Remote Wireless Reconnaissance......Page 284
Target Wireless Network Attack......Page 292
Summary......Page 296
Part III: Hacking Additional Wireless Technologies......Page 298
Case Study: Snow Day......Page 299
8 Bluetooth Scanning and Reconnaissance......Page 302
Bluetooth Technical Overview......Page 303
Preparing for an Attack......Page 308
Reconnaissance......Page 311
Service Enumeration......Page 338
Summary......Page 342
9 Bluetooth Eavesdropping......Page 344
Commercial Bluetooth Sniffing......Page 345
Open-Source Bluetooth Sniffing......Page 355
Summary......Page 372
10 Attacking and Exploiting Bluetooth......Page 374
PIN Attacks......Page 375
Identity Manipulation......Page 389
Abusing Bluetooth Profiles......Page 403
Future Outlook......Page 425
Summary......Page 427
11 Hack ZigBee......Page 428
ZigBee Introduction......Page 429
ZigBee Security......Page 436
ZigBee Attacks......Page 439
Attack Walkthrough......Page 459
Summary......Page 467
12 Hack DECT......Page 468
DECT Introduction......Page 469
DECT Security......Page 473
DECT Attacks......Page 476
Summary......Page 487
A: Scoping and Information Gathering......Page 488
Scoping......Page 489
Things to Bring to a Wireless Assessment......Page 491
Conducting Scoping Interviews......Page 493
Gathering Information via Satellite Imagery......Page 494
Putting It All Together......Page 498
A......Page 500
B......Page 501
C......Page 503
D......Page 504
G......Page 505
I......Page 506
L......Page 507
N......Page 508
P......Page 509
S......Page 510
V......Page 511
W......Page 512
Z......Page 513
Recommend Papers

Hacking Exposed Wireless, Second Edition [2 ed.]
 9780071666619, 0071666613

  • 0 0 0
  • Like this paper and download? You can publish your own PDF file online for free in a few minutes! Sign Up
File loading please wait...
Citation preview

“Finally, a comprehensive look at wireless security, from Wi-Fi to emerging wireless protocols not covered elsewhere, addressing the spectrum of wireless threats facing organizations today.” —Mike Kershaw, author of Kismet “A practical guide to evaluating today’s wireless networks. The authors’ clear instruction and lessons learned are useful for all levels of security professionals.” —Brian Soby, Product Security Director salesforce.com “The introduction of wireless networks in many enterprises dramatically reduces the effectiveness of perimeter defenses because most enterprises depend heavily on firewall technologies for risk mitigation. These mitigation strategies may be ineffective against wireless attacks. With outsiders now gaining insider access, an enterprise’s overall risk profile may change dramatically. This book addresses those risks and walks the readers through wireless security fundamentals, attack methods, and remediation tactics in an easy-to-read format with real-world case studies. Never has it been so important for the industry to get their arms around wireless security, and this book is a great way to do that.” —Jason R. Lish, Director, IT Security Honeywell International “The authors have distilled a wealth of complex technical information into comprehensive and applicable wireless security testing and action plans. This is a vital reference for anyone involved or interested in securing wireless networking technologies.” —David Doyle, CISM, CISSP, Sr. Manager, IT Security & Compliance Hawaiian Airlines, Inc. “Hacking Exposed Wireless is simply absorbing. Start reading this book and the only reason you will stop reading is because you finished it or because you want to try out the tips and techniques for yourself to start protecting your wireless systems.” —Thomas d’Otreppe de Bouvette, author of Aircrack-ng

This page intentionally left blank

HACKING EXPOSED WIRELESS: WIRELESS SECURITY SECRETS & SOLUTIONS ™

SECOND EDITION JOHNNY CACHE JOSHUA WRIG HT VINCENT LIU

New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San Juan Seoul Singapore Sydney Toronto

Copyright © 2010 by The McGraw-Hill Companies. All rights reserved. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of the publisher. ISBN: 978-0-07-166662-6 MHID: 0-07-166662-1 The material in this eBook also appears in the print version of this title: ISBN: 978-0-07-166661-9, MHID: 0-07-166661-3. All trademarks are trademarks of their respective owners. Rather than put a trademark symbol after every occurrence of a trademarked name, we use names in an editorial fashion only, and to the beneÞt of the trademark owner, with no intention of infringement of the trademark. Where such designations appear in this book, they have been printed with initial caps. McGraw-Hill eBooks are available at special quantity discounts to use as premiums and sales promotions, or for use in corporate training programs. To contact a representative please e-mail us at [email protected]. Trademarks: McGraw-Hill, the McGraw-Hill Publishing logo, Hacking Exposed™ and related trade dress are trademarks or registered trademarks of The McGraw-Hill Companies and/or its afÞliates in the United States and other countries and may not be used without written permission. All other trademarks are the property of their respective owners. The McGraw-Hill Companies is not associated with any product or vendor mentioned in this book. Information has been obtained by McGraw-Hill from sources believed to be reliable. However, because of the possibility of human or mechanical error by our sources, McGraw-Hill, or others, McGraw-Hill does not guarantee the accuracy, adequacy, or completeness of any information and is not responsible for any errors or omissions or the results obtained from the use of such information. TERMS OF USE This is a copyrighted work and The McGraw-Hill Companies, Inc. (“McGrawHill”) and its licensors reserve all rights in and to the work. Use of this work is subject to these terms. Except as permitted under the Copyright Act of 1976 and the right to store and retrieve one copy of the work, you may not decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based upon, transmit, distribute, disseminate, sell, publish or sublicense the work or any part of it without McGraw-Hill’s prior consent. You may use the work for your own noncommercial and personal use; any other use of the work is strictly prohibited. Your right to use the work may be terminated if you fail to comply with these terms. THE WORK IS PROVIDED “AS IS.” McGRAW-HILL AND ITS LICENSORS MAKE NO GUARANTEES OR WARRANTIES AS TO THE ACCURACY, ADEQUACY OR COMPLETENESS OF OR RESULTS TO BE OBTAINED FROM USING THE WORK, INCLUDING ANY INFORMATION THAT CAN BE ACCESSED THROUGH THE WORK VIA HYPERLINK OR OTHERWISE, AND EXPRESSLY DISCLAIM ANY WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. McGraw-Hill and its licensors do not warrant or guarantee that the functions contained in the work will meet your requirements or that its operation will be uninterrupted or error free. Neither McGraw-Hill nor its licensors shall be liable to you or anyone else for any inaccuracy, error or omission, regardless of cause, in the work or for any damages resulting therefrom. McGraw-Hill has no responsibility for the content of any information accessed through the work. Under no circumstances shall McGraw-Hill and/ or its licensors be liable for any indirect, incidental, special, punitive, consequential or similar damages that result from the use of or inability to use the work, even if any of them has been advised of the possibility of such damages. This limitation of liability shall apply to any claim or cause whatsoever whether such claim or cause arises in contract, tort or otherwise.

@cdll]Viidadd`[dg#  JcYZghiVcYl]VindjÒcY# Demj^WjoekÊl[Z_iYel[h[Z=VX`^c\:medhZY/L^gZaZhh"ÓdZekjm^oXki_d[ii[iZ[f[dZedIjWY^B_k\eh fhWYj_YWbWZl_Y[WdZ[\\[Yj_l["h[Wb#mehbZi[Ykh_joi[hl_Y[i$ >em_iIjWY^B_kZ_\\[h[dj5I_cfb[$M[kdZ[hijWdZ^emi[Ykh_jo_cfWYjiXki_d[ii$J^WjÊim^oYecfWd_[i j^hek]^ekjj^[