Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[release]part of a Qt XorKeyBruteForcer

Skilled Illusionist
Joined
Jul 10, 2008
Messages
371
Reaction score
94
Hi all, here a small piece of code made with Qt in c++.

it's can help some people, who know what do with this.
the interresting part to look on this piece is the use of next_permutation algorithme from lib std in c++, with this you can iterate an array in all possible order to made what you want, here just a concat, to create a key to unxor the XORString.

you can set a filter condition to reduce number of resulte like only result starting with a letter or a string or what you want.

so now wait longer the piece of code have fun:

Code:
QString keypart[] = {keyPart1, keyPart2 ....., keypartN};
    keypartLenght = N;
    std::sort (keypart,keypart+14);
    do
    {
        QString tmpkey;
        QString tmp;

        for (int i = 0; i < keypartLenght; ++i)
        {
            tmpkey.append(keypart[i]);
        }
        tmp = XOR("XORStringTODecrypt", tmpkey);
        std::cout << "key: " << tmpkey.toAscii().data() << std::endl;
        if (filterCond == 1)
        {
            std::cout << tmp << std::endl;
        }
    }
    while (std::next_permutation(keypart,keypart+keypartLenght));

you can unhardcode the the keypart array and is length without difficulties, there is just a last point who can annoying some people.

have fun hope this can give some idea to some people who know what made with this.
 
Last edited:
Back
Top