OS X for Hackers at Heart (PAperback)

Bruce Potter, Chris Hurley, Johnny Long, Tom Owad, Russ Rogers

  • 出版商: Syngress Media
  • 出版日期: 2005-11-05
  • 售價: $1,900
  • 貴賓價: 9.5$1,805
  • 語言: 英文
  • 頁數: 512
  • 裝訂: Paperback
  • ISBN: 1597490407
  • ISBN-13: 9781597490405
  • 相關分類: 駭客 Hack
  • 已絕版

買這商品的人也買了...

商品描述

Description

With sexy hardware, a powerful operating system, and easy to use applications, Apple has made OS X the operating system of choice for hackers everywhere. But as great as OS X is out of the box, hackers are eager to push the boundaries by tweaking and tuning the software and hardware in order to do the things that really excite them such as penetration testing or software development. These modifications are often sexy in their own right and drive the OS X community even deeper into the realm of "elite." This book attempts to capture these purpose-driven modifications and shows how the best and brightest use OS X to do cutting edge research, development, and just plain fooling around. OS X 10.4 Tiger is a major upgrade for Mac OS X for running Apple’s Macintosh computers and laptops. This book is not a reference to every feature and menu item for OS X. Rather, it teaches hackers of all types from software developers to security professionals to hobbyists, how to use the most powerful (and often obscure) features of OS X for wireless networking, WarDriving, software development, penetration testing, scripting administrative tasks, and much more.

 

 

Table of Contents


xi Contents
Foreword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
Chapter 1 A Network Admin’s Guide to Using Mac OS X 1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
Running a Headless Mac . . . . . . . . . . . . . . . . . . . . . . . . . . .3
Apple Remote Desktop . . . . . . . . . . . . . . . . . . . . . . . . .4
VNC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
SSH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Serial Console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Adding Serial Ports . . . . . . . . . . . . . . . . . . . . . . . . . .10
Booting to the Console Instead of the GUI . . . . . . . .10
Connecting to the Headless Mac . . . . . . . . . . . . . . . .12
Extra Credit: Serial over Bluetooth . . . . . . . . . . . . . .13
Extra Extra Credit: Logging to the Serial Port . . . . . .18
Adding Interfaces to the Mac . . . . . . . . . . . . . . . . . . . . . . .19
Physical Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
Interface Aliases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
GUI Configuration . . . . . . . . . . . . . . . . . . . . . . . . . .21
Command Line Configuration . . . . . . . . . . . . . . . . .22
The Macintosh as a Router . . . . . . . . . . . . . . . . . . . . . . . . .25
Basic Host Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
Basic Static Routing . . . . . . . . . . . . . . . . . . . . . . . . . . .29
Basic Dynamic Network Routing . . . . . . . . . . . . . . . . .30
“Real” Routing with Zebra . . . . . . . . . . . . . . . . . . . . .32
Downloading and Installing Zebra . . . . . . . . . . . . . . .33
Configuring Zebra for Routing . . . . . . . . . . . . . . . .36
Mac OS X as a RADIUS server . . . . . . . . . . . . . . . . . . . . .42
FreeRADIUS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44
Mac OS X Server Integration . . . . . . . . . . . . . . . . . .46
343_OSX_TOC.qxd 11/4/05 7:07 PM Page xi

xii Contents
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50
Solutions Fast Track . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50
Frequently Asked Questions . . . . . . . . . . . . . . . . . . . . . . . .51
Chapter 2 Automation. . . . . . . . . . . . . . . . . . . . . . . . . . 53
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54
Using Automator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55
Creating a One-shot Automation . . . . . . . . . . . . . . . . . .58
Creating a More Versatile Automation . . . . . . . . . . . . . .61
Saving Automations as Applications and Workflows . . . . .62
Saving Automations as Plug-ins . . . . . . . . . . . . . . . . . . .64
Finder Plug-ins . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64
iCal Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65
Image Capture . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66
Print Workflow . . . . . . . . . . . . . . . . . . . . . . . . . . . .66
Folder Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67
Script Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .68
Hacker-friendly Automator Actions . . . . . . . . . . . . . . . .69
Automator | Run AppleScript . . . . . . . . . . . . . . . .70
Automator | Run Shell Script . . . . . . . . . . . . . . . .70
Automator | Run Web Service . . . . . . . . . . . . . . .71
Automator | View Results . . . . . . . . . . . . . . . . . . .72
Finder | Set the Desktop Picture . . . . . . . . . . . . . .73
Image Capture | Take Picture . . . . . . . . . . . . . . . . .73
Mail | Add Attachments . . . . . . . . . . . . . . . . . . . . .75
PDF | Encrypt PDF Document . . . . . . . . . . . . . . .76
PDF | Watermark PDF . . . . . . . . . . . . . . . . . . . . .76
Safari | Download URLs . . . . . . . . . . . . . . . . . . . .77
Safari | Get Link URLs . . . . . . . . . . . . . . . . . . . . .77
Safari | Filter URLs . . . . . . . . . . . . . . . . . . . . . . . . .78
System | System Profile Action . . . . . . . . . . . . . . . . .80
XCode Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . .80
Understanding AppleScript . . . . . . . . . . . . . . . . . . . . . . . .81
Introducing the Script Editor . . . . . . . . . . . . . . . . . . . . .81
Hello,World! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83
Recording Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . .84
AppleScript Save Options . . . . . . . . . . . . . . . . . . . . . . .86
343_OSX_TOC.qxd 11/4/05 7:07 PM Page xii

Contents xiii
Script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86
Application (Applet) . . . . . . . . . . . . . . . . . . . . . . . . .86
Bundles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86
Script Assistant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87
AppleScript Dictionary . . . . . . . . . . . . . . . . . . . . . . . . .88
Not Quite An AppleScript Language Guide . . . . . . . . . .89
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90
Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90
Line Breaks (The ¬ character) . . . . . . . . . . . . . . . . . .90
Capitalization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91
The “the” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91
Variables and Basic Mathematical Operations . . . . . . .91
Looping (Repeat) . . . . . . . . . . . . . . . . . . . . . . . . . . .93
Learning By Example: Interactive Dialogs . . . . . . . . . . . .95
A Simple Mac Help Script . . . . . . . . . . . . . . . . . . . .95
Interactive Dialog Boxes . . . . . . . . . . . . . . . . . . . . . . . .95
Bash Scripting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100
Foundations of Shell Scripting . . . . . . . . . . . . . . . . . . .101
Selecting a Shell . . . . . . . . . . . . . . . . . . . . . . . . . . .102
Permissions and Paths . . . . . . . . . . . . . . . . . . . . . . .102
Common Conventions . . . . . . . . . . . . . . . . . . . . . .103
Pipes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104
Redirection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .105
Job Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .109
Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .109
Tests and Return Codes . . . . . . . . . . . . . . . . . . . . .110
The All-Important If,Then, and Else . . . . . . . . . . . .113
Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114
Harnessing Mac’s UNIX Commands . . . . . . . . . . . . . .119
Cat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .119
Grep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .120
Sed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .122
Awk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .124
Pulling It Together: A bash Mini-project . . . . . . . . . . . .126
Curl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .134
343_OSX_TOC.qxd 11/4/05 7:07 PM Page xiii

xiv Contents
Lynx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .135
Bridging the Gap From bash to AppleScript . . . . . . . . .138
Using Bash,AppleScript, and Automator Together! . . . . . . .139
Overcoming Automator’s Lame Display Dialogs . . . . . .140
Exchanging Data With AppleScript . . . . . . . . . . . . . . .141
Exchanging Data With Bash . . . . . . . . . . . . . . . . . . . .143
Ethereal Auto-Launcher . . . . . . . . . . . . . . . . . . . . . . . .144
Password-protected Zip and Unzip . . . . . . . . . . . . . . . .146
Basic nmap Front-end . . . . . . . . . . . . . . . . . . . . . . . . .153
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .156
Solutions Fast Track . . . . . . . . . . . . . . . . . . . . . . . . . . . . .156
Links to Sites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .157
Frequently Asked Questions . . . . . . . . . . . . . . . . . . . . . . .158
Chapter 3 OS X in a Microsoft Environment. . . . . . . . 159
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .160
Who Should Read this Chapter? . . . . . . . . . . . . . . . . .160
Windows Terms You Should Know . . . . . . . . . . . . . . .161
Accessing Network File Systems . . . . . . . . . . . . . . . . . . . .163
Mounting Network File Systems via AppleScript . . . . .166
Mounting Network File Systems via Terminal . . . . . . .168
Using a .nmbrc or nsmb.conf File to Store Login
Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .169
Microsoft Distributed File System . . . . . . . . . . . . . . . .171
NTLM Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . .172
Accessing NTLM-Protected Web Servers
via the Command Line . . . . . . . . . . . . . . . . . . . . . . . .173
Using an NTLM-Protected Proxy from the
Command Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .174
Using a Local Proxy to Handle NTLM Authentication .175
Connecting to a Windows PPTP Server . . . . . . . . . . . . . .180
Split Tunneling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .182
Routing DNS Requests . . . . . . . . . . . . . . . . . . . . . . .184
Zen of Running Windows Boxes from a Mac . . . . . . . . . .185
MS Remote Desktop Client . . . . . . . . . . . . . . . . . . . .185
Opening Remote Desktop Connections from the
Command Line . . . . . . . . . . . . . . . . . . . . . . . . . . .187
343_OSX_TOC.qxd 11/4/05 7:07 PM Page xiv

Contents xv
Opening Concurrent Remote Desktop Sessions . . .188
Making Local Resources Available on the Remote
Windows Computer . . . . . . . . . . . . . . . . . . . . . . . .189
Rdesktop—The Open Source Remote Desktop Client 191
Installing Rdesktop . . . . . . . . . . . . . . . . . . . . . . . . .192
Setting Up Terminal to Use Your X11 Server . . . . . .193
Using Rdesktop . . . . . . . . . . . . . . . . . . . . . . . . . . .195
Using Shell Scripts to Speed up Rdesktop Logins . .196
Virtual Network Computing . . . . . . . . . . . . . . . . . . . .197
Installing VNC on Windows . . . . . . . . . . . . . . . . . .199
Connecting the VNC Server from OS X . . . . . . . . .201
Synergy—Using a Mac and PC from one
Keyboard/Mouse . . . . . . . . . . . . . . . . . . . . . . . . . . . .202
Installing and Configuring Synergy . . . . . . . . . . . . . . .203
Talking to Windows From the Terminal . . . . . . . . . . . .207
SSH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .207
Installing SSH on Windows . . . . . . . . . . . . . . . . . . .208
Starting and Stopping a Service . . . . . . . . . . . . . . . .211
Windows Command Line Tools . . . . . . . . . . . . . . .212
Samba Command Line Utilities . . . . . . . . . . . . . . . .214
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .218
Solutions Fast Track . . . . . . . . . . . . . . . . . . . . . . . . . . . . .219
Frequently Asked Questions . . . . . . . . . . . . . . . . . . . . . . .221
Chapter 4 WarDriving and Wireless Penetration
Testing with OS X. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .224
WarDriving with KisMAC . . . . . . . . . . . . . . . . . . . . . . . .224
KisMAC Startup and Initial Configuration . . . . . . . . . .225
Configuring the KisMAC Preferences . . . . . . . . . . . . .226
Scanning Options . . . . . . . . . . . . . . . . . . . . . . . . . .226
Filter Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . .227
Sound Preferences . . . . . . . . . . . . . . . . . . . . . . . . .228
Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .231
.kismac Preferences . . . . . . . . . . . . . . . . . . . . . . . . .231
Mapping WarDrives with KisMAC . . . . . . . . . . . . . . .233
Importing a Map . . . . . . . . . . . . . . . . . . . . . . . . . .233
343_OSX_TOC.qxd 11/4/05 7:07 PM Page xv

xvi Contents
Practicing WarDriving with KisMAC . . . . . . . . . . . . . .239
Using the KisMAC Interface . . . . . . . . . . . . . . . . . .239
Penetration Testing with OS X . . . . . . . . . . . . . . . . . . . . .244
Attacking WLAN Encryption with KisMAC . . . . . . . .244
Attacking WEP with KisMAC . . . . . . . . . . . . . . . .244
Re-injection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .246
Attacking WPA with KisMAC . . . . . . . . . . . . . . . . . . .248
Other Attacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .249
Brute Force Attacks Against 40-Bit WEP . . . . . . . .249
Wordlist Attacks . . . . . . . . . . . . . . . . . . . . . . . . . . .250
Other OS X Tools for WarDriving and WLAN Testing . . . .250
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .253
Solutions Fast Track . . . . . . . . . . . . . . . . . . . . . . . . . . . . .253
Frequently Asked Questions . . . . . . . . . . . . . . . . . . . . . . .255
Chapter 5 Mac OS X for Pen Testers . . . . . . . . . . . . . . 257
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .258
The OS X Command Shell . . . . . . . . . . . . . . . . . . . . . . . .260
Compiling and Porting Open Source Software . . . . . . . . . .264
OS X Developer Tools . . . . . . . . . . . . . . . . . . . . . . . . .264
Perl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .266
Configuring CPAN . . . . . . . . . . . . . . . . . . . . . . . .267
Using CPAN’s Interactive Mode . . . . . . . . . . . . . . .269
Using CPAN in Command-Line Mode . . . . . . . . . .273
Installing XWindows . . . . . . . . . . . . . . . . . . . . . . . . . .273
Compiling Programs on Mac OS X . . . . . . . . . . . . . . .275
Compiling Versus Porting . . . . . . . . . . . . . . . . . . . . . .276
Installing Ported Software on Mac OS X . . . . . . . . . . .277
Why Port:A Source Install Gone Bad! . . . . . . . . . . .277
DarwinPorts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .279
Fink . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .283
Installing Binary Packages Using apt-get . . . . . . . . .284
Using The “Top 75 Security Tools” List . . . . . . . . . . . . . . .288
Category: Attack (Network) . . . . . . . . . . . . . . . . . . . . .289
Category: Attack (Scanner) . . . . . . . . . . . . . . . . . . . . . .290
Category: Attack (Web) . . . . . . . . . . . . . . . . . . . . . . . .290
Category: Crypto . . . . . . . . . . . . . . . . . . . . . . . . . . . .291
343_OSX_TOC.qxd 11/4/05 7:07 PM Page xvi

Contents xvii
Category: Defense . . . . . . . . . . . . . . . . . . . . . . . . . . . .292
Category: Defense / Forensics . . . . . . . . . . . . . . . . . . .294
Category: Evasion . . . . . . . . . . . . . . . . . . . . . . . . . . . .294
Category: Footprinting . . . . . . . . . . . . . . . . . . . . . . . .294
Category: Monitor (Sniffing) . . . . . . . . . . . . . . . . . . . .295
Category: Multipurpose . . . . . . . . . . . . . . . . . . . . . . . .298
Category: Password Cracking . . . . . . . . . . . . . . . . . . . .298
Category: Password Cracking (Remote) . . . . . . . . . . . .299
Category: Programming . . . . . . . . . . . . . . . . . . . . . . . .300
Category: Scanning . . . . . . . . . . . . . . . . . . . . . . . . . . .300
Installing and Using The “Big”Tools . . . . . . . . . . . . . . . . .301
Ethereal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .301
Nessus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .303
Other OS X “Must Haves” . . . . . . . . . . . . . . . . . . . . . . . .306
Running CD-based Linux Distributions . . . . . . . . . . . .308
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .312
Solutions Fast Track . . . . . . . . . . . . . . . . . . . . . . . . . . . . .312
Frequently Asked Questions . . . . . . . . . . . . . . . . . . . . . . .315
Chapter 6 Mac Tricks (Stupid Powerbook Stunts
That Make You Look Like a God). . . . . . . . . . . . . . . . . 317
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .318
Desktop Console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .318
Screen Savers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .320
Widgets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .322
System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .322
Internet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .323
Calculators and Converters . . . . . . . . . . . . . . . . . . . . .326
Fun . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .327
Apple Motion Sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . .328
VNC with Apple Remote Desktop . . . . . . . . . . . . . . . . . .331
Gestures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .334
Sogudi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .337
GUI Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .339
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .343
Solutions Fast Track . . . . . . . . . . . . . . . . . . . . . . . . . . . . .343
Frequently Asked Questions . . . . . . . . . . . . . . . . . . . . . . .345
343_OSX_TOC.qxd 11/4/05 7:07 PM Page xvii

xviii Contents
Chapter 7 OS X For the Road Warrior . . . . . . . . . . . . 347
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .348
Safe and Secure E-mail . . . . . . . . . . . . . . . . . . . . . . . . . . .348
IMAP SSL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .350
STARTTLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .352
GnuPG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .353
Connecting From Anywhere (Almost) . . . . . . . . . . . . .354
GPRS Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .355
Firewalling Your Mac . . . . . . . . . . . . . . . . . . . . . . . . . .359
Battery Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . .361
Conservation Tips . . . . . . . . . . . . . . . . . . . . . . . . . . . .361
Calibration and Total Discharge . . . . . . . . . . . . . . . . . .363
Resetting the Power Manager . . . . . . . . . . . . . . . . . . .364
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .365
Solutions Fast Track . . . . . . . . . . . . . . . . . . . . . . . . . . . . .365
Frequently Asked Questions . . . . . . . . . . . . . . . . . . . . . . .366
Appendix A Hacking the iPod . . . . . . . . . . . . . . . . . . . 369
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .370
Opening Your iPod . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .374
Preparing for the Hack . . . . . . . . . . . . . . . . . . . . . . . .375
First Generation iPods . . . . . . . . . . . . . . . . . . . . . . . . .376
Second and Third-Generation iPods . . . . . . . . . . . . . . .379
Replacing the iPod Battery . . . . . . . . . . . . . . . . . . . . . . . .382
Preparing for the Hack . . . . . . . . . . . . . . . . . . . . . . . .383
Battery Replacement:
First and Second-Generation iPods . . . . . . . . . . . . . . . .385
Battery Replacement:Third-Generation iPods . . . . . . .390
Upgrading a 5GB iPod’s Hard Drive . . . . . . . . . . . . . . . . .397
Preparing for the Hack . . . . . . . . . . . . . . . . . . . . . . . .398
Performing the Hack . . . . . . . . . . . . . . . . . . . . . . . . . .399
From Mac to Windows and Back Again . . . . . . . . . . . . . . .409
Preparing for the Hack . . . . . . . . . . . . . . . . . . . . . . . .409
Going from Windows to Macintosh . . . . . . . . . . . . . . .410
Going from Macintosh to Windows . . . . . . . . . . . . . . .411
343_OSX_TOC.qxd 11/4/05 7:07 PM Page xviii

Contents xix
iPod Diagnostic Mode . . . . . . . . . . . . . . . . . . . . . . . . . . .413
The Diagnostic Menu . . . . . . . . . . . . . . . . . . . . . . . . .413
Disk Check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .416
Additional iPod Hacks . . . . . . . . . . . . . . . . . . . . . . . . . . .418
Installing Linux on an iPod . . . . . . . . . . . . . . . . . . . . .418
Repairing the FireWire Port . . . . . . . . . . . . . . . . . . . .418
Scroll Wheel Fix . . . . . . . . . . . . . . . . . . . . . . . . . . . . .419
iPod Resources on the Web . . . . . . . . . . . . . . . . . . . . . . .420
Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423
343_OSX_TOC.qxd 11/4/05 7:07 PM Page xix
343_OSX_TOC.qxd 11/4/05 7:07 PM Page xx