Anit-Pub crazy...
 

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

Anit-Pub crazy...

Started by nErBoS, 27 January, 2004, 22:57:05

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nErBoS

Hi all,

Having a problem with tihs anti-pub:

--Modified By nErBoS 

botname = "Anti-Pub" 
trigs = {"dns2go","myftpsite","servebeer","mine.nu","ip.com","dynip","depecheconnect.com","zapto.org", 
   "staticip","serveftp","ipactive","ip.org","no-ip","servegame","gotdns.org","ip.net","ip.co.uk", 
   "ath.cx","dyndns","68.67.18.75","clanpimp","idlegames","sytes","unusualperson.com", 
   "24.184.64.48","uni.cc","151.198.149.60","homeunix","24.209.232.97","ciscofreak.com", 
   "deftonzs.com","24.187.50.121","flamenap","xs4all","serveftp","point2this.com","ip.info", 
   "myftp","d2g","151.198.149.60","24.184.64.48","orgdns","myip.org","stufftoread.com", 
   "ip.biz","dynu.com","mine.org","kick-ass.net","darkdata.net","ipme.net","udgnet.com","homeip.net", 
   "e-net.lv","newgnr.com","bst.net","bsd.net","ods.org","x-host","bounceme.net","myvnc.com", 
   "kyed.com","lir.dk","finx.org","sheckie.net","vizvaz.net","snygging.net","kicks-ass.com","nerdcamp.net", 
   "cicileu.","3utilities.com","myftp.biz","redirectme.net","servebeer.com","servecounterstrike.com", 
   "servehalflife.com","servehttp.com","serveirc.com","servemp3.com","servepics.com","servequake.com", 
   "damnserver.com","ditchyourip.com","dnsiskinky.com","geekgalaxy.com","net-freaks.com","ip.ca", 
   "securityexploits.com","securitytactics.com","servehumour.com","servep2p.com","servesarcasm.com", 
   "workisboring.com","hopto","64.246.26.135","213.145.29.222","dnsalias"} 

function Main() 
   frmHub:RegBot(botname) 
end 
    
function DataArrival(user, data) 
   if (not user.bOperator) then 
      if (( strsub(data, 1, 1) == "<" ) or ( strsub(data, 1, 4) == "$To:" )) then 
      for key,a in trigs do 
      if( strfind( strlower(data), key) ) then 
      local word = strlower(data), key 
      SendToAll(botname, "The user "..user.sName.." was ban for PUB." ) 
      user:SendData(botname, "You have been banned for PUB.") 
      SendPmToOps(botname, "The user "..user.sName.." was ban for PUB.") 
      SendPmToOps(botname, "The user IP was "..user.sIP.." .") 
      SendPmToOps(botname, "The user wrote : "..word) 
      user:Disconnect() 
      user:TempBan() 
      end 
      end 
      end 
   end 
end

Sometimes it ban me a user with no reason for eg:

-The user xxx was banned for PUB.
-User?s IP xxx.xxx.xxx.xxx .
-The user wrote: $to: nerbos from: userxxx $ estado: ausente / raz?o: insanidade temporaria!
--## nErBoS Spot ##--

plop

i see you modified it yourself so i'll give some hints about whats going wrong.
or better 2 say it actualy goes correct.
just using away mode on your hub is deathly.
execute the next script with the lua command line 2 see what is happening.
trigs = {"dns2go","myftpsite","servebeer","mine.nu","ip.com","dynip","depecheconnect.com","zapto.org", 
   "staticip","serveftp","ipactive","ip.org","no-ip","servegame","gotdns.org","ip.net","ip.co.uk", 
   "ath.cx","dyndns","68.67.18.75","clanpimp","idlegames","sytes","unusualperson.com", 
   "24.184.64.48","uni.cc","151.198.149.60","homeunix","24.209.232.97","ciscofreak.com", 
   "deftonzs.com","24.187.50.121","flamenap","xs4all","serveftp","point2this.com","ip.info", 
   "myftp","d2g","151.198.149.60","24.184.64.48","orgdns","myip.org","stufftoread.com", 
   "ip.biz","dynu.com","mine.org","kick-ass.net","darkdata.net","ipme.net","udgnet.com","homeip.net", 
   "e-net.lv","newgnr.com","bst.net","bsd.net","ods.org","x-host","bounceme.net","myvnc.com", 
   "kyed.com","lir.dk","finx.org","sheckie.net","vizvaz.net","snygging.net","kicks-ass.com","nerdcamp.net", 
   "cicileu.","3utilities.com","myftp.biz","redirectme.net","servebeer.com","servecounterstrike.com", 
   "servehalflife.com","servehttp.com","serveirc.com","servemp3.com","servepics.com","servequake.com", 
   "damnserver.com","ditchyourip.com","dnsiskinky.com","geekgalaxy.com","net-freaks.com","ip.ca", 
   "securityexploits.com","securitytactics.com","servehumour.com","servep2p.com","servesarcasm.com", 
   "workisboring.com","hopto","64.246.26.135","213.145.29.222","dnsalias"} 
  
data = "$to: nerbos from: userxxx $ estado: ausente / raz?o: insanidade temporaria!  "

for key,a in trigs do 
   if( strfind( strlower(data), key) ) then 
      print("key: "..key.."          a: "..a)
      print(data)
      print(gsub(data, key, " --"..key.."-- "))
   end
end

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

nErBoS

Yep i understand the Key sends the position of the array and the a sends the word so the error is in this line...

     if( strfind( strlower(data), key) ) then

need to change to..

     if( strfind( strlower(data), a) ) then

right ?? :)
--## nErBoS Spot ##--

plop

yep

btw the line under it can be removed, doesn't do anything which is used.

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

nErBoS

Thanks plop

Going to test it.

Best regards, nErBoS
--## nErBoS Spot ##--

nErBoS

Still doing the same thing : (
--## nErBoS Spot ##--

plop

try this.
--Modified By nErBoS 



botname = "Anti-Pub" 
trigs = {"dns2go","myftpsite","servebeer","mine.nu","ip.com","dynip","depecheconnect.com","zapto.org", 
   "staticip","serveftp","ipactive","ip.org","no-ip","servegame","gotdns.org","ip.net","ip.co.uk", 
   "ath.cx","dyndns","68.67.18.75","clanpimp","idlegames","sytes","unusualperson.com", 
   "24.184.64.48","uni.cc","151.198.149.60","homeunix","24.209.232.97","ciscofreak.com", 
   "deftonzs.com","24.187.50.121","flamenap","xs4all","serveftp","point2this.com","ip.info", 
   "myftp","d2g","151.198.149.60","24.184.64.48","orgdns","myip.org","stufftoread.com", 
   "ip.biz","dynu.com","mine.org","kick-ass.net","darkdata.net","ipme.net","udgnet.com","homeip.net", 
   "e-net.lv","newgnr.com","bst.net","bsd.net","ods.org","x-host","bounceme.net","myvnc.com", 
   "kyed.com","lir.dk","finx.org","sheckie.net","vizvaz.net","snygging.net","kicks-ass.com","nerdcamp.net", 
   "cicileu.","3utilities.com","myftp.biz","redirectme.net","servebeer.com","servecounterstrike.com", 
   "servehalflife.com","servehttp.com","serveirc.com","servemp3.com","servepics.com","servequake.com", 
   "damnserver.com","ditchyourip.com","dnsiskinky.com","geekgalaxy.com","net-freaks.com","ip.ca", 
   "securityexploits.com","securitytactics.com","servehumour.com","servep2p.com","servesarcasm.com", 
   "workisboring.com","hopto","64.246.26.135","213.145.29.222","dnsalias"} 

function Main() 
   frmHub:RegBot(botname) 
end 
    
function DataArrival(user, data) 
   if (not user.bOperator) then 
      if (( strsub(data, 1, 1) == "<" ) or ( strsub(data, 1, 4) == "$To:" )) then 
         for i=1,getn(trigs) do 
            if( strfind( strlower(data), trigs[i]) ) then 
               SendToAll(botname, "The user "..user.sName.." was ban for PUB." ) 
               user:SendData(botname, "You have been banned for PUB.") 
               SendPmToOps(botname, "The user "..user.sName.." was ban for PUB.") 
               SendPmToOps(botname, "The user IP was "..user.sIP.." .") 
               SendPmToOps(botname, "The user wrote : "..trigs[i]) 
               user:Disconnect() 
               user:TempBan()
               break
            end 
         end 
      end 
   end 
end
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 <----<<

nErBoS

#7
Now isn?t working :(
--## nErBoS Spot ##--

nErBoS

Sorry about the last reply it works greatly I hada another trigs with positions.

Thanks a lot plop.

Best regards, nErBoS.
--## nErBoS Spot ##--

plop

QuoteOriginally posted by nErBoS
Sorry about the last reply it works greatly I hada another trigs with positions.

Thanks a lot plop.

Best regards, nErBoS.
yw.

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