Wireless Hacks, 2nd Edition

Book description

The popularity of wireless networking has grown exponentially over the past few years, despite a general downward trend in the telecommunications industry. More and more computers and users worldwide communicate via radio waves every day, cutting the tethers of the cabled network both at home and at work.

Wireless technology changes not only the way we talk to our devices, but also what we ask them to do. With greater flexibility, broader range, and increased mobility, wireless networks let us live, work, and think differently. Wireless networks also open up a vast range of tasty new hack possibilities, from fine-tuning network frequencies to hot-rodding handhelds.

The second edition of Wireless Hacks, co-authored by Rob Flickenger and Roger Weeks, brings readers more of the practical tips and tricks that made the first edition a runaway hit, selling nearly 30,000 copies. Completely revised and updated, this version includes over 30 brand new hacks, major overhauls of over 30 more, and timely adjustments and touchups to dozens of other hacks introduced in the first edition. From passive network scanning to aligning long-distance antennas, beefing up wireless network security, and beyond, Wireless Hacks answers real-life networking needs with direct solutions.

Flickenger and Weeks both have extensive experience in systems and network administration, and share a passion for making wireless more broadly available. The authors include detailed coverage for important new changes in specifications and in hardware and software, and they delve deep into cellular and Bluetooth technologies.

Whether you need your wireless network to extend to the edge of your desk, fit into your backpack, or cross county lines, the proven techniques in Wireless Hacks will show you how to get the coverage and functionality you're looking for.

Publisher resources

View/Submit Errata

Table of contents

  1. Wireless Hacks, 2nd Edition
  2. Foreword
  3. Credits
    1. About the Authors
    2. Contributors
    3. Acknowledgments
      1. Rob
      2. Roger
  4. Preface
    1. Why Wireless Hacks?
    2. How to Use This Book
    3. How This Book Is Organized
    4. Conventions Used in This Book
    5. Using Code Examples
    6. How to Contact Us
      1. Safari Books Online
      2. Got a Hack?
  5. 1. Bluetooth, Mobile Phones, and GPS
    1. 1.1. Hacks 1–22: Introduction
    2. 1. Set Up Bluetooth on Linux
    3. 2. Set Up Bluetooth on Windows XP
      1. 1.3.1. Installing Bluetooth
      2. 1.3.2. Securing Your Bluetooth Connection
      3. 1.3.3. Networking with Bluetooth
      4. 1.3.4. See Also
    4. 3. Connect Mac OS X with a Bluetooth Phone
      1. 1.4.1. Requirements
      2. 1.4.2. Adding a Device
      3. 1.4.3. Connection Setup
    5. 4. Connect Linux with a Bluetooth Phone
      1. 1.5.1. Pairing Your Phone
      2. 1.5.2. Configuring PPP Networking
      3. 1.5.3. Hacking the Hack
    6. 5. Connect Windows XP with a Bluetooth Phone
    7. 6. Use Your Treo as a Modem
      1. 1.7.1. Treo 650 Bluetooth DUN
      2. 1.7.2. PdaNet
    8. 7. Send SMS from a PowerBook
    9. 8. Remote Control Mac OS X with Bluetooth Phones and PDAs
      1. 1.9.1. Installing Clicker
      2. 1.9.2. Connecting to Clicker
      3. 1.9.3. Hacking the Hack
    10. 9. Remote Control Linux with a Bluetooth Phone
    11. 10. Control XMMS with Bluetooth
    12. 11. Liven Up Parties with a Participatory Slideshow
      1. 1.12.1. The Slideshow
      2. 1.12.2. The Code
    13. 12. Send SMS from Linux
    14. 13. Remote Control Windows with Bluetooth Phones and PDAs
      1. 1.14.1. Requirements
      2. 1.14.2. Installing PuppetMaster
      3. 1.14.3. Controlling Your PC
      4. 1.14.4. Hacking the Hack
    15. 14. Control Your Bluetooth Phone with FMA
      1. 1.15.1. Requirements
      2. 1.15.2. Setup
      3. 1.15.3. FMA
    16. 15. Control Your Computer from Your Palm
      1. 1.16.1. Set up VNC on Your Desktop
        1. 1.16.1.1. Setting up OSXvnc on a Mac.
        2. 1.16.1.2. Securing the connection.
        3. 1.16.1.3. Setting up VPN.
        4. 1.16.1.4. Setting up VPN on Windows XP.
      2. 1.16.2. Set up PalmVNC
    17. 16. Control Your Home Theater from Your Palm
      1. 1.17.1. Hardware
      2. 1.17.2. Detailed Instructions
        1. 1.17.2.1. Using NoviiRemote.
        2. 1.17.2.2. Using OmniRemote.
    18. 17. Choose a Cellular Data Plan
      1. 1.18.1. Flavors of Cellular Data
      2. 1.18.2. Figure Out What You’ll Need
      3. 1.18.3. Compare the Plans
    19. 18. Blog from Your Mobile Phone
      1. 1.19.1. SMS Moblogging
      2. 1.19.2. Email Moblogging
      3. 1.19.3. Photo Moblogging to Any Blog Service
        1. 1.19.3.1. Smart client for Flickr.
      4. 1.19.4. Hacking the Hack
        1. 1.19.4.1. Setting up WordPress.
        2. 1.19.4.2. Email posting with WordPress.
        3. 1.19.4.3. Setting up email automatic polling.
    20. 19. Get Google Maps on Your Mobile Phone
    21. 20. Share Your GPS
      1. 1.21.1. Connecting the GPS
      2. 1.21.2. See Also
    22. 21. Broadcast Your GPS Position
      1. 1.22.1. See Also
    23. 22. Map Wi-Fi Networks with Kismet and GPSd
      1. 1.23.1. See Also
  6. 2. Network Discovery and Monitoring
    1. 2.1. Hacks 23–39: Introduction
    2. 23. Find All Available Wireless Networks
      1. 2.2.1. Windows XP
      2. 2.2.2. Mac OS X
      3. 2.2.3. Linux
    3. 24. Discover Networks with NetStumbler
      1. 2.3.1. Options
      2. 2.3.2. Network Discovery
      3. 2.3.3. Caveats
    4. 25. Detect Networks with Handheld PCs
      1. 2.4.1. MiniStumbler
      2. 2.4.2. WiFiFoFum
      3. 2.4.3. Other Handhelds
    5. 26. Find and Join Wireless Networks with AP Radar
      1. 2.5.1. Prerequisites
      2. 2.5.2. Building and Using AP Radar
      3. 2.5.3. Final Thoughts
    6. 27. Detect Networks on Mac OS X
      1. 2.6.1. MacStumbler
      2. 2.6.2. iStumbler
      3. 2.6.3. Final Thoughts
    7. 28. Scan Passively with KisMAC
    8. 29. Detect Networks with Kismet
      1. 2.8.1. Installation
      2. 2.8.2. Running Kismet
      3. 2.8.3. Cleaning Up
      4. 2.8.4. See Also
    9. 30. Monitor Wireless Links in Linux with Wavemon
    10. 31. Analyze Traffic with Ethereal
    11. 32. Track 802.11 Frames in Ethereal
    12. 33. Watch Network Traffic
    13. 34. grep Your Network
      1. 2.13.1. The Code
      2. 2.13.2. Running the Hack
    14. 35. Check Wi-Fi Network Performance with Qcheck
    15. 36. Estimate Network Performance
    16. 37. Get Real-Time Network Stats
    17. 38. Graph Your Wireless Performance
    18. 39. Find Radio Manufacturers by MAC
      1. 2.18.1. The Code
      2. 2.18.2. Running the Hack
  7. 3. Wireless Security
    1. 3.1. Hacks 40–51: Introduction
    2. 40. Stop Moochers from Stealing Your Wi-Fi Bandwidth
      1. 3.2.1. Hacking the Hack
    3. 41. Visualize a Network
      1. 3.3.1. EtherPEG
      2. 3.3.2. DriftNet
    4. 42. Secure Your Linux Network with WPA
      1. 3.4.1. Requirements
        1. 3.4.1.1. Drivers.
        2. 3.4.1.2. WPA types.
      2. 3.4.2. Installing wpa_supplicant
        1. 3.4.2.1. Ubuntu package.
        2. 3.4.2.2. Fedora Core 3 compile.
      3. 3.4.3. Configuration
      4. 3.4.4. Testing and Usage
      5. 3.4.5. Running wpa_cli
    5. 43. Control Wireless Access by MAC
      1. 3.5.1. FreeRADIUS Configuration
      2. 3.5.2. Access Point Configuration
    6. 44. Authenticate Wireless Users
      1. 3.6.1. FreeRADIUS Configuration
      2. 3.6.2. Access Point Configuration
    7. 45. Forward Ports over SSH
      1. 3.7.1. See Also
    8. 46. Proxy Web Traffic over SSH
    9. 47. Securely Connect Two Networks
      1. 3.9.1. vtun Setup
      2. 3.9.2. vtun with SSH
      3. 3.9.3. Tips and Tricks
    10. 48. Generate a Tunnel Configuration Automatically
      1. 3.10.1. The Code
    11. 49. Poll Wireless Clients
    12. 50. Interrogate the Network
    13. 51. Track Wireless Users
  8. 4. Hardware Hacks
    1. 4.1. Hacks 52–62: Introduction
    2. 52. Add an External Antenna
      1. 4.2.1. Patch Antennas
      2. 4.2.2. Popsicle Omni Antennas
      3. 4.2.3. Rubber Ducky Antennas
    3. 53. Do-It-Yourself Access Point Hardware
    4. 54. Boot from a Compact Flash Hard Drive
    5. 55. Increase the Range of a PowerBook
    6. 56. Send Power over Your Ethernet
      1. 4.6.1. Step by Step
      2. 4.6.2. Resistance Is Futile
    7. 57. The NoCat Night Light
    8. 58. Upgrade the Linksys WET11
      1. 4.8.1. Add an Antenna
      2. 4.8.2. Upgrade the Radio
      3. 4.8.3. Use a Battery Pack
    9. 59. Scan for Wireless Networks Automatically
      1. 4.9.1. Requirements
      2. 4.9.2. Construction
      3. 4.9.3. Software
      4. 4.9.4. Hacking the Hack
    10. 60. Backlight Your Zipit
      1. 4.10.1. Getting It Open
      2. 4.10.2. Removing the Mainboard
      3. 4.10.3. Opening the LCD
      4. 4.10.4. Removing the LCD Reflector
      5. 4.10.5. Preparing and Installing the EL Panel
      6. 4.10.6. Wiring
      7. 4.10.7. The Driver Board
      8. 4.10.8. Hacking the Hack
    11. 61. Unwire Your Pistol Mouse
      1. 4.11.1. Requirements
      2. 4.11.2. Disassembly
      3. 4.11.3. Wiring
      4. 4.11.4. Testing and Debugging
      5. 4.11.5. Cutting
      6. 4.11.6. Reassembly
      7. 4.11.7. Use
    12. 62. Mobilize Your WRT54G with the WiFiCar
      1. 4.12.1. The Software
      2. 4.12.2. The Hardware
  9. 5. Software Hacks
    1. 5.1. Hacks 63–82: Introduction
    2. 63. Build Your Own Access Point with Linux
      1. 5.2.1. Hardware Choices
      2. 5.2.2. Radio Cards and Antennas
      3. 5.2.3. Software Requirements
      4. 5.2.4. HostAP
        1. 5.2.4.1. Ubuntu package install.
        2. 5.2.4.2. Compiling from source.
      5. 5.2.5. Madwifi
        1. 5.2.5.1. Ubuntu package install.
        2. 5.2.5.2. Compiling from source.
      6. 5.2.6. Configuring Your AP
      7. 5.2.7. Hacking the Hack
    3. 64. Bridge Your Linux AP
      1. 5.3.1. Bridge Setup
      2. 5.3.2. Caveats
      3. 5.3.3. See Also
    4. 65. Protect Your Bridge with a Firewall
    5. 66. Filter MAC with HostAP and Madwifi
    6. 67. Upgrade Your Wireless Router
      1. 5.6.1. Sveasoft Firmware
      2. 5.6.2. OpenWRT
      3. 5.6.3. Hacking the Hack
    7. 68. Set Up an OLSR Mesh Network
      1. 5.7.1. Getting the Firmware
      2. 5.7.2. Uploading the Firmware
      3. 5.7.3. Getting Meshed Up
      4. 5.7.4. Rinse and Repeat
      5. 5.7.5. Meshing Made Easy
      6. 5.7.6. Troubleshooting the Firmware Upload
      7. 5.7.7. See Also
    8. 69. Extend Your Wireless Network with WDS
      1. 5.8.1. WDS Requirements
      2. 5.8.2. Linksys Alchemy Setup
      3. 5.8.3. HostAP Setup
      4. 5.8.4. Hacking the Hack
    9. 70. Pebble
    10. 71. Wall Off Your Wireless
      1. 5.10.1. Installation
      2. 5.10.2. Configuration
      3. 5.10.3. Using m0n0wall
    11. 72. Run Your Mac as an Access Point
    12. 73. Run Linux on the Zipit Wireless Messenger
      1. 5.12.1. Flashing the Zipit
        1. 5.12.1.1. Becoming the man in the middle.
        2. 5.12.1.2. Setting up the DNS.
        3. 5.12.1.3. Setting up the web server.
      2. 5.12.2. zflash OpenZipit over NFS
        1. 5.12.2.1. NFS setup.
        2. 5.12.2.2. zflash.
      3. 5.12.3. Customizing Your Image
        1. 5.12.3.1. Modify the default settings.
        2. 5.12.3.2. Add useful scripts.
        3. 5.12.3.3. Get some tunes going.
      4. 5.12.4. Hacking the Hack
      5. 5.12.5. See Also
    13. 74. Capture Wireless Users with NoCatAuth
    14. 75. Capture Wireless Users on a Small Scale
    15. 76. Build an Online Community in Your Offline Neighborhood
      1. 5.15.1. PlaceSite
      2. 5.15.2. The Core Components.
        1. 5.15.2.1. The server.
        2. 5.15.2.2. The node.
      3. 5.15.3. PlaceSite in Action
      4. 5.15.4. Setting Up Your Own PlaceSite
      5. 5.15.5. Running the Hack
      6. 5.15.6. Troubleshooting the Hack
      7. 5.15.7. Hacking the Hack
    16. 77. Manage Multiple AirPort Base Stations
      1. 5.16.1. A Power Tool for Configuration Management
      2. 5.16.2. Tweaking Placement of Base Stations
    17. 78. Advertise Bonjour Services in Linux
      1. 5.17.1. Background
      2. 5.17.2. Using Howl
    18. 79. Advertise Any Service with Bonjour in Mac OS X
      1. 5.18.1. Network Beacon
      2. 5.18.2. mod_bonjour
    19. 80. Redirect “Brought to you by” Bonjour Ads
    20. 81. Use a Windows-Only Wireless Card in Linux
      1. 5.20.1. WLAN DriverLoader
      2. 5.20.2. NdisWrapper
      3. 5.20.3. Final Thoughts
    21. 82. Use Your Orinoco Card with Hermes AP
  10. 6. Do-It-Yourself Antennas
    1. 6.1. Hacks 83–93: Introduction
    2. 83. Make a Deep Dish Cylindrical Parabolic Reflector
    3. 84. Spider Omni Antenna
    4. 85. Pringles Can Waveguide
      1. 6.4.1. Front Collector Construction
      2. 6.4.2. Preparing the Can
      3. 6.4.3. Element Construction
    5. 86. Pirouette Can Waveguide
      1. 6.5.1. See Also
    6. 87. Primestar Dish with Waveguide Feed
      1. 6.6.1. Construction
      2. 6.6.2. Other Considerations
      3. 6.6.3. Hacking in 802.11a
    7. 88. Primestar Dish with Biquad Feed
      1. 6.7.1. Construction of the Biquad
      2. 6.7.2. Biquad Antenna for PCS Cellular Radio
    8. 89. Cut a Cable Omni Antenna
      1. 6.8.1. Cutting the Pieces
      2. 6.8.2. Building a Jig
    9. 90. Build a Slotted Waveguide Antenna
      1. 6.9.1. How a Waveguide Antenna Works
      2. 6.9.2. Unidirectional Waveguide Antennas
      3. 6.9.3. Omnidirectional Slotted Waveguide Antennas
      4. 6.9.4. Highly Directional Slotted Waveguide Antennas
      5. 6.9.5. Construction Details for the 8-Slot Unidirectional Antenna
      6. 6.9.6. Coupling the Signal into the Waveguide
      7. 6.9.7. 8+8 Slot Omnidirectional Antenna
      8. 6.9.8. 8-Slot Unidirectional Antenna
      9. 6.9.9. Construction Details for 16- and 16+16-Slot Design
    10. 91. The Passive Repeater
      1. 6.10.1. Why a Passive Repeater Won’t Work
      2. 6.10.2. An Example that Almost Works
      3. 6.10.3. A Working Example
    11. 92. Determine Your Antenna Gain
    12. 93. Build Cheap, Effective Roof Mounts
  11. 7. Wireless Network Design
    1. 7.1. Hacks 94–100: Introduction
    2. 94. Analyze Elevation Profiles for Better Long-Range Wireless Networking
      1. 7.2.1. NoCat Maps
      2. 7.2.2. Installing Your Own Profile Analyzer
      3. 7.2.3. Getting the Elevation Data
      4. 7.2.4. Setting Up the Application
      5. 7.2.5. Starting Your Elevation Profiler for the First Time
      6. 7.2.6. The Caveats
    3. 95. Build a Wireless Network for the Large House
      1. 7.3.1. Two Antennas Are Better Than One
      2. 7.3.2. Plugging Into Wireless
      3. 7.3.3. Hacking the Hack
    4. 96. Establish Line of Sight
      1. 7.4.1. Using a GPS to Log Prospective LAT/LONG/ALT
      2. 7.4.2. Plotting the Points on a 3D Map
    5. 97. Calculate the Link Budget
    6. 98. Align Antennas at Long Distances
    7. 99. Slow Down to Speed Up
    8. 100. Take Advantage of Antenna Polarization
  12. A. Wireless Standards
    1. A.1. 802.11: The Mother of All IEEE Wireless Ethernet
      1. A.1.1. Pros
      2. A.1.2. Cons
      3. A.1.3. Recommendation
    2. A.2. 802.11a: The Betamax of the 802.11 Family
      1. A.2.1. Pros
      2. A.2.2. Cons
      3. A.2.3. Recommendation
    3. A.3. 802.11b: The De Facto Standard
      1. A.3.1. Pros
      2. A.3.2. Cons
      3. A.3.3. Recommendation
    4. A.4. 802.11g: Like 802.11b, only Faster
      1. A.4.1. Pros
      2. A.4.2. Cons
      3. A.4.3. Recommendation
    5. A.5. 802.16: WiMAX Long Distance Wireless Infrastructure
      1. A.5.1. Pros
      2. A.5.2. Cons
      3. A.5.3. Recommendation
    6. A.6. Bluetooth: Cable Replacement for Devices
      1. A.6.1. Pros
      2. A.6.2. Cons
      3. A.6.3. Recommendation
    7. A.7. 900 MHz: Low Speed, Better Coverage
      1. A.7.1. Pros
      2. A.7.2. Cons
      3. A.7.3. Recommendation
    8. A.8. CDPD, 1xRTT, and GPRS: Cellular Data Networks
      1. A.8.1. CDPD on TDMA
      2. A.8.2. 1xRTT on CDMA
      3. A.8.3. GPRS on GSM
    9. A.9. FRS and GMRS: Super Walkie-Talkies
      1. A.9.1. FRS
      2. A.9.2. GMRS
      3. A.9.3. Extending Range
    10. A.10. 802.1x: Port Security for Network Communications
    11. A.11. WPA & 802.11i
      1. A.11.1. Pros
      2. A.11.2. Cons
      3. A.11.3. Recommendation
    12. A.12. BSS Versus IBSS
  13. B. Wireless Hardware Guide
    1. B.1. Microwave Cabling
    2. B.2. Microwave Connector Reference
    3. B.3. Antenna Guide
      1. B.3.1. Omni
      2. B.3.2. Sector (or Sectoral)
      3. B.3.3. Yagi
      4. B.3.4. Waveguides and “Cantennas”
      5. B.3.5. Parabolic Dishes
      6. B.3.6. Putting It All Together
    4. B.4. Pigtails
    5. B.5. 802.11 Hardware Suppliers
  14. Index
  15. About the Authors
  16. Colophon
  17. Copyright

Product information

  • Title: Wireless Hacks, 2nd Edition
  • Author(s): Rob Flickenger, Roger Weeks
  • Release date: November 2005
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9780596553296