#!/bin/sh # # By Kris Katterjohn 1/19/2007 # # Download Nmap's data files from insecure.org # # Usage: nmap_update # # If the directory is omitted, the current working directory is used # # $FILELIST is the list of all the files to update FILELIST="nmap-mac-prefixes nmap-os-db nmap-os-fingerprints nmap-protocols nmap-rpc nmap-services nmap-service-probes" echo Updating Nmap data files if [ "$1" != "" ]; then DESTDIR="$1" else DESTDIR="." fi for file in $FILELIST; do wget -q -P $DESTDIR http://insecure.org/nmap/data/$file done