hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

vnet576
This goes along the same lines as my previous question. Does anyone have a batch file or script that can convert a list of IP addresses into their corresponding ip ranges...since doing it by hand could take days. For example:

192.168.7.53 into 192.168.0.0-192.168.255.255
255.22.35.7 into 255.22.0.0-255.22.255.255
OneNight
Any scripting language will let you do that. I usually filter any lists i have just using mirc scripting cos i am comfortable in using it.

So i suggest you learn a basic script (and not c++ wink.gif) for moments just like this.
vnet576
lol...I know learning one is my challenge for the year.
vnet576
Meanwhile does anyone have a script that can do this..since learning a scripting language isn't something that u could do over the weekend.
flame
QUOTE (vnet576 @ Sep 3 2003, 11:03 PM)
This goes along the same lines as my previous question. Does anyone have a batch file or script that can convert a list of IP addresses into their corresponding ip ranges...since doing it by hand could take days. For example:

192.168.7.53 into 192.168.0.0-192.168.255.255
255.22.35.7 into 255.22.0.0-255.22.255.255

had anyone did it yet
sounds like a great idea
daguilar01
ive also had this problem where i must chagne a list of IPs into there respective ranges

ive always done it by hand, but ive only had to do this liek 2-3 times, im sure a simple bat file might work for this, if no one makes a sweet proggy to do this, i'll give it a try thru a bat file, smile.gif

edit:
well i got bored and thought i would work on this, after thinking about it for a few seconds, i realized how easy this would be, lol

put this code into notepad
CODE
for /f "tokens=1-8 delims=." %%a, in (ip.txt) do (
echo %%a.%%b.0.0 %%a.%%b.255.255>>ranges1.txt
echo %%a.%%b.0.0-%%a.%%b.255.255>>ranges2.txt
)

and save it as ip2range.bat
then make an IP.txt that has all the IPs you want coverted to ranges, then run the ip2range.bat file and it will make ranges1.txt with 192.0.0.0 192.0.255.255 format and ranges2.txt with 192.0.0.0-192.0.255.255

enjoy, smile.gif

edit2: if i think of some more feaures i might develop this a bit more or something
flame
smile.gif
Thank you for teaching me !
my head still hurts from yesterday
when i tried to do it myself, all i needed
was just a little help from my friends, i get by
with a little help from my friends !!


daguilar01 - Respect !
daguilar01
np, always happy to help, smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.