Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › C++/C Programming › Have any one simple Memmory Scanner source?

Have any one simple Memmory Scanner source?

Posts 1–5 of 5 · Page 1 of 1
4n0nym0use
4n0nym0use
Have any one simple Memmory Scanner source?
Have any one of you guys simple source of memory scanner that will work on Windows 7 x64?
I'm new in C++, i want to create simple memory scanner . Found few tutorials in google but all sources don't work (compile but freeze while scanning).
#1 · 13y ago
4n0nym0use
4n0nym0use
Is there really no one that can help me?
#2 · 13y ago
LI
LightUmbreon
Instead of doing simple copy/pasting, have you tried understanding the code and actually debugging it?
Also, some memory range might be unreadable so that might be the cause of the crash that you are experiencing.

BTW I doubt that anyone on the internet will give you a free code that you can just copy and paste.
#3 · 13y ago
Jabberwock
Jabberwock
Learn from this code:

Code:
bool sig_scanner::search(BYTE key, const TCHAR string[], char offset)
{
#ifdef UNICODE
	DWORD s_length = wcslen(string);// Pattern's length
#else
	DWORD s_length = strlen(string);// Pattern's length
#endif

	if (s_length % 2 != 0 || s_length < 2 || !this->BaseAddress || !this->EndAddress) return NULL;// Invalid operation

	DWORD length = s_length / 2;// Number of bytes
	s_length++;// +1 for the null terminated string

	// The buffer is storing the real bytes' values after parsing the string
	BYTE* buffer = new BYTE[length];
	ZeroMemory(buffer, length);

	// Copy of string, making it to uppercase

	TCHAR* pattern = new TCHAR[s_length];
	//ZeroMemory(pattern, p_length);

#ifdef UNICODE
	wcscpy_s(pattern, s_length, string);
	_wcsupr_s(pattern, s_length);
#else
	strcpy_s(pattern, s_length, string);
	_strupr_s(pattern, s_length);
#endif

	// Parsing of string

	DWORD i;

	for (i = 0; i < length; i++)
	{
		BYTE f_byte = (BYTE)pattern[i*2];// First byte
		BYTE s_byte = (BYTE)pattern[(i*2)+1];// Second byte

		if ( ( (f_byte <= 'F' && f_byte >= 'A') || (f_byte <= '9' && f_byte >= '0') ) && ( (s_byte <= 'F' && s_byte >= 'A') || (s_byte <= '9' && s_byte >= '0') ) )
		{
			if (f_byte <= '9') buffer[i] += f_byte - '0';
			else buffer[i] += f_byte - 'A' + 10;
			buffer[i] *= 16;
			if (s_byte <= '9') buffer[i] += s_byte - '0';
			else buffer[i] += s_byte - 'A' + 10;
		}
		else if (f_byte == 'X' || s_byte == 'X') buffer[i] = 'X';
		else buffer[i] = '?';// Wildcard
	}

	// Remove buffer

	delete[] pattern;

	// Start searching

	i = this->BaseAddress;
	MEMORY_BASIC_INFORMATION meminfo;
	DWORD ret = NULL;
	WORD x;
	DWORD EOR;

	while (i < this->EndAddress)
	{
		if (!VirtualQuery((LPVOID)i, &meminfo, sizeof(meminfo))) break;

		//while (!VirtualQuery((LPVOID)i, &meminfo, sizeof(meminfo)))
		//	Sleep(100);

		if (!(meminfo.Protect &(PAGE_READWRITE | PAGE_WRITECOPY | PAGE_EXECUTE_READWRITE | PAGE_EXECUTE_WRITECOPY | PAGE_EXECUTE_READ)) || !(meminfo.State &MEM_COMMIT))
		{
			i += meminfo.RegionSize;
			continue;
		}

		EOR = i + meminfo.RegionSize;

		for (; i < EOR; i++)
		{
			for (x = 0; x < length; x++)
				if (buffer[x] != '?' && buffer[x] != 'X')
					if (buffer[x] != ((BYTE*)i)[x])
						break;

			if (x == length)
			{
#ifdef UNICODE
				const wchar_t* s_offset = wcsstr(string, L"X");
#else
				const char* s_offset = strstr(string, "X");
#endif

				if (s_offset != NULL)
				{
#ifdef UNICODE
					ret = *(DWORD*)&((BYTE*)i)[length - wcslen(s_offset) / 2];
#else
					ret = *(DWORD*)&((BYTE*)i)[length - strlen(s_offset) / 2];
#endif
				}
				else ret = *(DWORD*)&((BYTE*)i)[length + offset];

				goto output;// Need to break twice which isn't possible with C++
			}
		}
	}

	// Output results

output:
	delete[] buffer;

	if (!ret) throw key;

	this->insert(key, ret);

	return true;
}
This is a part of my old memory scanner. Not for copy & paste, but it already has the codes if you know how to use.
#4 · 13y ago
4n0nym0use
4n0nym0use
I'm not looking for free code. I'm looking for a code that will work. A code I can base on to build simple scanner searching for integers in certain process. I'm not C++ PRO, I'm more web-related languages PRO (PHP, MySQL, HTML, CSS, Java Script) but they are useless in this case.
@Jabberwo0ck Thanks for the sample code. I'll try to analyse it and adopt to what I need
#5 · 13y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

  • Have any one here played spiderman 3 live??By xtrylanx in General
    4Last post 19y ago
  • any one have this hack?By usmrean in WarRock - International Hacks
    16Last post 19y ago
  • Any one have BYPASS?By storek55 in Combat Arms Europe Hacks
    10Last post 17y ago
  • Any one else have this problem?By aup_11 in Combat Arms Hacks & Cheats
    1Last post 17y ago
  • does any one have awm promoBy vela192449 in WarRock - International Hacks
    2Last post 18y ago

Tags for this Thread

#c++#help#memory scanner#source