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

Bad search script!!!

Started by Vipertje, 12 February, 2007, 22:29:20

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Vipertje

Ok, if I hate 1 thing, then it will be users that are having, loking or searching for childpron lolitas etc etc etc, is there not a script for that or can it be build (ok i know everything is possible in this world :P ;) :D )

bastya_elvtars

Everything could have been anything else and it would have just as much meaning.

Vipertje

Did install it but does work :S and I think that it conflicts with death2adultfinder

Vipertje

mmm how 2 explane, if i put the script on and 1 will search for preteen then the addys wil popup from D2AF :S

I am sending messeger like:
[2007-02-12 23:13] <???MCN_Security???> Database is updated!
[2007-02-12 23:13] <[MCN-VOP][NL]Daapjuh> !d2af-saddy
[2007-02-12 23:13] <[MCN-VOP][NL]Daapjuh> !d2af-saddy
[2007-02-12 23:13] <[MCN-VOP][NL]Daapjuh> !d2af-saddy
[2007-02-12 23:13] <[MCN-VOP][NL]Daapjuh> !d2af-saddy
[2007-02-12 23:13] <[MCN-VOP][NL]Daapjuh> !d2af-saddy
[2007-02-12 23:13] <[MCN-VOP][NL]Daapjuh> !d2af-saddy
[2007-02-12 23:13] <[MCN-VOP][NL]Daapjuh> !d2af-saddy
[2007-02-12 23:13] <[MCN-VOP][NL]Daapjuh> !d2af-saddy
[2007-02-12 23:13] <[MCN-VOP][NL]Daapjuh> !d2af-saddy
[2007-02-12 23:13] <[MCN-VOP][NL]Daapjuh> !d2af-saddy
[2007-02-12 23:13] <[MCN-VOP][NL]Daapjuh> !d2af-saddy
[2007-02-12 23:13] <[MCN-VOP][NL]Daapjuh> !d2af-saddy
[2007-02-12 23:13] <[MCN-VOP][NL]Daapjuh> !d2af-saddy
[2007-02-12 23:13] <[MCN-VOP][NL]Daapjuh> !d2af-saddy

:S:S:S whats wrong

Vipertje

sorry mutor i dont understand what 2 do :S

Vipertje

Ok, a friend of mine do have D2AF also and his chkkes searches also, so when i search for preteen then i will be banned for a few minutes.

Mine does not do that so i think in his script he did add a bad search string, so what must i do?

also chk http://forum.ptokax.org/index.php?topic=5921#msg66185 treat

Vipertje

i know ptokax does that ;) if you restart scripts you see that everytime :)

but did you also chk http://forum.ptokax.org/index.php?topic=5921#msg66185 treat????

Cêñoßy†ê

Allmoust like mutors but has ignored words   ::)

--[[
	Bad Search block LUA 5.0/5.1
	By C??o?y??	13/02/07

	--Ignored  search words (Example: <nirvana rape> wont trigger script  because nirvana word is ignored) 
]]--

Prf  = {	-- 0/dont block 1/block
	[-1] = 1,	--Unregistered User
	[0] = 0,	--Master
	[1] = 0,	--Operator
	[2] = 1,	--Vip
	[3] = 1,	--Registered User
	[4] = 0,	--Moderator
	[5] = 0,	--NetFounder
	[6] = 0,	--Owner
}

Bad = {
	["incest"] = 1,
	["rape"] = 1,
	["lolita"] = 1,
	["teensex"] = 1,
	["kiddyporn"] = 1,
	["animalsex"] = 1,
	["doggyfuck"] = 1,
	["childporn"] = 1,
	["childsex"] = 1,
	["dephile"] = 1,
	["preteen"] = 1,
	["r@ygold"] = 1,
	["beastiality"] = 1,
	["stealthdc"] = 1,
	["animalsex"] = 1,
	["beastiality"] = 1,
	["%s*(rape[d|ing]+).*"] = 1,
	["underage"] = 1,
}
Good = {
	["mp3"] = 1,
	["alizee"] = 1,
	["TTH:"] = 1,
	["schnappi"] = 1,
	["nirvana"] = 1,
	["16 bit"] = 1,
}

Main = function()
	local LuaVer = string.sub(_VERSION,1,7) -- Lua compability (copyed from Mutor ;) )
	if LuaVer == "Lua 5.1" then
		gc,mem = "collect",collectgarbage("count")
	elseif LuaVer == "Lua 5.0" then
		gc,mem = nil,gcinfo()
	else
		OnError("This script is incompatible with ".._VERSION)
	end
	collectgarbage(gc)
end

SearchArrival = function (user, data)
	if Prf[user.iProfile] == 1 then
		local s,e,what = string.find(data, "$Search %S+%s%S+?%S+?%S+?%S+?(.*)|")
		for deny,key in pairs(Bad) do
			for allow,key in pairs(Good) do
				if string.find(what,allow) then
					return 0
				end
				if string.find(what,deny) then
					user:SendData("$SR "..frmHub:GetHubSecAliasName().." Restrictions\\Search\\"..(what or "").."\\Search Blocked.<"..(what or "").."> is forbidden to search here!!"..string.char(5).."0 0/0"..string.char(5).."TTH:BADSEARCHBLOCKED ("..frmHub:GetHubIp()..":"..frmHub:GetHubPort()..")")
					return 1
				end
			end
		end
	end
	collectgarbage(gc)
end
Powered By Leviathan™ 2nd Generation v. 1.9

Vipertje

#8
If you read again then you have the problem :P its BCDC++ bug :S

and ptokax runs this scripts at the moment :
[01:14] Geen syntax errors in script bestand Death2AdultFinder.Compiled.L5.1.lua
[01:14] Geen syntax errors in script bestand RoboCopv10.023.lua
[01:14] Geen syntax errors in script bestand Watchdog1.0.lua
[01:14] Geen syntax errors in script bestand bypassuserip.lua
[01:14] Geen syntax errors in script bestand PMspy.lua

And BCDC++ runs :
[01:15] ** Started startup.lua **
[01:15]   ** Loaded formatting.lua **
[01:15]   ** Loaded uptime.lua **
[01:15]   ** Loaded ignore.lua **
[01:15]   ** Loaded kickfilter.lua **

what could it be

Vipertje

:S you id say that D2AF could be programmed 2 also chkken search requests from users is could that really be done?

bastya_elvtars

Search filtering is out of D2AF's scope IMHO.
Everything could have been anything else and it would have just as much meaning.

Vipertje

A friend of mine has D2AF and he has that he said 2 me :S

Madman

D2AF does not check search, it's only check pm's.
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Vipertje


SMF spam blocked by CleanTalk