Jump to content

Recommended Posts

Hi there,
I recently added Okey card system which is working fine but when i scanned the exe it is showing virus which is blocked by windows defender 
https://metin2.download/picture/5tkiiUhlgLQcU5i7Y48n0z72WI6xJt7g/.png

h5jdsmmainly in this line when i disabled its not showing virus but once i enable it and compiled exe is with 2 virus..which is win32.trojan
 

        else if ("info" == TokenVector[1])
        {
            if (14 != TokenVector.size())
            {
                TraceError("CPythonNetworkStream::ServerCommand(c_szCommand=%s) - Strange Parameter Count : %s", c_szCommand);
                return;
            }
            DWORD card_in_hand_1 = atoi(TokenVector[2].c_str());
            DWORD card_in_hand_1_v = atoi(TokenVector[3].c_str());
            DWORD card_in_hand_2 = atoi(TokenVector[4].c_str());
            DWORD card_in_hand_2_v = atoi(TokenVector[5].c_str());
            DWORD card_in_hand_3 = atoi(TokenVector[6].c_str());
            DWORD card_in_hand_3_v = atoi(TokenVector[7].c_str());
            DWORD card_in_hand_4 = atoi(TokenVector[8].c_str());
            DWORD card_in_hand_4_v = atoi(TokenVector[9].c_str());
            DWORD card_in_hand_5 = atoi(TokenVector[10].c_str());
            DWORD card_in_hand_5_v = atoi(TokenVector[11].c_str());
            DWORD cards_left = atoi(TokenVector[12].c_str());
            DWORD points = atoi(TokenVector[13].c_str());
            PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "BINARY_Cards_UpdateInfo", Py_BuildValue("(iiiiiiiiiiii)", card_in_hand_1, card_in_hand_1_v, card_in_hand_2, card_in_hand_2_v,
                                                                                                card_in_hand_3, card_in_hand_3_v, card_in_hand_4, card_in_hand_4_v, card_in_hand_5, card_in_hand_5_v,
                                                                                                cards_left, points));
        }

the total addition in pythonNetworkStreamCommand.cpp is attached if not i post here 

   else if (!strcmpi(szCmd, "cards"))
    {
        if (TokenVector.size() < 2)
        {
            TraceError("CPythonNetworkStream::ServerCommand(c_szCommand=%s) - Strange Parameter Count : %s", c_szCommand);
            return;
        }
        if ("open" == TokenVector[1])
        {
            DWORD safemode = atoi(TokenVector[2].c_str());
            PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "BINARY_Cards_Open", Py_BuildValue("(i)", safemode));
        }
        else if ("info" == TokenVector[1])
        {
            if (14 != TokenVector.size())
            {
                TraceError("CPythonNetworkStream::ServerCommand(c_szCommand=%s) - Strange Parameter Count : %s", c_szCommand);
                return;
            }
            DWORD card_in_hand_1 = atoi(TokenVector[2].c_str());
            DWORD card_in_hand_1_v = atoi(TokenVector[3].c_str());
            DWORD card_in_hand_2 = atoi(TokenVector[4].c_str());
            DWORD card_in_hand_2_v = atoi(TokenVector[5].c_str());
            DWORD card_in_hand_3 = atoi(TokenVector[6].c_str());
            DWORD card_in_hand_3_v = atoi(TokenVector[7].c_str());
            DWORD card_in_hand_4 = atoi(TokenVector[8].c_str());
            DWORD card_in_hand_4_v = atoi(TokenVector[9].c_str());
            DWORD card_in_hand_5 = atoi(TokenVector[10].c_str());
            DWORD card_in_hand_5_v = atoi(TokenVector[11].c_str());
            DWORD cards_left = atoi(TokenVector[12].c_str());
            DWORD points = atoi(TokenVector[13].c_str());
            PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "BINARY_Cards_UpdateInfo", Py_BuildValue("(iiiiiiiiiiii)", card_in_hand_1, card_in_hand_1_v, card_in_hand_2, card_in_hand_2_v,
                                                                                                card_in_hand_3, card_in_hand_3_v, card_in_hand_4, card_in_hand_4_v, card_in_hand_5, card_in_hand_5_v,
                                                                                                cards_left, points));
        }
        else if ("finfo" == TokenVector[1])
        {
            if (9 != TokenVector.size())
            {
                TraceError("CPythonNetworkStream::ServerCommand(c_szCommand=%s) - Strange Parameter Count : %s", c_szCommand);
                return;
            }
            DWORD hand_1 = atoi(TokenVector[2].c_str());
            DWORD hand_1_v = atoi(TokenVector[3].c_str());
            DWORD hand_2 = atoi(TokenVector[4].c_str());
            DWORD hand_2_v = atoi(TokenVector[5].c_str());
            DWORD hand_3 = atoi(TokenVector[6].c_str());
            DWORD hand_3_v = atoi(TokenVector[7].c_str());
            DWORD points = atoi(TokenVector[8].c_str());
            PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "BINARY_Cards_FieldUpdateInfo", Py_BuildValue("(iiiiiii)", hand_1, hand_1_v, hand_2, hand_2_v, hand_3, hand_3_v, points));
        }
        else if ("reward" == TokenVector[1])
        {
            if (9 != TokenVector.size())
            {
                TraceError("CPythonNetworkStream::ServerCommand(c_szCommand=%s) - Strange Parameter Count : %s", c_szCommand);
                return;
            }
            DWORD hand_1 = atoi(TokenVector[2].c_str());
            DWORD hand_1_v = atoi(TokenVector[3].c_str());
            DWORD hand_2 = atoi(TokenVector[4].c_str());
            DWORD hand_2_v = atoi(TokenVector[5].c_str());
            DWORD hand_3 = atoi(TokenVector[6].c_str());
            DWORD hand_3_v = atoi(TokenVector[7].c_str());
            DWORD points = atoi(TokenVector[8].c_str());
            PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "BINARY_Cards_PutReward", Py_BuildValue("(iiiiiii)", hand_1, hand_1_v, hand_2, hand_2_v, hand_3, hand_3_v, points));
        }
        else if ("icon" == TokenVector[1])
        {
            if (2 != TokenVector.size())
            {
                TraceError("CPythonNetworkStream::ServerCommand(c_szCommand=%s) - Strange Parameter Count : %s", c_szCommand);
                return;
            }
            PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "BINARY_Cards_ShowIcon", Py_BuildValue("()"));
        }
    }	


any solution ?

 

IMG_30102017_190341_0.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/17215-virus-while-compiling-with-okey-system/
Share on other sites

  • Replies 9
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

1 hour ago, Dobrescu Sebastian said:

Send them an email.

Or pack with enigma protector.

 

57 minutes ago, tierrilopes said:

Contact the company regarding the false positive. They should have a file submit for those situations.

thanks guys i will contact them and ask about it :)

On 11/3/2017 at 11:31 PM, tierrilopes said:

Here's the link btw:

This is the hidden content, please

My Symantec Antivirus and even Windows Defender is deleting the Immortals2.exe  even though on Virustotal.com it shows as clean.For temporary solution I have to added the exe to exclusion list and disabled my antivirus and windows defender.

Any other advice or solution you can give?

  • Premium

The best way is contacting the companies so they can manually check the file, see that it was a false positive and then whitelist them on their software:

https://submit.symantec.com/false_positive/

https://www.microsoft.com/en-us/wdsi/filesubmission

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.