[Release] Solitaire Reversals

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

till0sch

Respected Hacker
Dank Tier VIP
Dank Tier Donator
Oct 14, 2012
1,104
12,593
51
Solitaire reversals (x64, MD5 5bacfd51d926774c8dd8028bec9b4374)

Needed later for card addresses.

"solitaire.exe"+000BAFA8 +0x80 +0x0

C++:
__int64 GetGameDeck()
{
	__int64 retval;
	ReadProcessMemory(GetCurrentProcess(), (LPCVOID) ((__int64)GetModuleHandle(0)+0xBAFA8), &retval, 8, 0);
	retval += 0x80;
	ReadProcessMemory(GetCurrentProcess(), (LPCVOID) (retval), &retval, 8, 0);	
	return retval;
}

These require to set a string together. e.g. "AceOfSpades" or "TwoOfHearts".

C++:
typedef __int64 (__fastcall *t_GetCardByName) (__int64 a1, __int64 a2);
t_GetCardByName oGetCardByName = (t_GetCardByName) ((__int64)GetModuleHandle(0)+0x72570);

__int64 GetCardByName(wchar_t CardName[])
{
	return oGetCardByName(GetGameDeck(), (__int64)CardName);
}

Flip a card by card address.

C++:
typedef int(__fastcall *t_FlipCard) (__int64 a1, char a2, char a3);
t_FlipCard oFlipCard = (t_FlipCard) ((__int64)GetModuleHandle(0)+0x7684c);

void FlipCard(__int64 Card)
{
	oFlipCard(Card, 0, 1);
	oFlipCard(Card, 1, 1);
}

Enable a card (make it clickable). Use together with FlipCard().

C++:
typedef int(__fastcall *t_EnableCard) (__int64 a1, char a2);
t_EnableCard oEnableCard = (t_EnableCard) ((__int64)GetModuleHandle(0)+0x768E0);

void EnableCard(__int64 Card)
{
	oEnableCard(Card, 1);
}

Gets a cardstack by name, which can then be used to get the stack ID.

C++:
typedef int(__fastcall *t_GetCardStackByCardName)(__int64 a1, __int64 a2);
t_GetCardStackByCardName oGetCardStackByCardName = (t_GetCardStackByCardName) ((__int64)GetModuleHandle(0)+0x7264C);

__int32 GetCardStackByCardName(wchar_t CardName[])
{
	return oGetCardStackByCardName(GetGameDeck(), (__int64)CardName);
}

Gets us the stack ID (1-7) by a stacks' address.

C++:
__int32 GetStackIDByStack(__int32 Stack)
{
	__int32 retval=0;
	ReadProcessMemory(GetCurrentProcess(), (LPCVOID)(Stack+0x130), &retval, 4, 0);
	return retval;
}
 
Last edited:

till0sch

Respected Hacker
Dank Tier VIP
Dank Tier Donator
Oct 14, 2012
1,104
12,593
51
Best thread EVER!
Thanks;) I'll add some examples later :)

EDIT: Here ya go

C++:
// we need to add those together later so we have a unicode string
std::wstring Numbers[13] = { L"Two", L"Three", L"Four", L"Five",
							 L"Six", L"Seven", L"Eight", L"Nine",
							 L"Ten", L"Jack", L"Queen", L"King", L"Ace" };
std::wstring Colors[4] = { L"Clubs", L"Diamonds", L"Spades", L"Hearts" };
std::wstring Of = L"Of";

wchar_t callstr[50];
std::wstring tmp;
byte zerobuf = 0;
__int64 tmpcard = 0;

void RevealAllCards()
{
        // loop through numbers
	for (int n = 0; n < 13; n++)
	{
                //loop through colors
		for (int c = 0; c < 4; c++)
		{
			for (int i = 0; i < 50; i++)
			{
                                // clear our buffer completly
				WriteProcessMemory(GetCurrentProcess(), (LPVOID)((__int64)callstr + i), &zerobuf, 1, 0);
			}
			
			tmp.clear();
			tmp = Numbers[n];
			tmp += Of;
			tmp += Colors[c];
                        // e.g. "AceOfSpades"			

                        // we need a wchar_t array to pass
			std::wcsncpy(callstr, tmp.c_str(), tmp.length());
                           
                        // zero terminate our string (wide char->tmp.length()*2)
			WriteProcessMemory(GetCurrentProcess(), (LPVOID)((__int64)callstr + (tmp.length() * 2) + 1), &zerobuf, 1, 0);
                          
                        // get our card pointer
			tmpcard = GetCardByName(callstr);
                        // enable the card
			EnableCard(tmpcard);
                        // flip it
			FlipCard(tmpcard);
		}
	}
}
 
Last edited:
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods