Modem killer
 

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

Modem killer

Started by Cêñoßy†ê, 03 November, 2005, 05:06:59

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cêñoßy†ê

Something to kill modem connections..
28.8Kbps/33.6Kbps/56Kbps

-- Modem connection killer bot 0.1
-- By: C??o?y?? 03.11.2005
-- Profilecheck on/off
-- Option to choose what should bot do (1/tempban 2/disconnect 3/inform OP's)
-- Option to set time for tempban (PtokaX 0.3.3.21f or newer)

Bot = "Connection_Checker"	-- Botname
Time = 5			-- TimeBan time in minutes
ToDo = 1			-- What should bot do (1/tempban 2/disconnect 3/inform OP's)

ToCheck = {
	[0] = 0,	--Master 1/yes 0/no
	[1] = 0,	--Operator 1/yes 0/no
	[2] = 1,	--Vip 1/yes 0/no
	[3] = 1,	--Reg 1/yes 0/no
	[4] = 0,	--Moderator 1/yes 0/no
	[5] = 0,	--NetFounder 1/yes 0/no
	[-1] = 1,	--Unregistered 1/yes 0/no
}

MyINFOArrival = function(User,data)
	if ToCheck[User.iProfile] == 1 then		-- Profilecheck
	if User.sConnection and string.find(User.sConnection,"28.8Kbps") or string.find(User.sConnection,"33.6Kbps") or string.find(User.sConnection,"56Kbps") then	-- Checks connection
	if ToDo == 1 then
		SendToOps(Bot, ""..User.sName.." from IP "..User.sIP.." tembanned because Connection: "..User.sConnection)	-- Message to OP's
		User:SendData(Bot, "You have been Tempbanned for "..Time.." minutes because we dont allow Modem users. Found: "..User.sConnection)	-- Message to user   
		--User:TempBan(Time,"Bad connection: "..User.sConnection.."",Bot,0)	-- Tempban (time,reason,by who,permanent(1/yes 0/no)) undo if using PtokaX 0.3.3.21f or newer
		User:TempBan()
		end
	if ToDo == 2 then
		SendToOps(Bot, ""..User.sName.." from IP "..User.sIP.." disconnected because Connection: "..User.sConnection)
		User:SendData(Bot, "You have been disconnected because we dont allow Modem connections. Found: "..User.sConnection)  
		User:Disconnect()
		end
	if ToDo == 3 then
		SendToOps(Bot, ""..User.sName.." from IP "..User.sIP.." connected with Connection: "..User.sConnection)
			end
		end 
	end
end
Powered By Leviathan™ 2nd Generation v. 1.9

Corayzon

Whats wrong with clients on connections that require modulating?

Dessamator

Maybe he doesnt like them.
Ignorance is Bliss.

Cêñoßy†ê

QuoteOriginally posted by Dessamator
Maybe he doesnt like them.
:P  hehe... nothing against them.. was only requested from me and tought to post it here :))
Powered By Leviathan™ 2nd Generation v. 1.9

SMF spam blocked by CleanTalk