Re: Collecting IP range
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Collecting IP range

From: Heiko Wundram <modelnine@bit-bukket.org>
Date: Tue Jan 31 2006 - 10:23:01 CET

yawgmoth7 wrote:
> Well, since range() won't take a normal IP(Such as 127.0.0.1). and,
> you can't take it as 127001(Since socket.connect() won't take that).
> What would you suggest as a better way to approach this?

Use a recipe for that. Have a look at:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/466286
and
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/466298

--- Heiko Wundram.
Received on Tue Feb 7 20:19:25 2006