Created
July 22, 2021 18:36
-
-
Save chuzarski/3a72f68413b62c477a197d0798a4b857 to your computer and use it in GitHub Desktop.
Simple script to install zenmap for Kali Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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