[ Team Lib ] Written for the Intermediate to Advanced Wireless
Total Page:16
File Type:pdf, Size:1020Kb
[ Team LiB ] • Table of Contents • Index • Reviews • Reader Reviews • Errata Wireless Hacks By Rob Flickenger Publisher: O'Reilly Pub Date: September 2003 ISBN: 0-596-00559-8 Pages: 304 Written for the intermediate to advanced wireless user, Wireless Hacks is full of direct, practical, ingenious solutions to real-world networking problems. Whether your wireless network needs to extend to the edge of your office or to the other end of town, this collection of non-obvious, "from the field" techniques will show you how to get the job done. [ Team LiB ] [ Team LiB ] • Table of Contents • Index • Reviews • Reader Reviews • Errata Wireless Hacks By Rob Flickenger Publisher: O'Reilly Pub Date: September 2003 ISBN: 0-596-00559-8 Pages: 304 Copyright Credits About the Author Contributors Acknowledgments Foreword Preface Why Wireless Hacks? How to Use This Book How This Book Is Organized Conventions Used in This Book How to Contact Us Chapter 1. The Standards Section 1.1. Hacks #1-12 Hack 1. 802.11: The Mother of All IEEE Wireless Ethernet Hack 2. 802.11a: The Betamax of the 802.11 Family Hack 3. 802.11b: The De Facto Standard Hack 4. 802.11g: Like 802.11b, only Faster Hack 5. 802.16: Long Distance Wireless Infrastructure Hack 6. Bluetooth: Cable Replacement for Devices Hack 7. 900 MHz: Low Speed, Better Coverage Hack 8. CDPD, 1xRTT, and GPRS: Cellular Data Networks Hack 9. FRS and GMRS: Super Walkie-Talkies Hack 10. 802.1x: Port Security for Network Communications Hack 11. HPNA and Powerline Ethernet Hack 12. BSS Versus IBSS Chapter 2. Bluetooth and Mobile Data Section 2.1. Hacks #13-19 Hack 13. Remote Control OS X with a Sony Ericsson Phone Hack 14. SMS with a Real Keyboard Hack 15. Photo Blog Automatically with the Nokia 3650 Hack 16. Using Bluetooth with Linux Hack 17. Bluetooth to GPRS in Linux Hack 18. Bluetooth File Transfers in Linux Hack 19. Controlling XMMS with Bluetooth Chapter 3. Network Monitoring Section 3.1. Hacks #20-42 Hack 20. Find All Available Wireless Networks Hack 21. Network Discovery Using NetStumbler Hack 22. Network Detection on Mac OS X Hack 23. Detecting Networks Using Handheld PCs Hack 24. Passive Scanning with KisMAC Hack 25. Establishing Connectivity Hack 26. Quickly Poll Wireless Clients with ping Hack 27. Finding Radio Manufacturers by MAC Address Hack 28. Rendezvous Service Advertisements in Linux Hack 29. Advertising Arbitrary Rendezvous Services in OS X Hack 30. "Brought to you by" Rendezvous Ad Redirector Hack 31. Detecting Networks with Kismet Hack 32. Running Kismet on Mac OS X Hack 33. Link Monitoring in Linux with Wavemon Hack 34. Historical Link State Monitoring Hack 35. EtherPEG and DriftNet Hack 36. Estimating Network Performance Hack 37. Watching Traffic with tcpdump Hack 38. Visual Traffic Analysis with Ethereal Hack 39. Tracking 802.11 Frames in Ethereal Hack 40. Interrogating the Network with nmap Hack 41. Network Monitoring with ngrep Hack 42. Running ntop for Real-Time Network Stats Chapter 4. Hardware Hacks Section 4.1. Hacks #43-69 Hack 43. Add-on Laptop Antennas Hack 44. Increasing the Range of a Titanium PowerBook Hack 45. WET11 Upgrades Hack 46. AirPort Linux Hack 47. Java Configurator for AirPort APs Hack 48. Apple Software Base Station Hack 49. Adding an Antenna to the AirPort Hack 50. The NoCat Night Light Hack 51. Do-It-Yourself Access Point Hardware Hack 52. Compact Flash Hard Drive Hack 53. Pebble Hack 54. Tunneling: IPIP Encapsulation Hack 55. Tunneling: GRE Encapsulation Hack 56. Running Your Own Top-Level Domain Hack 57. Getting Started with Host AP Hack 58. Make Host AP a Layer 2 Bridge Hack 59. Bridging with a Firewall Hack 60. MAC Filtering with Host AP Hack 61. Hermes AP Hack 62. Microwave Cabling Guide Hack 63. Microwave Connector Reference Hack 64. Antenna Guide Hack 65. Client Capability Reference Chart Hack 66. Pigtails Hack 67. 802.11 Hardware Suppliers Hack 68. Home-Brew Power over Ethernet Hack 69. Cheap but Effective Roof Mounts Chapter 5. Do-It-Yourself Antennas Section 5.1. Hacks #70-79 Hack 70. Deep Dish Cylindrical Parabolic Reflector Hack 71. "Spider" Omni Hack 72. Pringles Can Waveguide Hack 73. Pirouette Can Waveguide Hack 74. Primestar Dish with Waveguide Feed Hack 75. BiQuad Feed for Primestar Dish Hack 76. Cut Cable Omni Antenna Hack 77. Slotted Waveguides Hack 78. The Passive Repeater Hack 79. Determining Antenna Gain Chapter 6. Long Distance Links Section 6.1. Hacks #80-85 Hack 80. Establishing Line of Sight Hack 81. Calculating the Link Budget Hack 82. Aligning Antennas at Long Distances Hack 83. Slow Down to Speed Up Hack 84. Taking Advantage of Antenna Polarization Hack 85. Map the Wireless Landscape with NoCat Maps Chapter 7. Wireless Security Section 7.1. Hacks #86-100 Hack 86. Making the Best of WEP Hack 87. Dispel the Myth of Wireless Security Hack 88. Cracking WEP with AirSnort: The Easy Way Hack 89. NoCatAuth Captive Portal Hack 90. NoCatSplash and Cheshire Hack 91. Squid Proxy over SSH Hack 92. SSH SOCKS 4 Proxy Hack 93. Forwarding Ports over SSH Hack 94. Quick Logins with SSH Client Keys Hack 95. "Turbo-Mode" SSH Logins Hack 96. OpenSSH on Windows Using Cygwin Hack 97. Location Support for Tunnels in OS X Hack 98. Using vtun over SSH Hack 99. Automatic vtund.conf Generator Hack 100. Tracking Wireless Users with arpwatch Appendix A. Deep Dish Parabolic Reflector Template Colophon Index [ Team LiB ] [ Team LiB ] Copyright Copyright © 2003 O'Reilly & Associates, Inc. Printed in the United States of America. Published by O'Reilly & Associates, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. O'Reilly & Associates books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://safari.oreilly.com). For more information, contact our corporate/institutional sales department: (800) 998-9938 or [email protected]. Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of O'Reilly & Associates, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O'Reilly & Associates, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. "Hacks," "The Hacks Series," "Hacks 100 Industrial-Strength Tips and Tricks," and related trade dress are trademarks of O'Reilly & Associates, Inc. The association between the image of a wire cutter and the topic of wireless technology is a trademark of O'Reilly & Associates, Inc. While every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein. [ Team LiB ] [ Team LiB ] Credits About the Author Contributors Acknowledgments [ Team LiB ] [ Team LiB ] About the Author Rob Flickenger has been hacking as long as he can remember. He is the author of two other O'Reilly books: Linux Server Hacks and Building Wireless Community Networks, which is now in its second edition. He recently served as sysadmin for the O'Reilly Network, and is currently working on promoting community wireless networking through efforts like NoCat (http://nocat.net/) and SeattleWireless (http://seattlewireless.net/). [ Team LiB ] [ Team LiB ] Contributors The following people contributed their hacks, writing, and inspiration to this book: By day, Schuyler Erle (http://nocat.net/) works as a software engineer for O'Reilly & Associates, Inc. By night, he hacks on Free Software and agitates for the cause of community networking. Schuyler is also chief architect of NoCatAuth, a leading open source captive portal application. Michael Erskine (http://www.freeantennas.com) works at Kaballero.Com. Based in the heart of Southern California's "Digital Coast," Dr. Trevor Marshall (http://www.trevormarshall.com/) offers a full spectrum of consulting services in technologies ranging from Wi-Fi Security and Internet Infrastructure through RF, Hardware, Software, and Audio/Video to Biomedical and Prepress. Previous speaking engagements have included COMDEX, Microprocessor Forums, and WLAN/Wi-Fi Security conferences in Paris, Boston, and Santa Clara. Terry Schmidt (http://www.nycwireless.net/) is the Vice President and Chief Technology Officer of Emenity, Inc. (http://www.cloudnetworks.com/) and is a leading expert on wireless networking technologies and applications. He has presented at major information technology conferences, including MacWorld, the O'Reilly Emerging Technologies Conference, and 802.11Planet. Roger Weeks (http://nocat.net/) has over ten years of experience in systems and network administration. Most recently he has been involved in building a wireless internet cooperative in Sonoma County, CA. In his spare time, he grows and sells organic herbs. Ron Wickersham (http://www.alembic.com/) is an inventor and the Chief Engineer at Alembic, Inc. where he designs guitar electronics. His hobbies involve everything interesting in the Universe including The Amateur Sky Survey and watering the flowers. [ Team LiB ] [ Team LiB ] Acknowledgments I'd like to thank my family and friends for their continuing support in giving me the encouragement (and occasionally, solitude) needed to complete my various little projects. Many hacks in this book were inspired by conversations with countless hackers who willingly share their ideas with anyone who will listen. A few came from the weekly "hack night" sessions that SeattleWireless hosts to foster such cross-pollination of ideas. Without the free and enthusiastic exchange of ideas, this book wouldn't have been possible. Thank You to all of the brilliant hackers around the planet who know that the value of sharing one's ideas can greatly exceed the value of a keeping an idea to oneself. Edd Dumbill, Casey Halverson, and Richard Lotz all provided technical review for the book.