Tags, and Client versions - Page 3
 

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

Tags, and Client versions

Started by pHaTTy, 17 December, 2003, 12:11:55

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


pHaTTy

QuoteOriginally posted by c h i l l a
yepp Black Claw ;)

huh, its not BearClaw???????  ?(
Resistance is futile!

psf8500

Here's another idea, maybe this already exists, if so.. sorry (and give me a link  ;) )

Any client entering the hub with out a tag gets sent "$GetNetInfo|" from the hub.
Only NMDC2 will reply to this (with "$NetInfo 4$1$A$0|" or something similar). If it does reply then it should be kicked for hiding.

This could also be expanded to check for fake tags by checking the first and second values in the NetInfo against the displayed tag.

I started to make a lua script to do this with limited success (not much of a scripter   ;) ).

Bot = "NMDCBOT" 

function NewUserConnected(user) 
   local Msg = "$GetNetInfo|" 
   user:SendData(Msg) 
end 

function DataArrival(user,data) 
   if (strsub(data,1,8) == "$NetInfo") then 
      SendToOps(Bot, "NMDC v2 "..data) 
   end 
end

The trouble is the NMDC2 client gets disconnected from the hub when it sends the $NetInfo, i guess PtokaX dosn't recognise the command and disconnects (am i missing something??).

I seem to remember reading somewhere that when PtokaX receives an unknown command it gets sent to the script and if the script dosnt handle it the user gets disconnected. Maybe you script guru's know more about this...

pHaTTy

hmm netinfo shud be fine :/
Resistance is futile!

psf8500

probably me doing something wrong then  :P

pHaTTy

QuoteOriginally posted by psf8500
probably me doing something wrong then  :P

lol, once i fix my modem, ill have a little mess around with netinfo, see what i can find ;)
Resistance is futile!

[NL]Pur

@psf8500

didn't test with it

tho you could try too add this

frmHub:EnableFullData(1)

in your script

psf8500

Quote@psf8500

didn't test with it

tho you could try too add this

frmHub:EnableFullData(1)

in your script

Yep that helps thanks :)

This allows an NMDC2 user to connect:

Bot = "FakeNMDC"

function Main ()
	frmHub:EnableFullData(1)
end

function NewUserConnected(user)
	local Msg = "$GetNetInfo|"
	user:SendData(Msg)
end

function DataArrival(user,data)
	if (strsub(data,1,8) == "$NetInfo") then
		SendToOps(Bot, "NMDC v2 "..data)
	end
	return 1
end


This helps me with testing how NMDC2 users respond to $GetNetInfo... I'll leave up to you scripters to write a nice little script that kicks hiding/fake tag NMDC2 users :)

NightLitch

Guess I need to install NMDC2 to take an even closer look.

But If I remember right RabidWombat created a standalone for it..
//NL

NightLitch

ahh... found it in my collection as always... is huge I must say... ;-D

function DataArrival(curUser, sData)
	if(strsub(sData, 1, 7) == "$MyINFO") then
		if(curUser.iVersion == nil) then
			curUser:SendPM("test", "Your client is stupid");
			curUser:Disconnect();
			return;
		end

		if(strfind(curUser.iVersion, "^1.0091$") and curUser.bOperator == nil) then
		-- the . is a magic char on purpose
			curUser:SendData("$GetNetInfo|");
		end
	end

	if(strsub(sData, 1, 8) == "$NetInfo") then
		local info = strsub(sData, 9, -1);
		local s, e, slots, hubs, mode, cap = strfind(sData, "^%$NetInfo (%d+)%$(%d+)%$(%w)%$*(%d*)%|$");

		if(s == nil)
			then curUser:Disconnect();-- the search failed, incorrect NetInfo
		elseif(cap == "") then
			curUser:SendData("Hub-Security", "Please download the latest Neo Modus Client");
			curUser:Disconnect();
		else
			slots = tonumber(slots) or 0;
			hubs = tonumber(hubs) or -1;	-- second value is for invalid number
			cap = tonumber(cap) or -1;	-- second value is for invalid number

		-- do what you want with the rest of the stuff above
		-- slots: duh
		-- hubs: all open hubs (even if OP and even if the user isn't connected :-\ )
		-- mode: A or P
		-- cap: kB/sec upload cap
		
		end

		return 1;
	end

	return 0;
end

here it is.
//NL

plop

psf8500 this was posted on the old forum, but still great that you brought it back.
this should do that.
Bot = "FakeNMDC"

function Main ()
	frmHub:EnableFullData(1)
end

function NewUserConnected(user)
	local Msg = "$GetNetInfo|"
	user:SendData(Msg)
end

function DataArrival(user,data)
	if (strsub(data,1,8) == "$NetInfo") then
      if not (strfind(user.sMyInfoString, "
i'm personaly using the the version number.
i love 2 see them disapear as soon as posible + it doesn't need full data so it uses less cpu.
forbiddenWordsnmdc = {["2.02"] = 1, ["2.01"] = 1, ["2.00"] =1 }

function NewUserConnected(user)
   if forbiddenWordsnmdc[user.iVersion] then
      user:SendData(Bot, "NMDC 2.x is not allowed. Get a real dc client like dc++ [URL]http://dcplusplus.sourceforge.net[/URL]")
      user:Disconnect()
   end
end

plop

* good that i did a preview, had the feeling some1 found wombats script. lol
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 <----<<

pHaTTy

question about the new odc tag

S: is how many slots open and O: means how many slots are free yes?
Resistance is futile!

Event_Horizon

QuoteOriginally posted by (uk-kingdom)pH?tt?
question about the new odc tag

S: is how many slots open and O: means how many slots are free yes?

e.x. O:5 means open extraslot if upload is below 5 Kb/s
Greez ????_H???z??
??????????????????

??/v\\ \'?\' ?@?? ???? is Secured by RoboCop? Created by Optimus?

pHaTTy

Resistance is futile!

[NL]Pur

Some clients and there tags

Koala DC 0.40
		- TAG:
			[KDC
			V:x.xx,	(version)
			M:A,	(a = active, p = passive)
			S:x	(amount of slots)
			]


	PDC 0.20p03
		- TAG
			<++
			V:x.xxpxx,
			M:A,	(a = active, p = passive)
			H:1,	(amount of hubs)
			S:1,	(amount of slots)
			>
		

	PTDC++ 1.0 lite
		- TAG
			PTDC++ lite
			<++
			V:x.xx,
			M:A,	(a = active, p = passive)
			H:x/x/x,
			S:x,	(slots)
			PT:1.0
			>

	PtDC 2.0 v1.9095
		- TAG
			Free slots:1
			
			<++
			V:x.xx,
			M:A,	(a = active, p = passive)
			H:x/x/x,
			S:x, 	(x amount slots)
			B:x	(x upload limit)
			>

pHaTTy

Resistance is futile!

plop

#66
posted on the dc++CDM forum not 2 be forgotten.
QuoteOriginally posted by Stefan
Quotepsf8500
See this for more info: - http://board.univ-angers.fr/thread.php?threadid=768&boardid=17&styleid=1&sid=2e7322435905dc26e969fd45c6870c75

Hey, plop or psf, found some errors in that thread that one of you might want to point out (saves me from creating an account :P).

-------
DCTC = direct connect text client.
DCGUI = direct connect Graphical users interface.

dcgui is a frontend for dctc, when you install it you can see it installs the dctc library's.
-------

DC_GUI is a gtk+ frontend for DCTC
dc-qt is a QT frontend for DCTC http://dc-qt.sourceforge.net/
DCGUI(-qt) is a frontend for dclib (which has nothing to do with DCTC)
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/dcgui/dclib/

Also
---
whitch clients actually support the $MultiConnectToMe ??
---

I know DCGUI-qt has a setting for allowing multiple connects by the same user. If that has anything to do with $MultiConnectToMe I don't know, but it sounds plausable :)

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

SMF spam blocked by CleanTalk