Skip to content

Instantly share code, notes, and snippets.

@mubix
Created August 24, 2013 02:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mubix/6325723 to your computer and use it in GitHub Desktop.
Save mubix/6325723 to your computer and use it in GitHub Desktop.
Attackbox Build
#!/bin/bash
#Latest
apt-get update && apt-get upgrade -y
#Install Dependencies
aptitude -y install build-essential libssl-dev zlib1g zlib1g-dev git git-core subversion screen bison flex jam exuberant-ctags libreadline-dev libxml2-dev libxslt-dev libpcap-dev libmysqlclient-dev libpq-dev libsqlite3-dev autoconf python-software-properties libtool
# HFS+ and SSH File systems Support (Uncomment if you need them)
# aptitude -y install hfsplus hfsprogs hfsutils sshfs
# Tools
aptitude -y install cadaver smbclient smbfs nfs-common curl git git-core subversion libnet-ssleay-perl mysql-client lsof iptstate upx ldap-utils rar
#Install Java
ORIGDIR=`pwd`
git clone https://github.com/flexiondotorg/oab-java6.git
cd oab-java6
./oab-java.sh
apt-get install sun-java6-plugin sun-java6-jre sun-java6-bin sun-java6-jdk
cd $ORIGDIR
# Install Nikto
git clone https://github.com/sullo/nikto /opt/nikto
#Hash-ID from http://code.google.com/p/hash-identifier/
# svn co http://hash-identifier.googlecode.com/svn/trunk/ /opt/hash-id
#SET
svn co http://svn.secmaniac.com/social_engineering_toolkit /opt/set/
# Padbuster w/ Auto script
git clone https://github.com/gw0/PadBuster.git /opt/padbuster
# Install SQLMap
git clone https://github.com/sqlmapproject/sqlmap.git /opt/sqlmap
#Nmap
ORIGDIR=`pwd`
svn co https://svn.nmap.org/nmap /opt/nmap-install
cd /opt/nmap-install
./configure
make all
make install all
cd $ORIGDIR
# Install RVM
curl -L https://get.rvm.io | sudo bash -s stable
# Enable Tab Completion in RVM
echo [[ -r /usr/local/rvm//scripts/completion ]] && source /usr/local/rvm/scripts/completion >> ~/.bashrc
#Add root user to the rvm group (you should do this for any user you want using RVM
usermod -a -G rvm root
# Put the following in ~/.gemrc so that you don’t have to specify it every time.
# gem: --no-ri --no-rdoc
# Load RVM into current shell
source /etc/profile.d/rvm.sh
echo source /etc/profile.d/rvm.sh >> ~/.bashrc
rvm install 1.9.3
rvm 1.9.3 --default
rvm all do gem install --no-rdoc --no-ri wirble pry pg nokogiri mysql sdoc msgpack hpricot sqlite3 ronin
#Install Metasploit
git clone https://github.com/rapid7/metasploit-framework.git /opt/framework
# Hack Armoury
svn co svn://hackarmoury.com/live /opt/hackarmoury
### Postgres for MSF
#Install PostgreSQL server
apt-get -y install postgresql
# su - postgres
# createuser msf -P -S -R -D
# createdb -O msf msf
# put this in ~/.msf4/database.yml
# production:
# adapter: postgresql
# database: msf
# username: msf
# password:
# host: 127.0.0.1
# port: 5432
# pool: 75
# timeout: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment