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 › How can i delete "For (; ;)"?

QuestionHow can i delete "For (; ;)"?

Posts 1–4 of 4 · Page 1 of 1
SA
SawMister
How can i delete "For (; ;)"?
Hello.

I have this codesnipped;

Code:
DWORD val2 = 0;

bool State2 = false;   

void punkte2()    
{
    if(State2)
    {
        DWORD wert2 = 0;
				
				HANDLE hProc = OpenProcess(((0x000F0000L) | (0x00100000L) | 0xFFFF), 0xFFFFFF, (unsigned int)GetCurrentProcessId());

				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)((int*)((BasePointer2))), sizeof((PDWORD)(BasePointer2))); 
					if(wert2 > 0){
				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)((int*)((BasePointer2))), sizeof((PDWORD)(BasePointer2)));
					wert2 += Points5;
				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
					wert2 += Points6;
				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
					wert2 += Points7;
				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2))); 
					wert2 += Points8;
				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
					wert2 += Points9;
					memcpy((PVOID*)(*(int*)(&wert2)), (PWORD*)((void*)&(*(_Uint32t*)&val2)), 4);}

    }
}

DWORD WINAPI HackThread2(LPVOID unused)
{
   
    for(; ;)  
    {
        punkte2();  
       
		   if(GetAsyncKeyState(VK_CONTROL) & GetAsyncKeyState(VK_F5)){
			  
			if(State2){ State2 = false; }
		
			else{
				State2 = true;
				HANDLE hProc = OpenProcess(((0x000F0000L) | (0x00100000L) | 0xFFFF), 0xFFFFFF, (unsigned int)GetCurrentProcessId());

				DWORD wert2 = 0;
				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)((int*)(BasePointer2)), sizeof((PDWORD)(BasePointer2)));
				if(wert2 > 0){
				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)((int*)(BasePointer2)), sizeof((PDWORD)(BasePointer2)));
				wert2 += Points5;
				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
				wert2 += Points6;
				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
				wert2 += Points7;
				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
				wert2 += Points8;
				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
				wert2 += Points9;
				RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2))); 
				wert2 = 16666;
				val2 = wert2;}
				
			}
		} 
      //Sleep(2);
    }
}
Can you please tell me, how to delete the "for (; " so it do it once and not again and again?
I was not able to delete without mistakes..

I hope you can delete it fast, because i think its easy, but not for a newbie..

Thank you really much! And sorry for my English..

Regards, Rene
#1 · 13y ago
AT
atom0s
You can just comment out the for(; line like:
//for(;

The scope of the { } will not break the rest of the code so it will work fine still. If you want to remove it all, just delete the for(; line and the brackets that belong to it.

If you are unsure how to do that you should probably actually learn the language then before using it.
#2 · 13y ago
'Bruno
'Bruno
Copy Pasta King..

"its not easy for a newbie.."

Then stop being a newbie leecher and start learning.. the fuck
#3 · 13y ago
KE
Kenshin13
...Are you serious?

Method A:
Code:
// for( ; ; )
// {
...
...
// }
Method B:
Code:
for( int i=0; i==0; i++)
{
...
...
}
As said above, don't C&P everything...
#4 · 13y ago
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

  • How can i delete my account?By Bushmouseone in General
    6Last post 17y ago
  • How can I delete my account?By gameman338 in General
    10Last post 15y ago
  • how can we get dlc for pc:)By zerosk83r14 in Call of Duty Modern Warfare 3 Help
    9Last post 14y ago
  • How can I delete all Trace of Hacks?By -EpicSkillz- in Combat Arms Help
    11Last post 15y ago
  • How can I delete the Gunsounds ? Or how can I make it lower ?By Jiggo in CrossFire Help
    2Last post 14y ago

Tags for this Thread

#for