PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: ((UKSN))Quasimodo on 12 July, 2004, 22:21:07

Title: masking ips
Post by: ((UKSN))Quasimodo on 12 July, 2004, 22:21:07
hi ppl is there a way i can mask my ip and all my ops ips any ideas always welcome
Title:
Post by: plop on 13 July, 2004, 14:55:48
QuoteOriginally posted by ((UKSN))Quasimodo
hi ppl is there a way i can mask my ip and all my ops ips any ideas always welcome
strip the IP from P2P and you have nothing left.

plop
Title:
Post by: Sedulus on 13 July, 2004, 15:02:38
block all $Ctm/$RevCtm and $Search (coming from non-OPs) to OPs

i.e. something like
(pseudocode)

function DataArrival( user, data )
  if cmd == $ctm/$revctm/$search then
    if user != op then
      sendToAllButOps( data )
      return 1 -- I think return 1 was discard command
    else
      return -- let the hub handle it
    end
  end
end
Title:
Post by: damo on 24 September, 2004, 11:07:15
i get a error when i try this. this isSyntax Error: unexpected `$' (pragmas are no longer supported);
  last token read: `$' at line 2 in string "function DataArrival( user, data )
..." the error
Title:
Post by: Herodes on 24 September, 2004, 11:22:29
What Sedulus had posted was not a script but rathre a conceptual approach to a script ...
I slightly adapted it to the PtokaX scripting api ...
here it goes ... but dont take my word for it ... as I havent tested @all...--- hide ops ips ...
--- by Herodes
--- script concept by Sedulus

tThem = {}

function NewUserConnected(user)
if tThem[user.sName] == nil then
tThem[user.sName] = 1
end
end

function Disconnected(user)
if tThem[user.sName] then
Them[user.sName] = nil
end
end

function DataArrival( user, data )
if strsub(data, 1,1) == "$" then
s,e,cmd = strfind(data, "%$(%S+)")
if cmd == "Search" or cmd == "ConnectToMe" or cmd == "RevConnectToMe" then
if not user.bOperator then
for i , v in tThem do
him = GetItemByName(i)
him:SendData(data)
end
return 1
end
end
end
end