PtokaX forum

Archive => Archived 5.0 boards => Finished Scripts => Topic started by: -RICK- on 23 April, 2006, 01:51:54

Title: Temp files blocker / preteen blocker V2.6 0.3.5.1.lua5.0 (5.0 updated)
Post by: -RICK- on 23 April, 2006, 01:51:54
-- version V 2.4

-- Fake file blocker V 1.02
-- -RICK- 20-04-2006
-- Lua 5.0
-- Used blockpart from UniBlock 1.0 LUA 5 By Mutor
-- And? Advanced BadFile Active Search // Stripped from Thor 6 By: NightLitch 2005-03-04
-- User blocked is blocked for searching and downloading (user stays in hub but cant do shit until he gets Unblocked)
-- Created for users with .DCTMP and? .Dat files ect
-- User will receive a message that his search and downloadfunction is disabled. Only an OP can reset this function ore user has to reconnect
-- Fake users wil be stored in a table and can be removed by an OP using a RC command
-- U can use a raw command sent from your client ( !block <Username> ) But the inbuild check will do the trick i gues
-- Raw command example for your client? ? ? ?$<%[mynick]> !block %[nick] |
-- Added V 1.03
-- Added autosearch with badfiletable (autosearch wil add users to blocklist)
-- NOTE Udp and TCP port cant be the same port (in ptokax) Use 2 different ports
-- Added V 1.04
-- When User blocked by bot and share is corrected the block wil be disabled after a few minutes (not on raw command or by RC Block)
-- Debugged V 1.05
-- Repeating Unblock after share fix
-- Added V 1.06
-- Show messages on / off
-- Debugged V 1.07
-- Made a extra check on fake files (Sometimes check failed)
-- Added v1.08
-- search respond message? (thx to mutor)
-- Kick after XX checks
-- Added v1.09
-- Block badsearch (preteen ect)
-- Debugged minor error in RC unblock
-- Added v2.0
-- (on request)
-- Check search preteen? on/off
-- Kick for searching Preteen? on/off
-- Added v2.1
-- Show logs
-- Kick after XX preteen searches
-- Added v2.2
-- Kick/ tempban /ban? for Preteen and TemFiles
-- Added v2.2a
-- RC menu name (on request)
-- Added v2.2b
-- alligened sign in message (on request)
-- Added 2.3
-- added a advanced helpfile send with warn (user can navigate within it)
-- Added 2.4
--Changed some minor bugs
--Added settings command
--Added Helptext.txt
--Added help command (for users)

-- thx fox for helping me with my typo addiction :)





The script wil search for temp files when found the users search function will be blocked and it wil be shown is searchresults
The script wil recheck user if check is 3 times oke the block will be removed
After XX checks the user will be kicked (the user get some time to remove it)
It wil also check what users are searching for (r@ygold ect) and block
the search the user sees the block in search window and gets a pm

settings can be done in Fakesettings.cfg

Note UDP and TCP port from ptokax has to be different ports

*** User [psv][NL]Sushi has been blocked for? sharing of incomplete downloads. Mijn muziek\Richard Thompson, John Cale & Shawn Colvin - Heartbreak Hotel..dctmp 5.1 MB

*** User [nl]kniekous share is clean al block functions are cleared

*** User POSOFLU[NL] has been kicked because : Sharing Unfinished files and is checked 50 Times

*** testuservoortemp IP: 87.74.101.117 Is searching For childporn

*** testuservoortemp kicked because: Searching 3 Time(s) for Preteen porn..

updated it for 0.3.5.1.lua5.0
--Added Fake.exe settings generator
(i uploaded it agian forgot to remove 1 SendToAll) :)

-- debugged missed a return 1


Have fun with it? -RICK-
Title: Re: Dctmp download10 ect check kick and messages
Post by: bluebear on 23 April, 2006, 08:08:42
Quote-- NOTE Udp and TCP port cant be the same port (in ptokax) Use 2 different ports

hmm.. Why not?

You can have ptokax run at TCP port 411,
and the TCP and UDP for the script at port 410 if u wish to do so hehe
Title: Re: Dctmp download10 ect check kick and messages
Post by: PPK on 23 April, 2006, 20:31:26
$SR is returned to UDP for active search requests ::) For passive search request is used TCP and $SR returned to hub  8)
Title: Re: Dctmp download10 ect check kick and messages
Post by: GanjaMan on 25 April, 2006, 16:20:20
Greets,

I get this error: ........\scripts\fakefileblocker.lua: bad header in precompiled chunk

who can help?

thnx,
GanjaMan
Title: Re: Dctmp download10 ect check kick and messages
Post by: Psycho_Chihuahua on 25 April, 2006, 16:35:49
are you trying to use it with a Lua 5.1 Hub?
normally that error is because of trying to use a Lua 5.02 Hub with the compiled Lua 5.1 script  ;)

but this is just a guess because i'm using Ptokax f0 which is Lua 5.02
Title: Re: Dctmp download10 ect check kick and messages
Post by: GanjaMan on 25 April, 2006, 16:43:38
yep, lua 5.1
Title: Re: Dctmp download10 ect check kick and messages
Post by: GanjaMan on 26 April, 2006, 17:29:17
oops stupid me  ;)
I didnt see, just thought it was 5.1 because it was posted in this 5.1 part of the forum :)

thnx
Title: Re: Dctmp download10 ect check kick and messages
Post by: bastya_elvtars on 26 April, 2006, 18:10:17
Moved to 5.0.2 section.
Title: Re: Dctmp download10 ect check kick and messages
Post by: -RICK- on 26 April, 2006, 22:23:57
yup my mistake :)
Title: Re: Dctmp download10 ect check kick and messages V2.2
Post by: QuikThinker on 27 April, 2006, 19:47:02
Can u include an option where u can edit the right-click menu name so it can be independant from the bot name.
Title: Re: Dctmp download10 ect check kick and messages V2.2
Post by: -RICK- on 27 April, 2006, 20:17:10
I added it for u (download latest version)
Title: Re: Dctmp download10 ect check kick and messages V2.2
Post by: QuikThinker on 27 April, 2006, 21:48:27
2 things.

1) -- RC menu name
---------------------------
["RC"] = "[?] Bad File Checker",


But the right-clicker is still usin the botname instead of the aforementioned name.

2) [21:39:30] <?MESSIAH?> Type !shelp to see the available script commands for your profile.
[21:39:30] <?MESSIAH?> 64 rightclick commands sent to you by FreshStuff.
[21:39:30] ?MESSIAH?
*** This hub is protected for temp files  Fake file Blocker V 2.2 By -RICK- 


Is it possible to align the hub protection message so it's on the correct line and so it displays the bot correctly i.e. <?MESSIAH?> instead of ?MESSIAH? ?

Nice script tho, keep workin on it  ;)
Title: Re: Dctmp download10 ect check kick and messages V2.2
Post by: Markitos on 28 April, 2006, 08:38:17
Hi -Rick-, could you make your script open source???
Title: Re: Dctmp download10 ect check kick and messages V2.2
Post by: -RICK- on 28 April, 2006, 11:52:08
in the attachment u find the uncompiled lua  have fun with it
Title: Re: Dctmp download10 ect check kick and messages V2.2
Post by: Markitos on 28 April, 2006, 18:28:34
Quote from: -RICK- on 28 April, 2006, 11:52:08
in the attachment u find the uncompiled lua  have fun with it
Thanks.
Title: Re: Dctmp download10 ect check kick and messages V2.2
Post by: QuikThinker on 28 April, 2006, 22:29:24
Any update on my things yet man, I can't wait 2 implement the script!
Title: Re: Dctmp download10 ect check kick and messages V2.2
Post by: DEEP-GOA on 29 April, 2006, 11:21:10
hiho -RICK-
great script!
request: u can add a "silent" function?

-- where send messages
-------------------------------------
Sendto = 0          -- 2 = silent  1 = opchat  0 = to HubBotName

thx & zakaboom
Title: Re: Dctmp download10 ect check kick and messages V2.2
Post by: -RICK- on 30 April, 2006, 22:59:36
messeges on off is already inbuild

-- Show the blockmessages
-----------------------------------------
ShowMessages = 1? ? -- 1 = on? 0 = off

and the rc name ect i will change it now

Download 2.3
alligned loginmessage
and RC name
added a advanced helpfile send with warn
Title: Re: Temp files blocker / preteen blocker V2.4 UPDATED
Post by: eyklidis on 07 July, 2006, 15:15:24
Hi Rick? :)

Nice update but i still havent find the right way to block passive users .. I have 2 ports open for ptokax 411 TCP and 412 UDP is this correct ?? ::)
I tried to use a client using the adl search and it blocks all users with no problem! but the autocheck function is not functioning good then :P So i dont know what do i have to do in the script to work for both active and passive mode.

Is it also maybe possible to add a command like !checkfiles %[line:on/off]? or similar function?
And last question if possible the above maybe also possible to set serten hours to check with a timer ? :P

Thanks a lot
Title: Re: Temp files blocker / preteen blocker V2.4 UPDATED
Post by: [HE]Newbie on 24 July, 2006, 15:40:13
Can't wait till -RICK- converts this to Lua5.1
Title: Re: Temp files blocker / preteen blocker V2.6 0.3.5.1.lua5.0
Post by: -RICK- on 27 July, 2006, 10:21:03
rewrote it for latest lua 5.0 version
added fake.exe settingsgenerator

when i have some spare time i wil concert it to lua 5.1

;D
Title: Re: Temp files blocker / preteen blocker V2.6 0.3.5.1.lua5.0
Post by: cowboydaddy on 27 July, 2006, 15:16:48
i did test it what a nice script and so complete with the generator nice one again rick