Kill Ptokax 0.330 v15.25
 

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

Kill Ptokax 0.330 v15.25

Started by Zigurds, 23 April, 2004, 16:05:12

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zigurds

Tested version 15.18, 15.24 and 15.25

Kill Ptokax, when long text in $MyINFO  and when  flood

Write Antikill

--- Written by oollee

Bot = ANTI-KILL

l = {}
r = {}

function Main()
  frmHub:EnableFullData(1)
end

function UserDisconnected(user)
  if l[user.sName] then
    l[user.sName] = nil
  end
  if r[user.sName] then
    r[user.sName] = nil
  end
end

function DataArrival(user,data)
  if strsub(data, 1, 7) == "$MyINFO" then
    if(strlen(data)>130) then
      user:SendData("*** Your $MyINFO tags is to long!")
      user:Disconnect()
    end
    local sec = Jmn()

    if not l[user.sName] then
      l[user.sName] = sec;
    end

    if not r[user.sName] then
      r[user.sName] = 0;
    end

    local u = sec - l[user.sName]
    r[user.sName] = r[user.sName] + 1

    if u < 2 then
      if r[user.sName] > 4 then
        l[user.sName] = nil
        r[user.sName] = nil
        user:Disconnect()
        return 1;
      end
    else
      l[user.sName] = sec
      r[user.sName] = 0
      return 0;
    end
  end
end

function Jmn()
  D = tonumber(date("%d"))
  H = tonumber(date("%H"))
  min = tonumber(date("%M"))
  sec = tonumber(date("%S"))
  Y = tonumber(date("%Y"))
  M = tonumber(date("%m"))
    if M <= 2 then
      M = M + 12
      Y=Y-1
    end
        mn = 1440*(floor(Y*365,25) + floor((M+1)*30,6) + D -428) + H*60 + min + sec
        return mn
end
---------------------


Sorry my bad languages
-------------------------------------
owner for Latvian hub ALFA

MrZ

Hia

and could u pls explain a bit moore :))

what is it and what does it...sorry if stupid quest
Always remember that you are unique... just like everyone else :-D

Zigurds

bad my English, sorry

hub kill, from it  long text  to

[16:06] (81.198.128.209) > $Key 0?F?????????r 3??aP#"QA???/%DCN000%/E ?B??/%DCN096%/???&|
[16:06] (81.198.128.209) > $ValidateNick AntonKiller|
[16:06] AntonKiller (81.198.128.209) > $Version 1.0091|
[16:06] AntonKiller (81.198.128.209) > $MyINFO $ALL AntonKiller <++ V:0.306,M:A,H:1/0/0,S:10>$ $DSL-$$172456789422$|
[16:06] AntonKiller (81.198.128.209) > $MyINFO $ALL AntonKiller 0                     - ABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABC<++V:0.306,M:A,H:1/0/0,S:10>$ $DSL-$$38456789422$|
[16:06] x User removed: AntonKiller (Socket 316)

Sorry my bad languages
-------------------------------------
owner for Latvian hub ALFA

MrZ

:)) no problem... tnx
Always remember that you are unique... just like everyone else :-D

[G-T-E]Gate?

any chance on a better explaination on that Anti Kill

plop

QuoteOriginally posted by [G-T-E]Gate?
any chance on a better explaination on that Anti Kill
the myinfo string is 2 long which ptokax cuts 2 size but it can crash ptokax.
fixed in the latest beta's.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

SMF spam blocked by CleanTalk