Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-21-2005, 08:05 PM   #1
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
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 $?
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2005, 08:10 PM   #2
SicChild
Confirmed User
 
Join Date: Mar 2003
Posts: 365
icq me

8char
SicChild is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2005, 08:13 PM   #3
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
Don't pay for that. It's a 2 minute job for any competent programmer.
__________________
I like pie.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2005, 08:14 PM   #4
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
Done, thanks
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2005, 08:17 PM   #5
darnoth
Confirmed User
 
Join Date: Jan 2005
Posts: 105
Quote:
Originally Posted by Franck
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 $?
#!/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.
darnoth is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2005, 08:19 PM   #6
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
Old 04-21-2005, 08:21 PM   #7
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
Perl is sexy.
__________________
I like pie.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-28-2005, 01:28 AM   #8
INDK
Confirmed User
 
Join Date: Jan 2004
Location: Edmonton, Alberta
Posts: 75
Here's my Ruby version, just for the hell of it ;)

Code:
IO.foreach('ips.txt') do |line|
   match = line.sub(/^(\d+\.\d+\.\d+)\.\d+$/, '\1').chomp
   for i in 0..255
      print match, ".#{i}\n"
   end
end
INDK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-28-2005, 02:01 AM   #9
Dynamix
G F Y not
 
Industry Role:
Join Date: Jan 2004
Location: MN
Posts: 2,910
You ever get that software written?
__________________

TGPFactory Full TGP Design & Installation Services
ICQ 250 142 484 · AIM TGPDynamix · Email: patrick (at) tgpfactory (dot) com
See who I am at AdultWhosWho.com!
Dynamix is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-28-2005, 02:32 AM   #10
Dynamix
G F Y not
 
Industry Role:
Join Date: Jan 2004
Location: MN
Posts: 2,910
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

__________________

TGPFactory Full TGP Design & Installation Services
ICQ 250 142 484 · AIM TGPDynamix · Email: patrick (at) tgpfactory (dot) com
See who I am at AdultWhosWho.com!
Dynamix is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2005, 03:47 AM   #11
$5 submissions
I help you SUCCEED
 
$5 submissions's Avatar
 
Industry Role:
Join Date: Nov 2003
Location: The Pearl of the Orient Seas
Posts: 32,195
Quote:
Originally Posted by Dynamix
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

Hmmm nice!
$5 submissions is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2005, 04:11 AM   #12
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
Oh wow, thanks.
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2005, 06:46 AM   #13
Dragon Curve
Confirmed User
 
Join Date: Oct 2002
Posts: 252
Scrap that. Wasn't clear on what he wanted.

Last edited by Dragon Curve; 04-29-2005 at 06:48 AM..
Dragon Curve is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2005, 06:48 AM   #14
Dalai lama
Strength and Honor
 
Join Date: Jul 2004
Location: Europe
Posts: 16,540
Quote:
Originally Posted by Dynamix
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

Thanks for that
__________________

A program you can trust.
Gallerybooster Run multiply TGPs of 1 script
Dalai lama is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.