Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



Nmap Development: Re: Feature Request: --update (with script attached)

Re: Feature Request: --update (with script attached)

From: Kris Katterjohn <katterjohn_at_gmail.com>
Date: Fri, 19 Jan 2007 11:52:44 -0600

Andreas Ericsson wrote:
>
> pciutils have a similar functionality, but implemented as a separate
> script. I can't help but feel that this would be much better than
> adding some ftp/http/whatnot capabilities to the nmap core.
>

I attached a script that updates the data files to the directory you
choose (or cwd). By coincidence, I wrote that Packet Storm script for
their /backend section exactly 2 months ago today :)

Hope y'all like it.

-Kris

#!/bin/sh
#
# By Kris Katterjohn 1/19/2007
#
# Download Nmap's data files from insecure.org
#
# Usage: nmap_update <destination dir>
#
# 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 -r -O $DESTDIR/$file http://insecure.org/nmap/data/$file
done

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
Received on Jan 19 2007

[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]