From e16ecf8ac74bb35e043d0416a08cad6b49fd8cba Mon Sep 17 00:00:00 2001 From: Deven Blake Date: Sun, 11 Apr 2021 19:06:20 -0400 Subject: [PATCH] nmap 7.8.0 installer --- dotfiles-old/scripts/nmap.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 dotfiles-old/scripts/nmap.sh diff --git a/dotfiles-old/scripts/nmap.sh b/dotfiles-old/scripts/nmap.sh new file mode 100644 index 0000000..200006f --- /dev/null +++ b/dotfiles-old/scripts/nmap.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +# builds and installs nmap 7.80 because the fucking pieces of shit that +# maintain nmap decided to make 7.90+ NONFREE. +# i do like nmap and i have nothing personal against the actual maintainers. +# but come ON. + +# anyway... + +set -e + +FILENAME="nmap-7.80.tar.bz2" +ORIGINAL_DIST_BZ2="https://nmap.org/dist/nmap-7.80.tar.bz2" +ARCHIVED_DIST_BZ2="http://web.archive.org/web/20200922062002/https://nmap.org/dist/nmap-7.80.tar.bz2" + +cd $HOME/src + +curl "$ORIGINAL_DIST_BZ2" >"$FILENAME" || curl "$ARCHIVED_DIST_BZ2" >"$FILENAME" + +bzip2 -cd <"$FILENAME" | tar -x + +# see, i could do complicated math to determine this based on the filename, or +# i could hard-code this and let it error if i've inexplicably grabbed +# nmap-7.8.1 + +cd "nmap-7.8.0" + +./configure +make +sudo make install