mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Add features to install on Kali.
This commit is contained in:
26
install.sh
26
install.sh
@@ -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 )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
9
packages
9
packages
@@ -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
|
||||||
|
|||||||
@@ -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
1
packages.kali
Normal file
@@ -0,0 +1 @@
|
|||||||
|
volatility
|
||||||
2
packages.x86_64
Normal file
2
packages.x86_64
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
gcc-multilib
|
||||||
|
g++-multilib
|
||||||
Reference in New Issue
Block a user