Nmap Development mailing list archives

Re: implementing nmap in python


From: Giorgio Zoppi <giorgio.zoppi () gmail com>
Date: Tue, 28 Aug 2007 16:01:46 +0200

On Sun, 2007-08-26 at 17:09 -0300, Guilherme Polo wrote:
2007/8/26, Julius Kuhn <julikr678 () gmail com>:
Hello!

I am currently working on a python program. I mean its basically a shell and
im trying to use nmap to portscan a host. I just wanted to know if there is
an easy way to implement it other then os.system etc.

Don't use os.system, use subprocess.

otherwise i would have
to write my own portscanner. Thanks ..


I don't believe this reason you are pointing is good enough to make a
new portscanner.
If you wish to do something like import nmap; nmap.scan(something) and
etc, you will need to create a set of nmap bindings for Python, and
that will be easier than creating a new portscanner that equals to
nmap.
In order to do something similar, it will be useful a libnmap written in
C, so still your gui it will avoid to start on more process to scan
hosts.

Cheers,
Giorgio.



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


Current thread: