Add features to install on Kali.

This commit is contained in:
David Tomaschik
2015-10-04 17:13:41 -07:00
parent 9cb9d60fe6
commit 59c51ca93e
5 changed files with 41 additions and 3 deletions

View File

@@ -19,6 +19,10 @@ else
HAVE_X=0 HAVE_X=0
fi fi
IS_KALI=`grep -ci kali /etc/os-release 2>/dev/null`
ARCH=`uname -m`
function prerequisites { function prerequisites {
# Prerequisites require git # Prerequisites require git
if ! which git > /dev/null ; then if ! which git > /dev/null ; then
@@ -159,12 +163,30 @@ function run_as_root {
return 1 return 1
} }
function install_pkg_set {
if [[ ! -f ${1} ]] ; then return 0 ; fi
run_as_root apt-get install -y `cat ${BASEDIR}/${1}`
}
function install_apt_pkgs { function install_apt_pkgs {
run_as_root apt-get update || \ run_as_root apt-get update || \
( echo "Can't run apt-get commands" >&2 && \ ( echo "Can't run apt-get commands" >&2 && \
return 1 ) return 1 )
run_as_root apt-get -y install `cat ${BASEDIR}/packages` install_pkg_set packages
(( $HAVE_X )) && run_as_root apt-get -y install `cat ${BASEDIR}/packages.X` (( $HAVE_X )) && install_pkg_set packages.X
(( $IS_KALI )) && install_pkg_set packages.kali
install_pkg_set packages.${ARCH}
(( $HAVE_X )) && install_chrome
}
function install_chrome {
local TMPD=`mktemp -d`
local CHROME_ARCH=`echo ${ARCH} | sed 's/x86_64/amd64/'`
/usr/bin/wget --quiet -O ${TMPD}/google-chrome.deb \
https://dl.google.com/linux/direct/google-chrome-beta_current_${CHROME_ARCH}.deb
run_as_root /usr/bin/dpkg -i ${TMPD}/google-chrome.deb || \
run_as_root /usr/bin/apt-get install -f -y || \
( echo "Could not install chrome." >&2 && return 1 )
} }

View File

@@ -4,6 +4,7 @@ cryptsetup
curl curl
dnsutils dnsutils
dsniff dsniff
ecryptfs-utils
gdb gdb
git git
gnupg2 gnupg2
@@ -11,15 +12,22 @@ gnupg-agent
gnupg-curl gnupg-curl
iftop iftop
iptraf iptraf
kpartx
ldap-utils
ltrace ltrace
lvm2 lvm2
ngrep ngrep
nmap nmap
opensc opensc
openvpn
p7zip-full p7zip-full
python-crypto python-crypto
python-dev python-dev
python-hachoir-urwid
python-imaging
python-pip python-pip
python-pypdf
python-yara
radare2 radare2
scapy scapy
scdaemon scdaemon
@@ -32,3 +40,4 @@ tshark
ufw ufw
vim vim
whois whois
zsh

View File

@@ -1,4 +1,8 @@
audacity
cinnamon
fonts-inconsolata fonts-inconsolata
wireshark gimp
keepassx keepassx
network-manager-openvpn-gnome
vim-gtk vim-gtk
wireshark

1
packages.kali Normal file
View File

@@ -0,0 +1 @@
volatility

2
packages.x86_64 Normal file
View File

@@ -0,0 +1,2 @@
gcc-multilib
g++-multilib