BASIC 5.8.1 - a small mainbot
 

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

BASIC 5.8.1 - a small mainbot

Started by blackwings, 04 March, 2005, 04:56:19

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

blackwings

BASIC  - a small mainbot by blackwings[/b]

BASIC Features this:
? Min,Max & ratio slot(s) check
? Min & Max share check
? Max Allowed hubs check
? Client checker
? Dynamic anti-advertise (including many sign detect, not just ".")
. also detect = t e s t . a t h . c x and adresses on the vertical
. can also detect [dot],(dot),{dot}.(same thing with d0t)
? Safe Advertisment & Web URL detection
? Bad prefix check in username
? Redirection options for disconnected users
? Anti-MLDC
? rmDC++ blocking
? Anti-External Search (aka MoGLO etc)
? BotINFO fucntion
? Remebers kick counts (anti-advertise)

Extra scripts that is in 'Extra' folder in the zip =
1. show/change redirect adress command script
2. right-click script

EDIT: (24/01-06 - the script is updated - version 5.8.1)

Download it here = Click Here For BASIC 5.8.1


Pothead

#1
I've been making 2 scripts like this. One with hub extension stuff and another for commands.  Some of the extension stuff, you might wanna put in this one, like your AntiMLDC thingy, the RMDC checker, the script for Bot info, and maybe search_in_nick blocker :)
--1_Block_and_Bot_info by Pothead
--Contains :
--Simple LUA 5 anti-mldc script by blackwings
--Min. DC++ version script for PtokaX 0.3.3.0 Lua 5.0.2 by PPK
--Anti rmDC++ script for PtokaX 0.3.3.0 Lua 5.0.2 by PPK
--Bot Info, PtokaX Lua 5 version by PPK
--Search Blocker 1.1 LUA 5 by Mutor 6/20/2004

--//Config
adminnick = "!" 			-- PM Reports Goto This Nick
owneremail = "a@b.com" 		-- For BotInfo
DCmv = 0.307 				-- Min DC++ version aloud in
NMDC = 1		 		 	-- Block NMDC, 0 = allow, 1 = block
oDC = 1 		 			-- Block oDC, 0 = allow, 1 = block
DCPro = 1		 		 	-- Block DCPro, 0 = allow, 1 = block
StrongDC = 1 	 			-- Block StrongDC, 0 = allow, 1 = block
LDC = 1 		 			-- Block LDC, 0 = allow, 1 = block
NoTag = 1   	 		    -- Block No Tag clients, 0 = allow, 1 = block

--//Initilize Variables
bot = frmHub:GetHubBotName()

--//Disconnect MLDC
function MyINFOArrival(curUser,data)
	if curUser.bRegistered==nil then	
		if string.find(data,"mld(%S+)") or string.find(data,"edonk(%S+)") then 
			curUser:Disconnect()
			return 1
		end
	end
end

--//Min DC Version Check, With Some Clients Checked And No Tags
function NewUserConnected(curUser)
	if curUser.bHasTag then
		if curUser.sClient == "DC++" and tonumber(curUser.sClientVersion) then
			if tonumber(curUser.sClientVersion) < tonumber(DCmv) then
				curUser:SendData( bot.."Please upgrade your client, min version for this hub is "..DCmv)
				curUser:SendData("$ForceMove "..frmHub:GetRedirectAddress())
				curUser:Disconnect()
				return 1
			end
		elseif (curUser.sClient == "NMDC2" and NMDC == 1) or (curUser.sClient == "oDC" and oDC == 1) or (curUser.sClient == "DCPRO" and DCPro == 1) 
					or (curUser.sClient == "StrongDC++" and StrongDC == 1) or (curUser.sClient == "LDC++" and LDC == 1) then
			curUser:SendData(bot.. " " ..curUser.sClient.. " sucks, get DC++ from [URL]www.sourceforge.net[/URL]")
			curUser:SendData("$ForceMove "..frmHub:GetRedirectAddress())
			curUser:Disconnect()
			return 1
		end
	elseif (NoTag == 1) then
		curUser:SendData( bot.."Get a decent client, one with a tag, i.e. DC++ from [URL]www.sourceforge.net[/URL]")
		curUser:SendData("$ForceMove "..frmHub:GetRedirectAddress())
		curUser:Disconnect()
		return 1	
	end
end

--//Autobans RMDC++ Users
function SupportsArrival(curUser, sData)
	if string.sub(sData, 10, 11) == "  " then
		curUser:SendData( bot.."Buggy client, go away!")
		SendPmToNick(adminnick,bot, " rmDC++ from IP: "..curUser.sIP.." trying to login... he is wasting time")
		curUser:Disconnect()
		return 1
	end
end

--//Helps Pinger Bots
function UnknownArrival(curUser, sData)
	--// simple $BotINFO implementation //--
	if string.sub(sData, 1, 8) == "$BotINFO" then
		local minshare = frmHub:GetMinShare()*1024*1024
		curUser:SendData("$HubINFO "..frmHub:GetHubName().."$"..frmHub:GetHubAddress()..":"..frmHub:GetHubPort().."$"..frmHub:GetHubDescr()..
			"$"..frmHub:GetMaxUsers().."$"..minshare.."$"..frmHub:GetMinSlots().."$"..frmHub:GetMaxHubs().."$PtokaX$"..owneremail)
		SendPmToNick(adminnick,bot, " BotInfo requested from : "..curUser.sName.." with IP: "..curUser.sIP)
		return 1
	end
end

--//Disconnect Search-In-Nick Users
function ValidateNickArrival(curUser, sData)
	if string.sub(sData, 1, 13) == "$ValidateNick" then
		nick = string.sub(sData, 14, -2);
	        if string.find(string.lower(nick), "search", 1) then
			msg="\r\n\r\n\t\t*** Only registered users may search this hub. Go somewhere else! ***\r\n"..
			"\t\tThis hub is for registered users only. [ "..nick.." ] , IP ->[ "..curUser.sIP.." ],\r\n"..
			"\t\tYour details have been logged\r\n\r\n"
			curUser:SendData(bot,msg)
			SendPmToNick(adminnick,bot, " Unregistered Searcher -> [ "..nick.." ] from IP -> [ "..curUser.sIP.." ] was denied access.")
			curUser:Disconnect()
			return 1
		end
	end
end

blackwings

#2
(the script above has been updated)

BASIC 3.0 by blackwings

--ADDED: client detector disconnect unknown clients.
--ADDED: rmDC++ blocker (made by PPK)
--ADDED: Anti-MLDC
--ADDED: Anti-External Search (aka MoGLO etc) (made by Mutor)
--ADDED: BotINFO fucntion (made by PPK)
--FIXED: a bug in the bad prefix check

For those who doesn't want a main bot with million functions, which you never use, then BASIC 3.0 is your CHOICE !!! :D


BeeR

QuoteOriginally posted by blackwings
(the script above has been updated)

BASIC 3.0 by blackwings

--ADDED: client detector disconnect unknown clients.
--ADDED: rmDC++ blocker (made by PPK)
--ADDED: Anti-MLDC
--ADDED: Anti-External Search (aka MoGLO etc) (made by Mutor)
--ADDED: BotINFO fucntion (made by PPK)
--FIXED: a bug in the bad prefix check

For those who doesn't want a main bot with million functions, which you never use, then BASIC 3.0 is your CHOICE !!! :D

HI Mr B-Wing :]
nice little bot you made there ,,
just a little ide i got ,,
use Potheads ide of configure clents and expand with a third option like this ,,
0=allow 1= disconnect 2= redirect (get hubrdadress)
and ofcouse add some more clients
A cold BeeR is stunning !!

blackwings

#4
(the script above has been updated)

BASIC 3.5 by blackwings

--FIXED: a bug when disconnecting unknown clients
--ADDED: option to redirect disconnected clients
--FIXED: a bug when advertising in PM
--ADDED: 2 clients to tCl{}
--CHANGED: Optimized the anti-advertisment detection = its faster now
--CHANGED: Optimized the safe advertisment = its faster now

+ instruction how to make allowed clients blocked
!!IF YOU FIND A BUG, PLEASE REPORT IT!!

For those who doesn't want a main bot with million functions, which you never use, then BASIC 3.5 is your CHOICE !!!  :D


blackwings

(the script above has been updated)

BASIC 3.8 by blackwings

--CHANGED: Optimized the anti-advertisment again = its faster now

+ instruction how to make allowed clients blocked
!!IF YOU FIND A BUG, PLEASE REPORT IT!!

For those who doesn't want a main bot with million functions, which you never use, then BASIC 3.8 is your CHOICE !!! :D


blackwings

#6
(the script above has been updated)

BASIC 4.0 by blackwings

--FIXED: a small bug in anti-advertisment
--CHANGED: Optimized the bad client blocking = its faster now.

!!IF YOU FIND A BUG, PLEASE REPORT IT!!

For those who doesn't want a main bot with million functions, which you never use, then BASIC 4.0 is your CHOICE !!! :D


jiten

I was having a look at ur script... Nine one ;)
Btw, why don't u remove the ToArrival function and just put ToArrival = ChatArrival, as it's the same code?
Just a thought :D

Cheers

blackwings

#8
QuoteOriginally posted by jiten
I was having a look at ur script... Nine one ;)
Btw, why don't u remove the ToArrival function and just put ToArrival = ChatArrival, as it's the same code?
Just a thought :D

Cheers

Thank you jiten :D

In the beginning I did have like that, but for some reason it didn't work for me :(

BASIC 4.5 by blackwings

--CHANGED: I optimized the Anti-MLDC.
--CHANGED: I optimized the BotINFO function
--ADDED: a on/off for RMDC blocking
--REMOVED: Bad Version function
--FIXED: the advertise function works to 100% :D
--CHANGED: Optimize the safe-advertise check a bit.
--ADDED: web url detection so it won't mistake those for advertisement.

!!IF YOU FIND A BUG, PLEASE REPORT IT!!

For those who doesn't want a main bot with million functions, which you never use, then BASIC 4.5 is your CHOICE !!! :D

(the script above has been updated)


Jerry

Hi I use Basic -> it is great script Blackwings!!!

But I have one question.

If some user write some hub address (for example: ptokax.no-ip.com) in PM to second user, script will kick him! :(

It is possible, that in Privat Messages the script doesn't check advertisment?

  thanks in advance for answer

jiten

If it's that what u want, just comment the ToArrival function. The advertiser check in PM will be gone.

Cheers

blackwings

#11
QuoteOriginally posted by Jerry
Hi I use Basic -> it is great script Blackwings!!!

But I have one question.

If some user write some hub address (for example: ptokax.no-ip.com) in PM to second user, script will kick him! :(

It is possible, that in Privat Messages the script doesn't check advertisment?

  thanks in advance for answer
well, with BASIC 4.5.1 I have added a on/off switch for advertisement in PM.
In case you and others want to use it in the future and regret the deletion of the anti-adverting in PM
But maybe thats not necessary or is it? Anyway, if anyone doesn't like the on/off switch, do what jiten says.

BASIC 4.5.1 by blackwings

--ADDED: on/off switch for anti-advertisement in PM.

For those who doesn't want a main bot with million functions, which you never use, then BASIC 4.5 is your CHOICE !!!

!!IF YOU FIND A BUG, PLEASE REPORT IT!!
(the script above has been updated)


Jerry

QuoteOriginally posted by blackwings
BASIC 4.5.1 by blackwings

--ADDED: on/off switch for anti-advertisement in PM.

Thank you very much, blackwings!!!

blackwings

BASIC 4.7 by blackwings

--CHANGED: I optimized the anti-advertising function
--CHANGED: some of the code for the anti-advertisment is moved to a seperate compiled file for security reason.
--CHANGED: Optimized the bad client blocking a tiny bit
--ADDED: made the bot visible in the userlist

For those who doesn't want a main bot with million functions, which you never use, then BASIC 4.7 is your CHOICE !!!

!!IF YOU FIND A BUG, PLEASE REPORT IT!!
(the first post has been updated)


??????Hawk??????

QuoteFor those who doesn't want a main bot with million functions, which you never use, then BASIC 4.7 is your CHOICE !!!

nice work m8 i started in a very similar way ..

my question is  What you going to call it when it Takes over and grows in to a Fek Off HUGE bot ???   lol

 :P  :P  :P

??????Hawk??????

blackwings

#15
QuoteOriginally posted by ??????Hawk??????
QuoteFor those who doesn't want a main bot with million functions, which you never use, then BASIC 4.7 is your CHOICE !!!

nice work m8 i started in a very similar way ..
thank you hawk :D I appreciate it :)
QuoteOriginally posted by ??????Hawk?????? my question is  What you going to call it when it Takes over and grows in to a Fek Off HUGE bot ???   lol

 :P  :P  :P

??????Hawk??????
well, I wont add any more functions to this bot, only optimize code and fix bugs that might appear when doing it.

But ofcourse, I will make a bigger bot in the future, but it won't have the same name.


blackwings

BASIC 4.8 by blackwings

--CHANGED: Again I optimized the anti-advertise

For those who doesn't want a main bot with million functions, which you never use, then BASIC 4.8 is your CHOICE !!!

!!IF YOU FIND A BUG, PLEASE REPORT IT!!
(the first post has been updated)


blackwings

#17
BASIC 4.8.1 by blackwings

--FIXED: Wierd bug in anti-adertise function
--CHANGED: I optimized the anti-advertise a tiny bit

For those who doesn't want a main bot with million functions, which you never use, then BASIC 4.8.1 is your CHOICE !!!

!!IF YOU FIND A BUG, PLEASE REPORT IT!!
(the first post has been updated)

For those who has BASIC 4.8 and want to update to 4.8.1 without
downloading everything again can download this zip (contains the 'basic' folder)=

*link removed by blackwings*


blackwings

#18
BASIC 4.8.2 by blackwings

--FIXED: bug when sending pm to ops when someone gets kicked/banned

For those who doesn't want a main bot with million functions, which you never use, then BASIC 4.8.1 is your CHOICE !!!

!!IF YOU FIND A BUG, PLEASE REPORT IT!!
(the first post has been updated)

For those who has BASIC 4.8 or 4.8.1 and want to update to 4.8.2 without
downloading everything again can download this zip (contains the 'basic' folder)=

*link removed by blackwings*


blackwings

#19
BASIC 4.8.3 by blackwings

--FIXED: small bug in advertise detection
--CHANGED: I optimized the anti-advertise a tiny bit

For those who doesn't want a main bot with million functions, which you never use, then BASIC 4.8.3 is your CHOICE !!!

!!IF YOU FIND A BUG, PLEASE REPORT IT!!
(the first post has been updated)

For those who has BASIC 4.8 - 4.8.2 and want to update to 4.8.3 without
downloading everything again can download this zip (contains the 'basic' folder)=

*link removed by blackwings*


blackwings

#20
BASIC 4.8.4 by blackwings

--CHANGED: optimized the safe-advertising function
--CHANGED: made web URL detection more accurate and faster

For those who doesn't want a main bot with million functions, which you never use, then BASIC 4.8.4 is your CHOICE !!!

!!IF YOU FIND A BUG, PLEASE REPORT IT!!
(the first post has been updated)

For those who has BASIC 4.8 - 4.8.3 and want to update to 4.8.4 without
downloading everything again can download this zip (contains the 'basic' folder)=

*link removed by blackwings*


blackwings

#21
BASIC 4.8.6 by blackwings

--CHANGED: rare bug when handeling both advertise and web url

For those who doesn't want a main bot with million functions, which you never use, then BASIC 4.8.6 is your CHOICE !!!

!!IF YOU FIND A BUG, PLEASE REPORT IT!!
(the first post has been updated)

This time you need to download everthing, so check the first post in this thread


blackwings

#22
BASIC 4.8.7 by blackwings

--CHANGED: optimized the anti/safe-advertising and web url

For those who doesn't want a main bot with million functions, which you never use, then BASIC 4.8.7 is your CHOICE !!!

!!IF YOU FIND A BUG, PLEASE REPORT IT!!
(the first post has been updated)

For those who has BASIC 4.8.6 and want to update to 4.8.7 without
downloading everything again can download this zip (contains the 'basic' folder)=

*link removed by blackwings*


blackwings

#23
BASIC 4.8.8 by blackwings

--CHANGED: optimized the bot description function
--ADDED: a txt file with info on how to get the advertZ.lua in your own language (the txt is in both .zip files of the release)


For those who doesn't want a main bot with million functions, which you never use, then BASIC 4.8.8 is your CHOICE !!!

!!IF YOU FIND A BUG, PLEASE REPORT IT!!
(the first post has been updated)

For those who has BASIC 4.8.6 or 4.8.7 and want to update to 4.8.8 without
downloading everything again can download this zip (contains the 'basic' folder)=

*link removed by blackwings*


blackwings

#24
This is a Czech translated version of the advertZ.lua for BASIC 4.8.8, which was requested by Jerry =
*link removed by blackwings*


SMF spam blocked by CleanTalk