Howto:Mod Linux
From Offensive-security.com
Contents |
Adding modules to BackTrack
One of BackTracks' most appealing features is it's modularity. As an end user, you can add your own modules scripts and tools to the livecd.
Setting up the "sources"
- Create a temporary install directory in /tmp
bt tmp # mkdir /tmp/INSTALL
- If you have an ISO, mount it and copy over the /boot and /BT directories.
bt tmp # mkdir /mnt/iso bt tmp # mount -o loop -t iso9660 /tmp/bt2final.iso /mnt/iso bt tmp # cp -rf /mnt/iso/* /tmp/INSTALL/
Copy over the new modules
- Create and add your module to the BT/modules directory
bt tmp # cp /tmp/module.lzm /tmp/INSTALL/BT/modules/
Recreate your Modified BackTrack ISO
- Recreate the iso file
bt tmp # cd INSTALL/BT/ bt BT # ./make_iso.sh Target ISO file name [ Hit enter for ../../BT.iso ]: /tmp/bt2final-mod.iso mkisofs 2.01 (i686-pc-linux-gnu) Scanning ../. Scanning .././BT Scanning .././BT/base Scanning .././BT/configs Scanning .././BT/modules Scanning .././BT/optional ... Done with: Directory tree cleanup Block(s) 0 Writing: Extension record Start Block 65 Done with: Extension record Block(s) 1 Writing: The File(s) Start Block 66 1.41% done, estimate finish Fri Mar 9 02:22:37 2007 2.81% done, estimate finish Fri Mar 9 02:22:37 2007 4.21% done, estimate finish Fri Mar 9 02:22:13 2007 5.61% done, estimate finish Fri Mar 9 02:22:19 2007 ... Total translation table size: 2048 Total rockridge attributes bytes: 8261 Total directory bytes: 34816 Path table size(bytes): 244 Done with: The File(s) Block(s) 356309 Writing: Ending Padblock Start Block 356375 Done with: Ending Padblock Block(s) 150 Max brk space used 0 356525 extents written (696 MB)
Boot and Verify
- Boot your new iso, and make sure the module loads properly.
