Links To Free Tools
 |
Foundstone. Provides the best tools I found so far to interprete Microsoft Windows' Internet Explorer index.dat (with Pasco) and cookie files (with Galleta), and many more... Sources can be downloaded from the ODESSA project (the open digital evidence search and seizure architecture) which can be found at http://sourceforge.net/projects/odessa/ |
|

|
Useful Helper Programs And Tools
- # the most useful and userfriendly introductory to unix commands, both for beginners and advanced users can be found at http://linux.about.com/?once=true&
- # flip can be used to convert text files in the current directory and below from unix format (linefeed, 0x0a, LF) to windows format (carriage return + linefeed, 0x0d0a, CRLF):
find . -type f -exec flip -d {} \;
- # flip can be used to convert text files in the current directory and below from windows format (carriage return + linefeed, 0x0d0a, CRLF) to unix format (linefeed, 0x0a, LF):
find . -type f -exec flip -u {} \;
- # clean up an html page:
tidy
- # reformat paragraphs in a text file:
par
- # reformat a text file:
fmt
- # what the fuck decodes acronyms:
wtf wtf; wtf afaik
- # one-line information on many commands and programs:
whatis whatis
- # more extensive information on a particular commands or item:
man whatis
- # helpful information on built-in commands of the current shell (most probably bash):
help help
- # fun with ascii art:
for a in /usr/share/cowsay/cows/*cow;do fortune -s|cowsay -f $a;done|less
- # And -- the auto nice daemon: automatically renices cpu-demanding processes
sudo apt-get install and
- # Dictionary lookup:
dict term
- # Fortune cookies matching a specific pattern:
fortune -i -m pattern
- # Gnome-based hex editor
ghex2
- # List information on all open files that belong to all active processes, the status of the modules currently available to the kernel, a quick overview (interrupts, ioports, dma) on the currently installed hardware, the currently installed pci devices, and the currently active usb devices:
lsof; lsmod; lsdev; lspci; lsusb
- # Network load overview:
netload eth0 -t 5
- # finding out which type of machine you are working on:
uname -a
- # finding out some interesting information on a particular host or machine:
nslookup -querytype=any hostname.domain.org
whois --verbose ipaddress
host -a hostname.domain.org nameserver.org
- the following link provides very useful information on various frequently used unix commands: introduction to various unix tools
|

|
image Processing Tips
- # create a nice webpage with all your thumbnails:
webmagick --recurse --forcehtml --forcemontage --srcdir ~/pictures --columns 4
- # from tiff to eps (useful to include, e.g., a powerpoint slide in a LaTeX document):
convert slide.tiff slide.eps
|

|
Tips To Manipulate Jar Files
- # unjar all jar files found in $JARFILES into $CLASSES:
export CLASSES=~/unjarred;
export JARFILES=.;
mkdir -p $CLASSES;
cd $CLASSES;
find $JARFILES -name \*jar -exec jar -xf {} \;
- # recursive decompilation of all class files in $CLASSES, storing their decompiled version in $DECOMPILED:
export CLASSES=~/unjarred;
export DECOMPILED=~/decompiled;
cd $CLASSES;
mkdir -p $DECOMPILED;
find -name \*class -exec jad -b -dead -o -s java -safe -ff -lnc -r -d $DECOMPILED {} \;
|

|
Tips To Repair A Broken Master Boot Record Or Lilo Configuration File
- # running lilo on a machine on which the lilo.conf or (master) boot record have become inconsitent or have been overwritten:
- # boot from the Knoppix cd and open a terminal window
- # specify on which partition your crippled /etc/lilo.conf can be found, and mount it:
export PARTIT=/hda7
sudo mount /dev/$PARTIT /mnt/$PARTIT
- # copy the crippled file to a writeable location:
sudo cp /mnt/$PARTIT/etc/lilo.conf ~/
- # edit the erroneous lilo.conf to fix the problem:
sudo joe ~/lilo.conf
- # make sure to change each occurrence of `=/boot` to `=/mnt/hda7/boot` (given that your unix operating system is stored on /dev/hda7)
- # execute lilo:
sudo ln -sf /mnt/$PARTIT/boot/ /
sudo lilo -C ~/lilo.conf
- # reboot the machine without the Knoppix cd
sudo shutdown -r now
- # remember to repair the lilo.conf again once your machine boots again...
|

|
Tips For Nfs

|
Tips To Mount Your ntfs Read/write
- # with the following command you prepare your knoppix 3.4 (and higher) machine to mount an NTFS partition readwrite. This command has to be executed only once:
sudo captive-install-acquire
- Press the ``forward'' button twice to start scanning your harddisk for native ntfs drivers. After a few minutes, the program may crash (i.e., the program crashes on my machine), but this does not seem to have an impact at all...
- # once captive-install-acquire has finished, you can prepare the /etc/fstab to include a specific item for your ntfs partition in rw mode:
sudo captive-install-fstab -v --add
- # you can now mount the partition in readwrite mode with:
sudo mount /mnt/captive-noname
|

|
Tips To Set Up An OSGi Framework
- # download the excellent and open-source OSGi gateway framework of http://www.knopflerfish.org/index.html, and store it in /tmp:
cd /tmp
wget http://www.knopflerfish.org/releases/1.0.2/knopflerfish_osgi_1.0.2.jar
export KNOPFLERFISH_BIN=/tmp/knopflerfish_osgi_1.0.2.jar
- # specify where the installation should go:
export KNOPFLERFISH=~/osgi
mkdir -p $KNOPFLERFISH
- # launch the installation program:
cd $KNOPFLERFISH;java -jar $KNOPFLERFISH_BIN -batch
- # running the framework:
cd $KNOPFLERFISH/knopflerfish_osgi_1.0.2/knopflerfish.org/osgi;java -jar framework.jar
|

|
Tips To Manage Your Partitions
- # GRUB mini HowTo, boot loader which is even more powerfull than lilo
- # enumerate all the partitions which are currently known to /proc/partitions:
fdisk -l
- # add ext3 journalling information to some ext2 partition:
tune2fs -j /dev/hda2
- # remove ext3 journalling information from an ext3 partition other than the root partition (have a look at http://www.troubleshooters.com/linux/ext2toext3.htm if you wish to remove ext3 journalling data from the root device):
tune2fs -O ^has_journal /dev/hda2;e2fsck /dev/hda2
- # creating a large vfat partition on your unix box:
mkfs.vfat -F 32 /dev/hda8
- # undelete a file on a vfat partition:
dosfsck -r -u path/file /dev/hdaXX
|

|
Tips For Ramdisk
- # Ramdisk creation:
- # determine the number of megabytes of the ramdisk, its location and its mount point:
export RAMDISKSIZE=128000
export RAMDISK=/dev/ram
export RAMMOUNTPOINT=/mnt/ram |
- # create the ramdisk (using dd makes sure it does not have holes):
sudo dd if=/dev/zero of=$RAMDISK bs=1k count=$RAMDISKSIZE |
- # initialize the ramdisk with a filesystem:
sudo mke2fs -vm0 $RAMDISK $RAMDISKSIZE |
- # activate the new ramdisk:
sudo mkdir -p $RAMMOUNTPOINT
sudo mount $RAMDISK $RAMMOUNTPOINT |
- # change the ramdisk permissions:
sudo chmod a+rwx /mnt/ram |
- # Swap file creation:
- # determine the number of megabytes of the swapfile and its location (make sure to specify a target location with enough free space to accomodate the swap file!! Creating a swap file on the root filesystem is not recommended...):
export SWAPSIZE=512
export SWAPFILE=/var/run/swapfile.$SWAPSIZE |
- # create the swap file (using dd makes sure the swap file does not have holes):
sudo dd if=/dev/zero of=$SWAPFILE bs=1M count=$SWAPSIZE && sync && sync |
- # initialize the swap file:
- # check the current swap settings:
- # activate the new swap space:
- # compare the new swap settings with the previous ones:
- # if you wish to use this swap file permanently, you should add it to the /etc/fstab:
echo $SWAPFILE swap swap default 0 0|sudo bash -c "cat >> /etc/fstab" |
|

|
Tips For System Recovery
- # bootdisk: provides various boot disks and utilities for both unix and windows system recovery and maintenance
- # Mounting disks with Linux' loopback device, e.g.. mounting the first partition found in a raw disk dump $Dump:
- # assume $Dump points at the hard disk dump (this dump may have been obtained using a command like `dd if=/dev/hda of=$Dump conv=noerror`):
export Dump=/tmp/dump.img
- # have a look at the partition table:
sudo fdisk -u -l $Dump
- # compute the partition offset of the desired partition:
export StartSector=63 # fdisk shows the start sector for each partition it finds
export BytesPerSector=512 # fdisk reports this as the unit size (in bytes)
export Offset=$[$StartSector*$BytesPerSector]
- # mount the partition (e.g., assuming fdisk reported an ntfs or vfat partition, have a look at `cat /proc/filesystems` to know which filesystems your kernel recognizes, and extend the list of partition types to try accordingly):
export MountPoint=/tmp/dump
sudo mkdir -p $MountPoint
for PartitionType in ntfs vfat;do
sudo mount -o loop,ro,offset=$Offset -t $PartitionType $Dump $MountPoint;
done
sudo ls -aRl $MountPoint
- # shell script to create a lilo boot floppy
- # IBM's excellent system recovery page
- # An entry point to *a lot* `how do I...?'-items can be found at http://www.williamaford.com
|

|
Tips To Mirror Web Pages
- # recursively fetching all links referred to in a url without including the url's `upper' links and retrieving only files if they are newer than the local version:
wget -r -N --retr-symlinks -np http://url
- # recursively fetching all links referred to in a url without including the url's `upper' links:
wget -r -np http://url
|

|
Wiping Data
 |
wipe, a unix tool for secure data deletion |
|

|
Tips For X11
- # usb mouse troubleshooting: It may happen that the automatically generated file /etc/X11/XF86Config-4 does not include correct settings for your usb mouse. If the command
cat /dev/input/mice|hexdump|timeout 30 head -5 |
outputs some data in hexadecimal format when moving your usb mouse, you may try to configure the mouse-specific sections of /etc/X11/XF86Config-4 by hand, e.g., given the following:
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
# PS/2 Mouse not detected
# Serial Mouse not detected
InputDevice "USB Mouse" "CorePointer"
EndSection
Section "InputDevice"
Identifier "USB Mouse"
Driver "mouse"
Option "Device" "/dev/input/mice"
Option "SendCoreEvents" "true"
Option "Protocol" "IMPS/2"
Option "ZAxisMapping" "4 5"
Option "Buttons" "5"
EndSection
- # nice X11 configuration tool for Knoppix:
- # nice /etc/X11/XF86Config generation tool used by Knoppix:
- # if you wish to specify an additional X display which can be accessed through ctrl+alt+8, you could add the following line to /etc/X11/xdm/Xservers:
:1 local /usr/X11R6/bin/X vt8 -dpi 100 -nolisten tcp |
- # installing the xv.rpm:
- # fetch and unpack the rpm:
- # install the stuff:
sudo alien /tmp/xv-3.10a-13.i386.rpm |
- # you could also give it a try compiling and installing xv yourself:
- # fetch and unpack the sources:
- # read the README and INSTALL files, and pay the registration fee of 25 dollar
- # replace 'extern char *sys_errlist[]; /* this too... */' by 'extern __const char *__const sys_errlist[];':
cat xv.h|sed s/"extern char \*sys_errlist\[\]; \/\* this too... \*\/"/"extern __const char \*__const sys_errlist\[\];"/ > xv.h.tmp;
mv xv.h.tmp xv.h |
- # make sure that the X11 libraries are found:
cat Makefile|sed s/"LIBS = -lX11 \$(JPEGLIB) \$(TIFFLIB) -lm"/"LIBS = -L\/usr\/X11R6\/lib -lX11 \$(JPEGLIB) \$(TIFFLIB) -lm"/ > Makefile.tmp
mv Makefile.tmp Makefile |
- # execute the make file and install the stuff if successful:
if make;then
sudo mkdir -p /usr/local/man/man1;
sudo make install;
fi |
|

|