![]() |
How easy (or hard) would this be to code?
I guess in php.
The program grabs ips from a text file and does this: 12.108.24.0 12.108.24.255 12.106.223.0 12.106.223.255 12.104.79.0 12.104.79.255 etc. It makes a range from 0 to 255 for each ip on a new line. Is this simple to do? Anybody can do it for some paypal or epass $? |
icq me
8char |
Don't pay for that. It's a 2 minute job for any competent programmer.
|
Done, thanks
|
Quote:
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. |
Quote:
|
Perl is sexy.
|
Here's my Ruby version, just for the hell of it ;)
Code:
IO.foreach('ips.txt') do |line| |
You ever get that software written?
|
Got bored so I threw one together.
It loads a source file, removes any duplicates, verifies that each entry is only numbers and periods, then generates a new list based upon the range you supply. Will require VB dependencies MSVBVM60.DLL and COMDLG32.OCX which most of you probably have already anyhow. http://www.dynamixxx.com/complete/software/ipRange.exe http://www.dynamixxx.com/complete/software/ipRange.gif |
Quote:
|
Oh wow, thanks.
|
Scrap that. Wasn't clear on what he wanted.
|
Quote:
|
| All times are GMT -7. The time now is 02:14 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123