Jump to content
metin2dev
  • 0
Sign in to follow this  
FlorinMarian

UltimateProtection by FrankieCommando

Question

Hello guys !

I want to write a clean code using Frankie Commando release ( I think it's best free protection at this moment).

Some help to remove encrypted syntaxes?

Encryption functions:

Spoiler

#include "stdafx.h"

std::string FromHex(const std::string& in) {
    std::string output;
    if ((in.length() % 2) != 0) {
        FILE *f=fopen("HackShield.Config.Error.txt", "w");
        fputs("[HackShield] Error while decrypting this text: ", f);
        fputs(in.c_str(), f);
        fputs("\n", f);
        fclose(f);
        exit(-1);
        return "";
    }
    size_t cnt = in.length() / 2;
    for (size_t i = 0; cnt > i; ++i) {
        unsigned long int s = 0;
        std::stringstream ss;
        ss << std::hex << in.substr(i * 2, 2);
        ss >> s;
        output.push_back(static_cast<unsigned char>(s));
    }
    return output;
}

std::string UltimateCipher(std::string Str) {
    char Key[3] = { 'A', 'B', 'C' };
    std::string Encrypted = Str;
    for (unsigned int i = 0; i<Str.size(); i++) Encrypted = Str ^ Key[i % (sizeof(Key) / sizeof(char))];
    return Encrypted;
}

std::string UltimateDecrypt(std::string MyString) {
    return UltimateCipher(FromHex(MyString));
}

 

Example of encypted part code:

UltimateDecrypt("122d242e371c1511051e170a")

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Since it's released it will be easy to create fixes for this protection, so I don't recommend using it.

Share this post


Link to post
Share on other sites
  • 0
8 hours ago, Denis Sensei said:

Since it's released it will be easy to create fixes for this protection, so I don't recommend using it.

Thank you for recommends but what another protection you purpose ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×