This commit is contained in:
David Tomaschik
2018-01-26 09:27:01 -08:00
3 changed files with 40 additions and 31 deletions

View File

@@ -212,7 +212,7 @@ function install_pkg_set {
local pkg_file=${BASEDIR}/${1} local pkg_file=${BASEDIR}/${1}
local pkg_list="" local pkg_list=""
if [[ ! -f ${pkg_file} ]] ; then return 0 ; fi if [[ ! -f ${pkg_file} ]] ; then return 0 ; fi
cat ${pkg_file} | while read line ; do while read line ; do
if [[ ${line:0:1} == '#' ]] ; then if [[ ${line:0:1} == '#' ]] ; then
continue continue
fi fi
@@ -224,15 +224,21 @@ function install_pkg_set {
else else
echo "Warning: package ${line} not found." >&2 echo "Warning: package ${line} not found." >&2
fi fi
done done < ${pkg_file}
run_as_root apt-get install -qqy ${pkg_list} if [ -n "${pkg_list}" ] ; then
verbose "Installing ${pkg_list}"
run_as_root apt-get install -qqy ${pkg_list}
fi
} }
function install_apt_pkgs { function install_apt_pkgs {
run_as_root apt-get update -qq || \ run_as_root apt-get update -qq || \
( echo "Can't run apt-get commands" >&2 && \ ( echo "Can't run apt-get commands" >&2 && \
return 1 ) return 1 )
install_pkg_set packages install_pkg_set packages.minimal
if (( $MINIMAL )) ; then
return 0
fi
(( $HAVE_X )) && install_pkg_set packages.X (( $HAVE_X )) && install_pkg_set packages.X
(( $IS_KALI )) && install_pkg_set packages.kali (( $IS_KALI )) && install_pkg_set packages.kali
install_pkg_set packages.${ARCH} install_pkg_set packages.${ARCH}
@@ -346,7 +352,11 @@ case $OPERATION in
install_main install_main
;; ;;
package*) package*)
install_pkg_set packages.${2} if [ ${2:-default} != default ] ; then
install_pkg_set packages.${2}
else
install_pkg_set packages
fi
;; ;;
pwndbg) pwndbg)
install_pwndbg install_pwndbg

View File

@@ -1,15 +1,7 @@
ack-grep
build-essential build-essential
cryptsetup cryptsetup
curl
dnsutils
dsniff dsniff
ecryptfs-utils ecryptfs-utils
gdb
git
git-crypt
gnupg2
gnupg-agent
gnupg-curl gnupg-curl
iftop iftop
iptraf iptraf
@@ -18,39 +10,24 @@ ipython3
jq jq
kpartx kpartx
ldap-utils ldap-utils
ltrace
lvm2 lvm2
mosh
ngrep
nmap
opensc opensc
openvpn openvpn
p7zip-full p7zip-full
python3
python3-pip
python3-virtualenv
python-crypto python-crypto
python-dev python-dev
python-hachoir-urwid python-hachoir-urwid
python-html5lib python-html5lib
python-imaging python-imaging
python-pip python-pip
python-pypdf
python-scapy python-scapy
python-virtualenv python-virtualenv
python-yara python-yara
python3
python3-pip
python3-virtualenv
radare2 radare2
scapy scapy
scdaemon scdaemon
sqlite3 sqlite3
strace
tcpdump
tmux
traceroute
tshark
ufw ufw
unzip
vim
virtualenvwrapper
whois
zsh

22
packages.minimal Normal file
View File

@@ -0,0 +1,22 @@
ack-grep
curl
dnsutils
gdb
git
git-crypt
gnupg2
gnupg-agent
ltrace
mosh
ngrep
nmap
strace
tcpdump
tmux
traceroute
tshark
unzip
vim
virtualenvwrapper
whois
zsh