BE AWARE Scripters...
 

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

BE AWARE Scripters...

Started by nErBoS, 21 September, 2004, 11:19:04

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nErBoS

Hi,

Be AWARE

If anyone have a download blocker check out the $RevConnectToMe string, as you know this string is sent by
passive users. The String commands the user where the string was sent to, to send his string $ConnectToMe, so if this user has the downloads
blocked the user in passive mode can't download from him. He is a example of how to predict that from happening...

arrRC = {}

function Main() 
    frmHub:EnableFullData(1) 
end 

function DataArrival(curUser, data) 
	if (strsub(data, 1, 15) == "$RevConnectToMe") then 
		local _,_,towho = strfind(data, "$RevConnectToMe%s+%S+%s+(%S+)|") 
		if (curUser.iProfile == -1 and GetItemByName(towho) ~= nil and GetItemByName(towho).iProfile ~= -1) then 
        		curUser:SendData("*** You can only download from normal users.")  
	   		return 1
        	else 
			arrRC[towho] = 1 --- If the user is not blocked then is going to send the $Rev string to "towho" send his string $ConnectToMe
		end
	elseif (strsub(data, 1, 12) == "$ConnectToMe" and curUser.iProfile == -1) then 
		local _,_,towho = strfind(data, "$ConnectToMe%s+(%S+)%s+.*|") 
		if (arrRC[curUser.sName] ~= nil) then   -- Checks if was sent a $Rev string to him.
			arrRC[curUser.sName] = nil	
		elseif (GetItemByName(towho) ~= nil and GetItemByName(towho).iProfile ~= -1) then 
        		curUser:SendData("*** You can only download from normal users.")  
	   		return 1
        	end 
	
	end 
end

I have seen this error in many download scripts.

Best regards, nErBoS
--## nErBoS Spot ##--

Shurlock

Hi Nerbos,

I think I understand what this is about. But... will this also possibly  hit perfectly honest users?

I have applied the script as I do have some users that come up with a lot of  $RevConnectToMe  strings, but since I have also had quite a few complaints.

Is there any way of 'checking' their honesty?
If it's raining and your roof leaks, fix the roof. DON'T try to stop the rain!!

SMF spam blocked by CleanTalk