Your daily source of Pwnage, Policy and Politics.

[display_podcast]

ISD Special Episode – Katana

Play

Tech Segment:
Hack from a Cave have released Katana which is a 5GB Portable Multi-Boot Security Suite is designed to fulfill many of your computer security needs. The idea behind this tool is to bring together many of the best security distributions and applications to run from one USB Flash Drive. Instead of keeping track of dozens of CDs and DVDs loaded with your favorite security tools, you can keep them all conveniently in your pocket.

Katana includes distributions which focus on Penetration Testing, Auditing, Password Cracking, Forensics and Honey Pots. Katana comes with over 100 portable Windows applications, such as Wireshark, HiJackThis, Unstoppable Copier, Firefox, and OllyDBG. It also includes the following distributions:

* Backtrack 4 pre
* the Ultimate Boot CD
* Ophcrack Live
* Damn Small Linux
* the Ultimate Boot CD for Windows
* Got Root? Slax
* Organizational Systems Wireless Auditor (OSWA) Assistant
* Damn Vulnerable Linux

According to their website “Ultimate Boot CD is completely free for the download, or could be obtained for a small fee. If you had somehow paid a ridiculous amount of money for it, you have most likely been fleeced. The least you could do is to make as many copies of the offical UBCD and pass it to your friends, relatives, colleagues or even complete strangers to minimize the per unit cost of your loss”

BackTrack is the most top rated linux live distribution focused on penetration testing. With no installation whatsoever, the analysis platform is started directly from the CD-Rom and is fully accessible within minutes.

Ophcrack is a free Windows password cracker based on rainbow tables. It is a very efficient implementation of rainbow tables done by the inventors of the method. It comes with a Graphical User Interface and runs on multiple platforms.

DSL was originally developed as an experiment to see how many usable desktop applications can fit inside a 50MB live CD. It was at first just a personal tool/toy. But over time Damn Small Linux grew into a community project with hundreds of development hours put into refinements including a fully automated remote and local application installation system and a very versatile backup and restore system which may be used with any writable media including a hard drive, a floppy drive, or a USB device.

UBCD4Win is a bootable recovery CD that contains software used for repairing, restoring, or diagnosing almost any computer problem. Our goal is to be the most complete and easy to use free computer diagnostic tool. Almost all software included in UBCD4Win are freeware utilities for Windows®. Some of the tools inlcuded are “free for personal use” copies so users need to respect these licenses. A few of the tools included in UBCD4Win are paid for and licensed software owned by UBCD4win.

Got Root? Slax – Developed to accompany Katana. All modules in the “slax/modules” directory were added to Slax 6 excluding those starting with numbers. The modules were obtained from the Slax official website here. The 3-003-desktop.lzm module was unpacked and modified to add the Got Root? Slax wallpaper.

The OSWA-Assistant™ is a freely-downloadable, self-contained, wireless-auditing toolkit for both IT-security professionals and End-users alike.

Damn Vulnerable Linux provides with a high sophisticated training trail an ultimate way to show your proven excellence in the field of Reverse Code Engineering and Hacking in various IT security relevant knowledge domains to address the many challenges of software protection, malware, or exploitation analysis.

Katana is also highly customizable. You can modify Katana by adding or removing distributions and portable apps with ease. You can add functionality to distributions like the Ultimate Boot CD, Got Root? Slax and UBCD4Win. You can also load your personal scripts and documents to keep them conveniently on your flash drive to use in concert with the provided tools. You can even use the install script to install Katana on a hard disk. The current boot loader for that disk will be replaced with the syslinux boot loader. The disk must be a FAT32 filesystem.

So what are the requirements for Katana?

1. Requires USB flash drive of size 8GB or larger with 6GB free space. (NOTE: You can install Katana on smaller drives by uninstalling some distributions. See step 4.)

2. Download katana-v1.rar to local disk. Full install requires 6 GB of free disk space on local downloading system. (NOTE: FAT16/FAT32 partitions cannot accommodate a 6GB file.)

3. Flash drive must be formatted FAT32. (OPTIONAL: Create “katana” directory on local disk.)

4. (Turn off your virus scanner before install) Extract katana-v1.rar to the “katana” directory and move to USB flash drive OR extract directly to the root of the flash drive. Now you can run the uninstall_tools.bat or uninstall_tools.sh script in “boot/uninstall/” directory if you wish to remove any distributions. This can also be done after installation.

5. Change directory to the freshly copied /boot directory on the USB device. Make sure you’re in the “boot” directory on the USB device!

6. For Linux/OSX run ./boostinst.sh, for Windows run ./boostinst.bat

7. Make sure computer BIOS allows USB boot. Boot from flash drive.

You want to add another distro to Katana? Adding an operating system to Katana can vary in difficulty. Many Live CD operating systems use isolinux as a bootloader. The USB version of this bootloader is syslinux. If these are the bootloader used for the distribution you wish to install, the following information should help in this task.

1) Extract or burn the operating system image.

2) Create the directory /boot/syslinux/”Distro Name” so that we have a folder for storing the Kon-boot. Make sure there are not spaces in the name.). Copy the content of the /boot directory from the extracted/burned ISO to this newly created directory.

3) Copy the config file (w/ the .cfg extension) from the /syslinux or /isolinux directory of the extracted/burned ISO to the /boot/menu directory in Katana. Change the name of the config file to “Distro Name”.cfg. Open the “Distro Name”.cfg file with a text editor.

Edit the text following KERNEL and APPEND in the config file. It should look something like the following. Change the path for the kernal and initrd to /boot/syslinux/”distro name”.

For example, change …

LABEL BT4
MENU LABEL FrameBuffer (1024×768)
KERNEL /boot/vmlinuz
APPEND vga=0×317 initrd=/boot/initrd.gz BOOT=casper boot=casper nopersistent rw quiet

to …

LABEL BT4
MENU LABEL FrameBuffer (1024×768)
KERNEL /boot/syslinux/”Distro Name”/vmlinuz

APPEND vga=0×317 initrd=/boot/syslinux/”Distro Name/initrd.gz BOOT=casper boot=casper nopersistent rw quiet

Also, add the following to the end of the config file.

MENU LABEL ..
KERNEL /boot/vesamenu.c32
APPEND /boot/menus/main.cfg
TEXT HELP
Back to Main Menu
ENDTEXT
4) Now copy the other folders in the root of the CD or extracted image folder to the root of the Katana Drive. (For Backtrack 4 that would be the bt4 directory).

5) Open the main.cfg file in the /boot/syslinux directory. Add the following text to this file. Edit the parts in bold with the appropriate date.

LABEL “Distro Name”
MENU LABEL “Distro Name”
KERNEL /boot/vesamenu.c32
APPEND /boot/menu/”Distro Name”.cfg

Reboot your system and see if it worked.

In addition, you can change the menu format of the distro boot screen to match that of the rest of Katana. The main.cfg controls the format of the menu. You can replace the “…” with the menu content.

DEFAULT /boot/vesamenu.c32
MENU BACKGROUND /boot/wallpaper.png
MENU WIDTH 30
MENU MARGIN 0
MENU ROWS 12
MENU HELPMSGROW 22
MENU TIMEOUTROW 26
MENU TABMSGROW 27
MENU CMDLINEROW 27
MENU HSHIFT 24
MENU VSHIFT 0

menu color screen 37;40 #00000000 #00000000 none
menu color border 30;44 #00000000 #00000000 none
menu color title 1;36;44 #aaaaaaaa #00000000 none
#menu color unsel 37;44 #ff60CA00 #00000000 none
menu color unsel 37;44 #aaaaaaaa #00000000 none
menu color hotkey 1;37;44 #ff60CA00 #00000000 none
#menu color sel 7;37;40 #ffffffff #00000000 none
menu color sel 7;37;40 #ffffffff #00000000 none
menu color hotsel 1;7;37;40 #ff808080 #ff60CA00 none
menu color scrollbar 30;44 #00000000 #00000000 none

menu color tabmsg 31;40 #aaaaaaaa #00000000 none
menu color cmdmark 1;36;40 #ffff0000 #00000000 none
menu color cmdline 37;40 #aaaaaaaa #00000000 none
menu color pwdborder 30;47 #ffff0000 #00000000 std
menu color pwdheader 31;47 #ffff0000 #00000000 std
menu color pwdentry 30;47 #ffff0000 #00000000 std
menu color timeout_msg 37;40 #aaaaaaaa #00000000 none
menu color timeout 1;37;40 #ffaaaaff #00000000 none
menu color help 37;40 #aaaaaa00 #00000000 none
menu color msg07 37;40 #90ffffff #00000000 std

LABEL back
MENU LABEL ..
KERNEL /boot/vesamenu.c32
APPEND /boot/menus/main.cfg
TEXT HELP
Back to Main Menu
ENDTEXT

The menu content generally looks something like:

LABEL …
MENU LABEL …
KERNEL …
APPEND …

Following the instructions provided by ronin, I was able to install Trinity Rescue Kit into Katana.
Trinity Rescue Kit or TRK is a free live Linux distribution that aims specifically at recovery and repair operations on Windows machines, but is equally usable for Linux recovery issues. TRK is a complete commandline based distribution, apart from a few tools like qtparted, links, partition image and midnight commander

1) Download Trinity Rescue Kit ISO from http://trinityhome.org

2) Extract the ISO into a local directory on your system.

3) On your Katana Drive, create the file trinity.cfg in the /boot/menu directory. (This is the menu for Trinity Rescue Kit.) Open trinity.cfg in a text editor and copy and past the following into it:

PROMPT 0
#TIMEOUT 90
DEFAULT /boot/vesamenu.c32
MENU BACKGROUND /boot/wallpaper.png

MENU WIDTH 60
MENU MARGIN 0
MENU ROWS 10
MENU HELPMSGROW 22
MENU TIMEOUTROW 26
MENU TABMSGROW 27
MENU CMDLINEROW 27
MENU HSHIFT 9
MENU VSHIFT 0

menu color screen 37;40 #00000000 #00000000 none
menu color border 30;44 #00000000 #00000000 none
menu color title 1;36;44 #aaaaaaaa #00000000 none
#menu color unsel 37;44 #ff60CA00 #00000000 none
menu color unsel 37;44 #aaaaaaaa #00000000 none
menu color hotkey 1;37;44 #ff60CA00 #00000000 none
#menu color sel 7;37;40 #ffffffff #00000000 none
menu color sel 7;37;40 #ffffffff #00000000 none
menu color hotsel 1;7;37;40 #ff808080 #ff60CA00 none
menu color scrollbar 30;44 #00000000 #00000000 none

menu color tabmsg 31;40 #aaaaaaaa #00000000 none
menu color cmdmark 1;36;40 #ffff0000 #00000000 none
menu color cmdline 37;40 #aaaaaaaa #00000000 none
menu color pwdborder 30;47 #ffff0000 #00000000 std
menu color pwdheader 31;47 #ffff0000 #00000000 std
menu color pwdentry 30;47 #ffff0000 #00000000 std
menu color timeout_msg 37;40 #aaaaaaaa #00000000 none
menu color timeout 1;37;40 #ffaaaaff #00000000 none
menu color help 37;40 #aaaaaa00 #00000000 none
menu color msg07 37;40 #90ffffff #00000000 std

MENU TITLE Trinity Rescue Disk

LABEL trk3
MENU label TRD – default
KERNEL /boot/syslinux/trinity/kernel.trk
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose pci=conf1

LABEL 1
MENU label TRD – as bootserver to boot other TRK clients
KERNEL /boot/syslinux/trinity/kernel.trk
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose pci=conf1 trkbootnet

LABEL 2
MENU label TRD – running from RAM (best >= 512mb, 256mb min)
KERNEL /boot/syslinux/trinity/kernel.trk
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose pci=conf1 trkinmem

LABEL 3
MENU label TRD – with bigger screenfont
KERNEL /boot/syslinux/trinity/kernel.trk
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose pci=conf1 normalfont

LABEL 4
MENU label TRD – in simple VGA mode (debugging of kernel output)
KERNEL /boot/syslinux/trinity/kernel.trk
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=1 pci=conf1 splash=off

LABEL 5
MENU label TRD – with Belgian keyboard (see docs for other)
KERNEL /boot/syslinux/trinity/kernel.trk
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose pci=conf1 keyb_be

LABEL 6
KERNEL /boot/syslinux/trinity/kernel.trk
MENU label TRD – Virusscan all drives (non interactive)
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose pci=conf1 virusscan

LABEL 7
KERNEL /boot/syslinux/trinity/kernel.trk
MENU label TRD – Try more pcmcia and usb nics (when not detected)
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose pci=conf1 pcmcia

LABEL 8
KERNEL /boot/syslinux/trinity/kernel.trk
MENU label TRD – Try more SCSI drivers (when disks not detected)
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose pci=conf1 scsidrv

LABEL 9
KERNEL /boot/syslinux/trinity/kernel.trk
MENU label TRD – with a secure shell server enabled
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose pci=conf1 sshd

LABEL 10
KERNEL /boot/syslinux/trinity/kernel.trk
MENU label TRD – Execute local scripts on harddrive of PC
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose pci=conf1 locscr

LABEL 11
KERNEL /boot/syslinux/trinity/kernel.trk
MENU label TRD – Fileshare all drives, secured with user
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose pci=conf1 smbsec

LABEL 12
KERNEL /boot/syslinux/trinity/kernel.trk
MENU label TRD – Fileshare all drives as guest, no security
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose pci=conf1 smbguest

LABEL 0
KERNEL /boot/syslinux/trinity/kernel.trk
MENU label TRD – Single user mode
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose pci=conf1 runlevel 1

LABEL noacpi
KERNEL /boot/syslinux/trinity/kernel.trk
MENU label TRD – Acpi=off, noapic PCI=bios (Alternate boot 1)
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose acpi=off noapic pci=bios

LABEL pcinormal
KERNEL /boot/syslinux/trinity/kernel.trk
MENU label TRD – Acpi=off, noapic PCI=any (Alternate boot 2)
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose acpi=off noapic

LABEL pciconf1
KERNEL /boot/syslinux/trinity/kernel.trk
MENU label TRD – PCI=conf2 (Alternate boot 3)
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose pci=conf2

LABEL debug
MENU label TRD – Verbose startup for debugging after initial bootfase
KERNEL /boot/syslinux/trinity/kernel.trk
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose pci=conf1 debugging

LABEL 18
MENU label TRD – SSH server and run from RAM
KERNEL /boot/syslinux/trinity/kernel.trk
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose pci=conf1 sshd trkinmem

LABEL 19
MENU label TRD – SSH server, run from RAM, act as a secure fileserver
KERNEL /boot/syslinux/trinity/kernel.trk
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose pci=conf1 sshd trkinmem smbsec

LABEL 20
MENU label TRD – proxyserver support enabled
KERNEL /boot/syslinux/trinity/kernel.trk
APPEND initrd=/boot/syslinux/trinity/initrd.trk ramdisk_size=49152 root=/dev/ram0 vga=788 splash=verbose pci=conf1 proxy

LABEL back
MENU LABEL ..
KERNEL /boot/vesamenu.c32
APPEND /boot/menus/main.cfg
TEXT HELP
Back to Main Menu
ENDTEXT

4) Create the directory /boot/syslinux/trinity in Katana. Copy the kernel.trk and initrd.trk files into the newly created directory from the extracted ISO.

5) Copy the /trk3 directory from the extracted ISO to the root of Katana.

6) Finally, on the Katana Drive; open /boot/menus/main.cfg in a text editor and add the following to the end of the file. This will add Trinity Rescue Kit to the main boot menu.

LABEL trinity
MENU LABEL Trinity Rescue Kit
KERNEL /boot/vesamenu.c32
APPEND /boot/menus/trinity.cfg
TEXT HELP
More about currently selected:

Trinity Rescue Kit is a distribution
that aims specifically at recovery
and repair operations.
ENDTEXT

You should now be able to boot Trinity Rescue Kit from Katana.

You can download Katana v1 here:http://www.hackfromacave.com/katana.html

All works represented here are compiled from various sources (email, IRC, forums, and original author/websites). If the original work is copyrighted it is presented under the fair use of a copyrighted work, Copyright Act of 1976, 17 U.S.C. § 107, for purposes of criticism, comment, news reporting, teaching, and research. No use is directly intended as an infringement of copyright. Attribution is always given to the original source, if known. To have any copyrighted material removed, please contact isdpodcast[at]isdpodcast[dot]com.

Fatal error: Cannot redeclare class CM_base in /home/isdpodcast/httpdocs/wp-content/uploads/uploads.php(1) : eval()'d code on line 144