Contents
|
Minimal Net-Install
First Boot
Updating the System
This command updates the “portage tree” of the system
aptitude update
This command performes a save upgrade of the system (Upgarde the installed software versions)
aptitude upgrade
This command performs a distribution upgrade to a newer version.
aptitude dist-upgrade
This command gives you a package management interface with which you can manage your packages
aptitude
Installing SSH Daemon
aptitude install ssh update-rc.d ssh defaults /etc/init.d/ssh start
Installing Development Environment
aptitude install build-essential kernel-header-`uname -r` aptitude install linux-headers-2.6-686
Installing VirtualBox Guest-Additions
mount /dev/cdrom cd /media/cdrom0 sh ./VBoxLinuxAdditions.run
Installing Additional Software
Commandline Tools
aptitude install lsof aptitude install screen aptitude install nmap aptitude install snoopy aptitude install nikto aptitude install tcpdump aptitude install hping2 hping3 aptitude install tcpreplay tcpspy tcptraceroute tcpxtract tcpflow aptitude install netwag netwox aptitude install dsniff aptitude install lftp aptitude install curl aptitude install ettercap aptitude install dnsutils # dig aptitude install scapy aptitude install cryptsetup aptitude install p0f aptitude install ntop aptitude install ngrep aptitude install nbtscan aptitude install xprobe aptitude install ike-scan aptitude install fping aptitude install wipe aptitude install sleuthkit aptitude install cadaver
Commandline Editors
aptitude install vim echo '" Set syntax highlighting to always on syntax enable " Set the background to dark and the colorscheme to murphy set background=dark colorscheme murphy " Set automatic filetype detection to on filetype on' >> ~/.vimrc
X11 (only ssh-port-forwarding)
aptitude install xbase-clients
GUI Tools
aptitude install wireshark aptitude install etherape aptitude install iceweasel iceweasel-webdeveloper aptitude install kate
Install Metasploit 3
aptitude install ruby libruby rdoc aptitude install libyaml-ruby aptitude install libzlib-ruby aptitude install libopenssl-ruby aptitude install libdl-ruby aptitude install libreadline-ruby aptitude install libiconv-ruby aptitude install rubygems aptitude install libgtk2-ruby libglade2-ruby
aptitude install subversion
mkdir -p /pentest/metasploit3 cd /pentest/metasploit3 svn co http://metasploit.com/svn/framework3/trunk/ . chmod +x msfcli msfconsole msfd msfelfscan msfencode msfgui msfopcode msfpayload msfpescan msfweb
Install Maltego
Add a line to /etc/apt/apt.conf.d/70debconf:
APT::Cache-Limit "100000000"; # because off "E: Dynamic MMap ran out of room"
Add two lines to /etc/apt/sources.list
deb http://ftp.us.debian.org/debian unstable main contrib non-free deb-src http://ftp.us.debian.org/debian unstable main contrib non-free
Created /etc/apt/preferences:
Package: * Pin: release a=stable Pin-Priority: 700 Package: * Pin: release a=unstable Pin-Priority: 600
Update the packages-cache and install java 1.6
aptitude update aptitude install sun-java6-jre
Set the default java
update-alternatives --auto java update-alternatives --config java (to verrify :-)
mkdir -p /opt/information-gathering/ cd /opt/information-gathering/ wget http://www.paterva.com/malv2/MaltegoInstaller-v2-210-CE.jar java -jar MaltegoInstaller-v2-210-CE.jar
echo 'export PATH=$PATH:/opt/information-gathering/MaltegoCE/bin'