BackTrack includes two built-in commands to do
something similar to what we??™ve built here. They are configsave and configrestore, but it
is fun to build a similar functionality by hand to know exactly how it works.
Cheat Codes and Selectively Loading Modules
Cheat codes or ???boot codes??? are parameters you can supply at the original boot prompt
(boot:) to change how BackTrack boots. As an example, if the boot process is hanging on
hardware auto-detection, you can disable all hardware auto-detection, or maybe just the
PCMCIA hardware detection. There are several other cheat codes documented in Table 5-1,
butwe??™d like to highlight the load and noload cheat codes here. In the previous sections,we
built modules to hard-code a test wireless access point SSID and encryption key. It also
attempted to acquire a DHCP address. Another module loaded graphics drivers, and yet
another preserved all changes made to the /root and /home directories from session to
session. As you might guess, sometimes in penetration testing you don??™t want to bring up
Gray Hat Hacking: The Ethical Hacker??™s Handbook
112
a wireless adapter, and you definitely don??™t want it to start broadcasting requests for a preferred
access point.
Pages:
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263