socks5 deny-script
 

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

socks5 deny-script

Started by Typhoon, 13 January, 2004, 21:18:23

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Typhoon

i am looking for a socks5 deny script.. does some have one or could some one make it .. ??

all help tips are welcome...


***Typhoon?

btw. weres ptaczek ??



[T-G-T]M@sto

QuoteOriginally posted by Typhoon?
i am looking for a socks5 deny script.. does some have one or could some one make it .. ??

all help tips are welcome...


***Typhoon?

btw. weres ptaczek ??
I know why you want that script and i search it too, but someone have told me that all Linux users need socks5 and if i use a script they can not enter - is that right ?
The Ghost Riders - tgr.dyndns.org - The Best Danish Hub

plop

QuoteOriginally posted by [T-G-T]M@sto
I know why you want that script and i search it too, but someone have told me that all Linux users need socks5 and if i use a script they can not enter - is that right ?
do you mind if i let some1 make this script who wants 2 learn 2 script lua?
kepp/intel or any1 else here's how 2 do it.
search the MyInfoString for M:S and disconnect them if found.

no linux users don't need socks5 @ all, if they say they do need it there just 2 lazy 2 add it 2 there iptables/firewall.
you can send them all 2 the website from the golden angel.
all manuals 2 fix the firewall 2 support dc in active mode are on it, for linux and bsd.
wheter they use dcgui on the linux/bsd rig or any other windows client behind a linux/bsd firewall, they all can use normal passive and active mode.

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 <----<<

Typhoon

i noticed something about the M:S its not an S all the time.. i just jumped some hubs with s5 ip and there were just M:P like ordinary Passive mode..

but if someone could make i and probably others would apreciate it..



NightLitch

Couldn't stay away just needed to create it... :-)

here you go:

-- Mode Check : By NightLitch

BotName = "ModeChecker"

function NewUserConnected(curUser)
	s,e, Mode = strfind(curUser.sMyInfoString,"M:(%u*),") 
	if  Mode == "S" then  
		curUser:SendData(BotName,"Your Client Mode ( "..Mode.." ) is not Allowed here, Please change to ( A ) or ( P ).")
		curUser:Disconnect() 
	end
end

Hope it works...
//NL

Intel

couldu guys explain me how sock5 works ?
Punnakku

[T-G-T]M@sto

#6
QuoteOriginally posted by Intel
couldu guys explain me how sock5 works ?
Not me - then i have to kick you  8)
The Ghost Riders - tgr.dyndns.org - The Best Danish Hub

[NL]trucker

#7
thnks nightlitch

testing it now :-)

EDIT:

got this fault

Syntax error: bad argument #1 to `strfind' (string expected, got nil)
stack traceback:
   1:  function `strfind' [C]
   2:  function `NewUserConnected' at line 6 [file `D:\==PTOTAX==\scripts\modus-check.lua']
Owner of FunnyHub
 
Funyhub.no-ip.info
       Forum Master of


plop

QuoteOriginally posted by Intel
couldu guys explain me how sock5 works ?
in real short, it's a proxy server witch has the option not only 2 cache things but also make persistent connections between the local network and internet/wan.
later things like ics and nat took over.

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 <----<<

NightLitch

ahh forgot the nil handle... fix coming right up...
//NL

NightLitch

Here you go:

-- Mode Check : By NightLitch
-- Fixed the nil error

BotName = "ModeChecker"

function NewUserConnected(curUser)
	s,e, Mode = strfind(curUser.sMyInfoString,"M:(%u*),") 
	if Mode == nil then
		curUser:SendData(BotName,"You are hidding your TAG..")
		curUser:Disconnect() 
	elseif  Mode == "S" then  
		curUser:SendData(BotName,"Your Client Mode ( "..Mode.." ) is not Allowed here, Please change to ( A ) or ( P ).")
		curUser:Disconnect() 
	end
end
//NL

[NL]trucker

#11
thnx nightlitch

works perfect i just tested it with a hub master and he couldn,t get in :-))


GRRRRRRRRRRRR

after i had it tested by a user with odc and dc and dc stealth he passed through all three times and i got
this error

Syntax error: bad argument #1 to `strfind' (string expected, got nil)
stack traceback:
   1:  function `strfind' [C]
   2:  function `NewUserConnected' at line 7 [file `D:\==PTOTAX==\scripts\modus-check.lua']

so i think this script is no good at all cause if fake clients
can pass throug what use is this script?

anyways untill proofing wrong

A BIG THNX TO NIGHTLITCH
for his efforts.



-- Mode Check : By NightLitch
-- Fixed the nil error

BotName = "ModeChecker"

function NewUserConnected(curUser)
   s,e, Mode = strfind(curUser.sMyInfoString,"M:(%u*),")
   if Mode == nil then
      curUser:SendData(BotName,"You are hidding your TAG..")
      curUser:Disconnect()
   elseif  Mode == "S" then  
      curUser:SendData(BotName,"Your Client Mode ( "..Mode.." ) is not Allowed here, Please change to ( A ) or ( P ).")
      curUser:Disconnect()
   end
end

this is the script in scriptdir.
Owner of FunnyHub
 
Funyhub.no-ip.info
       Forum Master of


NightLitch

//NL

NightLitch

well I couldn't find a problem with above script either but
have made a little modification that checks if MyInfoString
is OK. What hubsoft are you using trucker ???

-- Mode Check : By NightLitch
-- Fixed the nil error
-- Checking if MyInfo is correct, becouse it can be missed in some Build Versions...

BotName = "ModeChecker"

function NewUserConnected(curUser)
	if curUser.sMyInfoString then
		s,e,Mode = strfind(curUser.sMyInfoString,"M:(%u*),") 
		if Mode == nil then
			curUser:SendData(BotName,"You are hidding your TAG..")
			curUser:Disconnect() 
		elseif  Mode == "S" then  
			curUser:SendData(BotName,"Your Client Mode ( "..Mode.." ) is not Allowed here, Please change to ( A ) or ( P ).")
			curUser:Disconnect() 
		end
	else
		curUser:SendData(BotName,"Your MyInfoString is messed up or lost...")
		curUser:Disconnect() 
	end
end

This Should work without problems...

I have tested this with: DC++, oDC, DC++k, DC++ Stealth, NMDCv2, NMDC & BCDC.

and didn't find any trouble... and Am running 0.3.3.0 Build 15.25 if you use an older Build like 15.18 or under they have a tendence to lose the MyInfo -data.

/NL
//NL

[NL]trucker

#14
nightlitch

i saw your pm in my hub sorry m8 i was away the last day and probbably i will get back on comp this afternoon.

i will try and test this script again and let you know what the results are.

btw i,m using ptokax 15.25 with pzozzybot.
Owner of FunnyHub
 
Funyhub.no-ip.info
       Forum Master of


plop

i'm running 15.18 here and see the same error as trucker all the time.
but the weirdest things is that it doesn't cause any problem.
the tag is procest fine.

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 <----<<

NightLitch

so it is this problem then that the MyInfo is lost for a second then
and returns later or what... The Thing is It works gr8 on my hub.

as above with all those clients in all modes... and Stealth we
shouldn't talk about... hehe right plop... :-p

So what could ne the problem...
//NL

plop

well i grab the full tag 1st and then start splitting it up.
there allready it gives an error, but as you could have seen in my hub, it is actualy found.
maby play around with some other patterns.
"%a" or "" (this last 1 needs some explenation i gues, it means only search for an S).

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 <----<<

NightLitch

k, but I do need to mark the M: right otherwise it could
sense the S in S: right ?
//NL

plop

QuoteOriginally posted by NightLitch
k, but I do need to mark the M: right otherwise it could
sense the S in S: right ?
yep indeed.
i just gave the piece 2 capture the S, nothing more.
the rest you knew allready.

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 <----<<

witch

Grate script!!! Tested and working fine!!!

THANX NightLitch  :D



SMF spam blocked by CleanTalk