Nmap Development mailing list archives

Re: implementing nmap in python


From: "Guilherme Polo" <ggpolo () gmail com>
Date: Sun, 26 Aug 2007 17:09:54 -0300

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.

greetz
Julius

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



-- 
-- Guilherme H. Polo Goncalves

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


Current thread: