masking ips
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

masking ips

Started by ((UKSN))Quasimodo, 12 July, 2004, 22:21:07

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

((UKSN))Quasimodo

hi ppl is there a way i can mask my ip and all my ops ips any ideas always welcome

plop

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
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Sedulus

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

damo

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

Herodes

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

SMF spam blocked by CleanTalk