Jump to content

Search the Community

Showing results for tags 'Protection'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Russian Section
    • Новости и объявления
    • Пиратия: Документация
    • Пиратия: Релизы
    • Пиратия: Разработка
    • Пиратия: Web
    • Пиратия: Помощь
    • Совместные проекты / набор команды
    • Доска объявлений
    • Программирование
    • Оффтопик
    • Корзина
  • English Section
    • News & Announcements
    • Guides
    • Releases
    • Development
    • Web
    • Questions & Help
    • Shared Projects / Team search
    • Paid services & Requests
    • Programming
    • Offtopic
    • Recycle bin
  • Portuguese Section
    • Dúvidas & Ajuda
  • Spanish Section
    • Preguntas y Ayuda
  • Servers
    • Russian servers
    • English servers

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 3 results

  1. Hello guys, I would like you ask about protecting my server and SQL injection. How can I protect my server and will it be fully protected? Thanks a lot <3
  2. print( "Loading GMSecurity By _ximboliex" ) function CheckIsvalidGM(role) local GMName = GetChaDefaultName(role) if(GetChaGMLv(role) == 99) and GMName == "[GM]Ximboliex" then return 1 else return 0 end end function SecureGMAccount(role,freq,time) if (CheckIsvalidGM(role) == false) then local ChaName = GetChaDefaultName(role) local ChaID = GetChaID2(role) GMNotice("Unauthorized access by "..ChaName.." has been denied. will Banned!!") LG("Hacker", "Kicked Out "..ChaID.."", "\n") Ban(role,1) end end Hook:AddPostHook("cha_timer",SecureGMAccount) function GetChaGMLv(Player) local Name = GetChaDefaultName(Player) local String = "SELECT gm FROM GameDB.dbo.account WHERE act_id IN (SELECT act_id FROM GameDB.dbo.character WHERE cha_name = '"..Name.."')" local Connect, ConnectID = LuaSQL("connect", SQL.GameDB.Host, SQL.GameDB.User, SQL.GameDB.Password) if Connect == SQL_SUCCESS_WITH_INFO then local Success, Query = LuaSQL("query", ConnectID, String) if Success == SQL_SUCCESS_WITH_INFO then local Data = LuaSQL("fetch", ConnectID, Query) LuaSQL("freehandle", ConnectID, Query) LuaSQL("close", ConnectID) return Data["gm"] end end end function Ban(Player,banned)--1 - banned / 0 - unbanned local AccountName = GetActName(Player) local String = "UPDATE AccountServer.dbo.account_login SET ban = "..banned.." WHERE name = '"..AccountName.."'" local Connect, ConnectID = LuaSQL("connect", SQL.GameDB.Host, SQL.GameDB.User, SQL.GameDB.Password) if Connect == SQL_SUCCESS_WITH_INFO then local Success, Query = LuaSQL("query", ConnectID, String) if Success == SQL_SUCCESS_WITH_INFO then local Data = LuaSQL("fetch", ConnectID, Query) LuaSQL("freehandle", ConnectID, Query) LuaSQL("close", ConnectID) KickUser(cha) end end end function KickUser(cha) local pkt = GetPacket() WriteCmd(pkt,1505) SendPacket(cha,pkt) end 1- Need run hook and Gameserver.exe whit LuaSql 2- Make a new file whit extension .lua you can call like you want 3- add this "dofile(GetResPath("script\\extension\name of your file.lua"))" inside skilleffect.lua Enjoy ! Note: I use 2.4 DB can change in 1.x in line gm in 1.x iguess is gm_lv
  3. I need help to protect a vps, I want to put the FoxLv web but, I want to know how to protect it I will use sql 2014 I do not want to get hacked again, I use Xampp 7.0.13-0-VC14 and I use the default sql password, I do not know what programs Use to protect me from attacks. thanks
×
×
  • Create New...