Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2007 08:10:33 -0500
From:      Bill Moran <wmoran@collaborativefusion.com>
To:        linux quest <linuxquest7570@yahoo.com>
Cc:        FreeBSD-questions@freebsd.org
Subject:   Re: Nmap Scan from FreeBSD OS - Coding Question
Message-ID:  <20070109081033.07d51b9a.wmoran@collaborativefusion.com>
In-Reply-To: <20070109081748.27320.qmail@web59210.mail.re1.yahoo.com>
References:  <20070109081748.27320.qmail@web59210.mail.re1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In response to linux quest <linuxquest7570@yahoo.com>:

> I am currently doing a simple penetration testing for my company in a LAN
> environment. Yes, I have already downloaded NMap by using the 'make install'
> command... and it did fetched the required files from insecure.org
> successfully.
> 
> My question will be, how can I create a Network Program in .c that will
> invoke the nmap capabilities to scan the network or computers? Example,
> lets say, I want an automated nmap scan to run on FreeBSD to scan
> 192.168.1.10 and 192.168.1.11 , every morning at 10am - may I know how
> do I achieve that? I hope someone can show me a simple coding to invoke
> nmap scan, thanks :)

[Please wrap your lines around 72 chars or so]

It seems to me that C would be overkill for such a task.  You could easily
use cron + a shell/perl/python/etc script to get the task done.

-- 
Bill Moran
Collaborative Fusion Inc.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070109081033.07d51b9a.wmoran>