View Single Post
Old 04-21-2005, 08:19 PM  
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
Quote:
Originally Posted by darnoth
#!/usr/bin/perl

use strict ;

open (FILE, "NAMEOFFILE") ;
my @buf = <FILE> ;
close (FILE) ;

foreach my $item (@buf) {
chomp $item ;
my ($one,$two,$three) = split (/\./, $item) ;
for my $i (0 .. 255) {
print "$one.$two.$three.$i\n" ;
}
}

Change NAMEOFFILE to whatever the file is that has your IP's listed.
IP's should be in the form of:
1.1.1.1
2.2.2.2
3.3.3.3

Etc. If you have a question let me know.
Thanks a lot. Sicchild is making one for me though.
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote