[Help] Disable Admin Tool in the Preserver

Results 1 to 4 of 4
  1. #1
    Apprentice lynb992 is offline
    MemberRank
    Jul 2015 Join Date
    8Posts

    big grin [Help] Disable Admin Tool in the Preserver

    Hi
    how to disable admintool on preserver , imserver ?
    sorry my english
    Last edited by Future; 18-05-16 at 12:24 PM. Reason: Tagged properly / added descriptive title (feel free to change that but do say what you're talking about)


  2. #2
    Valued Member 4TheEnjoy is offline
    MemberRank
    Feb 2016 Join Date
    109Posts

    Re: Help (Preserver)

    edit allowtoolip on global.cfg

  3. #3
    [Help] Disable Admin Tool in the Preserver Future is offline
    LegendRank
    Dec 2011 Join Date
    2,265Posts

    Re: [Help] Disable Admin Tool in the Preserver

    Editing the allowed tool ips by removing all entries would only prevent you completely from using it the proper way. Even without any allowed tool user IPs the tools will still work due to several exploits in the binaries.

    @Aesir perfectly explained first countermeasures here:

    Quote Originally Posted by Aesir View Post
    In GlobalGameServer.cpp check the final return in the CheckAllowedToolIP method:
    Code:
    BOOL CGlobalGameServer::CheckAllowedToolIP(char *i_szToolIP)
    {
    //    if(IS_SCADMINTOOL_CONNECTABLE_IP(i_szToolIP))
    //    {
    //        g_pGlobalGameServer->WriteSystemLogEX(TRUE, "  [Notify] CheckAllowedToolIP ==> Allowed (%s)\r\n", i_szToolIP);
    //        return TRUE;
    //    }
    
        // Aesir - 15/12/2015 - GR ServerAdmin Custom Access start
        if (IS_GR_SERVER_ADMIN(i_szToolIP))
        {
            g_pGlobalGameServer->WriteGRSystemLogEX(TRUE, "  [Notify] CheckAllowedToolIP ==> GenoRivals ServerAdmin Connected! (%s)\r\n", i_szToolIP);
            return TRUE;
        }
        // Aesir - 15/12/2015 - GR ServerAdmin Custom Access end
    
        for (int i = 0; i < m_AllowedToolIPList.size(); i++)
        {
            if (0 == strncmp(m_AllowedToolIPList[i].c_str(), i_szToolIP, strlen(m_AllowedToolIPList[i].c_str())))
            {        
                g_pGlobalGameServer->WriteSystemLogEX(TRUE, "  [Notify] CheckAllowedToolIP ==> Allowed (%s)\r\n", i_szToolIP);
                return TRUE;
            }
        }
    
        g_pGlobalGameServer->WriteSystemLogEX(TRUE, "  [WARNING] [HACKREPORT] CheckAllowedToolIP ==> Not Allowed (%s) !!\r\n", i_szToolIP);
        return FALSE;
    }
    and in PreIOCPSocket.cpp, under the OnRecvdPacketPreServer method, inside the T_PA_ADMIN_CONNECT case write after the
    Code:
    if(g_pPreGlobal->CheckAllowedToolIP(this->GetPeerIP()))
                    {
                        STRNCPY_MEMSET(m_szAdminAccountName, msgAdminConnect->UID, SIZE_MAX_ACCOUNT_NAME);        // 2007-06-20 by cmkwon, °èÁ¤ ºí·°Á¤º¸ ½Ã½ºÅÛ ·Î±×¿¡ Ãß°¡
                        msgAdminConnectOK->AccountType0 = g_pGlobalGameServer->AuthAdminToolUser(msgAdminConnect->UID, msgAdminConnect->PWD);
                    }
                    else
                        Close();
    This is not an advanced solution but it work as it :)

  4. #4
    Apprentice lynb992 is offline
    MemberRank
    Jul 2015 Join Date
    8Posts

    information Re: [Help] Disable Admin Tool in the Preserver

    3252.jpg



Advertisement