Skip to content

Instantly share code, notes, and snippets.

@TyrfingMjolnir
Forked from syzdek/mmap-build-TomSellers.sh
Last active January 30, 2018 20:54
Show Gist options
  • Save TyrfingMjolnir/e66165596d2bb6757f1cae057dbe2c9b to your computer and use it in GitHub Desktop.
Save TyrfingMjolnir/e66165596d2bb6757f1cae057dbe2c9b to your computer and use it in GitHub Desktop.
Simple build script to build TomSellers' nmap repository
#!/bin/bash
echo "building TomSellers's nmap..."
set -x -e
pwd
git clone https://github.com/TomSellers/nmap.git
( cd nmap && git branch build 7c833b933e771923e660 && checkout build )
( cd nmap && ./configure --prefix=/opt/nmap )
( cd nmap/libdnet-stripped && make )
( cd nmap/liblinear && make )
( cd nmap/liblua && make linux LDFLAGS='-lncurses' )
( cd nmap/libnetutil && make )
( cd nmap/libpcap && ./configure --prefix=/opt/nmap && make )
( cd nmap/libpcre && ./configure --prefix=/opt/nmap && make )
( cd nmap/libssh2 && make )
( cd nmap/nbase && make )
( cd nmap && make -j 4 )
cat << EOF
Build has finished. To install run:
( cd nmap && sudo make install )
EOF
# end of script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment