From owner-freebsd-questions@FreeBSD.ORG Tue Jan 9 08:17:49 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 18EDC16A407 for ; Tue, 9 Jan 2007 08:17:49 +0000 (UTC) (envelope-from linuxquest7570@yahoo.com) Received: from web59210.mail.re1.yahoo.com (web59210.mail.re1.yahoo.com [66.196.101.36]) by mx1.freebsd.org (Postfix) with SMTP id BEF1013C45A for ; Tue, 9 Jan 2007 08:17:48 +0000 (UTC) (envelope-from linuxquest7570@yahoo.com) Received: (qmail 27322 invoked by uid 60001); 9 Jan 2007 08:17:48 -0000 Message-ID: <20070109081748.27320.qmail@web59210.mail.re1.yahoo.com> DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=sf+TI0+JaM6HTdLdsvlSvUJX59B5ekEjbdivZDaXwhKPhoGrMeyns8zouUm/yirDn15OISvgJZJnIbD8wSpxVIrln959iOhaMlNB1NcI/WP9p9Mmu0hMS5st006DQAXpTm7D8Kr7dq7LdBPedgEcvZfc21hUJbAXTppI374kD1Q=; X-YMail-OSG: urLGLZMVM1kfmxNMJj8UMU0DNalrdY4cYLt.vjvSZ4m1Ku.JP8oMcBrHv7UVxCPV4SGGVQhgK38NBDN5xJHayc3GRgJNFjjMUXfLNGTfykfnrVAkCeHJhsHZ4u5HV6U51Fo.C.x4gAYBPZ_6lVaWtPv_HR2yCbtfW1cgmOyrKZHH Received: from [219.95.201.42] by web59210.mail.re1.yahoo.com via HTTP; Tue, 09 Jan 2007 00:17:47 PST Date: Tue, 9 Jan 2007 00:17:47 -0800 (PST) From: linux quest To: FreeBSD-questions@freebsd.org MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 09 Jan 2007 12:40:59 +0000 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: 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 08:17:49 -0000 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 :) Thanks :) Regards, Linux Quest __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com