PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Scorpion on 08 March, 2004, 04:43:35

Title: ip help
Post by: Scorpion on 08 March, 2004, 04:43:35
i need a script theat allows only ip's theat have only x hops on trace until the destination
Title:
Post by: nErBoS on 08 March, 2004, 15:24:59
Hi,

You made two topics i think the request is the same, i already answer you on the other, if this is a different script please be more especific on what you want.

Best regards, nErBoS
Title:
Post by: Scorpion on 08 March, 2004, 23:24:06
here i'm talcking abat a traceroute hups and it's something diferit
si i need on the hub only the piple that have an max N hups until ther ip !!!
Title:
Post by: nErBoS on 09 March, 2004, 00:12:20
Hi,

My english is bad and your isn't helping :P

If i understood you want a script to see the the number of hubs ??

Best regards, nErBoS
Title:
Post by: Scorpion on 09 March, 2004, 00:47:19
not hubs, hups. i meen the number of servers it's pasin trough to get to the user
Title:
Post by: plop on 09 March, 2004, 12:59:40
when you surf over the inet you hup from 1 switch 2 the next.
now what he wants is that only ppl who are less then x hups  away from him.
bad idea btw as it can take several seconds before a check like that is preformed, and during that check the bot/hub is stuck.

plop
Title:
Post by: nErBoS on 09 March, 2004, 16:35:49
Hi,

Hups ???

Can you explain plop and tell me i can i do that to catch in lua :)

Best regards, nErBoS
Title:
Post by: tezlo on 09 March, 2004, 16:49:45
try "tracert board.univ-angers.fr" in the command line
you need to send packets with variable TTL.. which you cant really do in lua
Title:
Post by: plop on 09 March, 2004, 17:00:12
QuoteOriginally posted by nErBoS
Hi,

Hups ???

Can you explain plop and tell me i can i do that to catch in lua :)

Best regards, nErBoS
np, execute the next script with the lua command line.
url = "www.tweakers.net"

x = clock()
execute("tracert "..url.." > trace.lst")
print(clock()-x.." seconds wasted")
readfrom("trace.lst")
while 1 do
   line = read()
   if line == nil then
      break
   end
   print(line)
end
remove("trace.lst")
now for fun try 2 trace your modem (set that ip as url).
you'll see how bad the idea 2 use this actualy is.

plop
Title:
Post by: Scorpion on 09 March, 2004, 23:11:47
my idee is theat here in Ro on our internet provider it is allowd to fransfer files in a city without biing monitorized, only the ppl theat have  from 9$ to 39% contracts with the provider, with the bussines contrats it is monitorized, and payd 4 it, so the ideea is theat from 2 ip in the same class contrat it's having only 1 hup to destination


                                 Sorry 4 my english
Title:
Post by: Scorpion on 09 March, 2004, 23:15:17
forgoth

10x 4 the exemple plop it helpt a lot 4 making the finel script
Title:
Post by: nErBoS on 09 March, 2004, 23:23:17
Hi,

plop and tezlo thanks for the explanion and example when i get free time i will try to learn to work with that.

Best regards, nErBoS
Title:
Post by: plop on 10 March, 2004, 00:04:54
yw, and good luck.

plop