Author Topic: virus.lua  (Read 1826 times)

0 Members and 1 Guest are viewing this topic.

Offline Annie

  • Double Ace
  • *
  • Posts: 104
  • Karma: +13/-5
virus.lua
« on: 28 February, 2008, 13:57:31 »
Please can I get this converted because it wont work in the new ptokax hub   thanks :)

Code: [Select]
--// -  GeceBekcisi'nin yazdigi HubBekcisi s?r?m 0.5 ten alintidir

--// -  Stripped from HubBekcisi v0.5 by GeceBekcisi

--// ------------------------------------------------------------------------------------------------------------ --

--// -  Features: Simple Win32.Tibick detection

--// ------------------------------------------------------------------------------------------------------------ --

--------------------------------------------------------------------------------------------------------------------

--// Global Settings

--------------------------------------------------------------------------------------------------------------------

sBot = frmHub:GetHubBotName() -- Bot's Name ( leave so if you don't want to use a special name for your bot )

sRdAd = frmHub:GetRedirectAddress() -- Redirect address ( leave so if you want users to be redirected to the default redirect address )

sRedirect = "off" -- Redirect detected users ( on / off )

sInform = "on" -- Inform user why he was banned / disconnected ( on / off )

sFeed = "on" -- Feed about detected users ( on / off )

sFeedType = "OPS" -- "OPS" for Pm to ops, "NICK" for pm to specified nick below

sFeedNick = "Admin" -- Enter nick to send feeds if NICK selected above

sKickType = "BAN" -- "DSC" to disconnect user, "BAN" to timeban user for specified minutes below

iTimeBan = "60" -- TimeBan time in minutes if BAN selected above

--------------------------------------------------------------------------------------------------------------------

-- Some notes about Kick Type setting

-- Disconnecting may cause feed spam if a popular hub with feed turned on

-- TimeBanning fixes feed spam but may cause a slow hub because of huge banlist

--------------------------------------------------------------------------------------------------------------------

--// AntiVirus begins

--------------------------------------------------------------------------------------------------------------------

function MyINFOArrival(curUser, sData)

if curUser.sEmail and string.find(curUser.sEmail, "myemail@host.com") then

if sFeed == "on" then

if sFeedType == "OPS" then

SendPmToOps(sBot, "A user from IP "..curUser.sIP.." is trying to login with Win32.Tibick virus but stopped.")

else

SendPmToNick(sFeedNick, sBot, "A user from IP "..curUser.sIP.." is trying to login with Win32.Tibick virus but stopped.")

end

end

if sInform == "on" then

curUser:SendData(sBot, "Your DC++ system is infected by Win32.Tibick virus. Please clean it before entering our hub!")

curUser:SendData(sBot, "For more info double click: http://www3.ca.com/securityadvisor/virus...s.aspx?id=40789")

end

if sRedirect == "on" then

curUser:Redirect(sRdAd, " Get an AntiVirus software! ")

end

if sKickType == "DSC" then

curUser:Disconnect()

else

curUser:TimeBan(iTimeBan)

end

return 1

end

end


thanks

PtokaX forum

virus.lua
« on: 28 February, 2008, 13:57:31 »

Toast

  • Guest
Re: virus.lua
« Reply #1 on: 28 February, 2008, 23:09:24 »
or use AML instead with kick on detection

Offline Annie

  • Double Ace
  • *
  • Posts: 104
  • Karma: +13/-5
Re: virus.lua
« Reply #2 on: 29 February, 2008, 08:54:34 »
thank you American Idiot :D

PtokaX forum

Re: virus.lua
« Reply #2 on: 29 February, 2008, 08:54:34 »