Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple script to install zenmap for Kali Linux
#!/bin/sh
# Simple script to install zenmap for Kali Linux
# Cody Huzarski
# vars
INSTALL_DIR=~/.zenmap-install
PKG_PYTHON_GTK2=python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
PKG_PYTHON_CAIRO=python-cairo_1.16.2-2ubuntu2_amd64.deb
PKG_PYTHON_PYGOBJECT=python-gobject-2_2.28.6-14ubuntu1_amd64.deb
PKG_ZENMAP=zenmap_7.70+dfsg1-6+deb10u2_all.deb
echo "Creating temp install directory: ${INSTALL_DIR}"
# get to temp directory
mkdir $INSTALL_DIR
cd $INSTALL_DIR
echo "Fetching packages"
# package files:
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/${PKG_PYTHON_GTK2}
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pycairo/${PKG_PYTHON_CAIRO}
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygobject-2/${PKG_PYTHON_PYGOBJECT}
wget http://http.us.debian.org/debian/pool/main/n/nmap/${PKG_ZENMAP}
echo "Installing with APT"
# Install
sudo apt install ./${PKG_PYTHON_CAIRO} ./${PKG_PYTHON_PYGOBJECT} ./${PKG_PYTHON_GTK2} ./${PKG_ZENMAP}
echo "Cleaning up.."
# cleanup
cd ..
rm -r ${INSTALL_DIR}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment