From owner-freebsd-questions@FreeBSD.ORG Tue Jan 9 13:10:35 2007 Return-Path: X-Original-To: FreeBSD-questions@freebsd.org Delivered-To: FreeBSD-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4793616A492 for ; Tue, 9 Jan 2007 13:10:35 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.freebsd.org (Postfix) with ESMTP id EBC1B13C467 for ; Tue, 9 Jan 2007 13:10:34 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from vanquish.pgh.priv.collaborativefusion.com (vanquish.pgh.priv.collaborativefusion.com [192.168.2.61]) (SSL: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Tue, 09 Jan 2007 08:10:34 -0500 id 000564EC.45A3944A.00011378 Date: Tue, 9 Jan 2007 08:10:33 -0500 From: Bill Moran To: linux quest 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> Organization: Collaborative Fusion X-Mailer: Sylpheed 2.3.0 (GTK+ 2.10.6; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD-questions@freebsd.org Subject: Re: Nmap Scan from FreeBSD OS - Coding Question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 13:10:35 -0000 In response to linux quest : > 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.