SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 247 | Next

Shon Harris, Allen Harper, Chris Eagle, and Jonathan Ness

"Gray Hat Hacking, Second Edition"

Let??™s instead explore writing only
the files that have changed since the last boot and re-creating those. Remember that we
used this technique to build up the NVIDIA driver install.
Creating a Module of Directory Content
Changes Since the Last Boot
The LiveCD changes system that we used earlier is conveniently broken down by top
level directories. So all the changes to the /root directory are stored in /mnt/live/memory/
changes/root. Let??™s place a new file into /root and then test this technique:
bt ~ # echo hi > /root/test1.txt
bt ~ # dir2lzm /mnt/live/memory/changes/root /tmp/root_changes.lzm [=========
=========================================] 1/1 100%
bt ~ # cp /tmp/root_changes.lzm /mnt/sdb1_removable/bt/modules/
Chapter 5: Using the BackTrack LiveCD Linux Distribution
111
PART II
This dir2lzm took less than a second and the resulting file is only 4KB. This technique
seems promising. We do the same thing with the /home directory and then reboot. We
see that the test1.txt file is still there. Feeling smug, we try it again, this time adding a second
file:
bt ~ # echo hi > /root/test2.txt
bt ~ # dir2lzm /mnt/live/memory/changes/root /tmp/root_changes.lzm [=========
=========================================] 1/1 100%
bt ~ # cp /tmp/root_changes.


Pages:
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259