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 › Coders Lounge › Windows Process Suspension

QuestionWindows Process Suspension

Posts 1–7 of 7 · Page 1 of 1
megamandos
megamandos
Windows Process Suspension
Win32 API offers this function called "SuspendThread", however it does NOT offer a "SuspendProcess" function. I want to add the ability to Injex to suspend a process that is already running while it is injecting a payload. I thought about just getting a list of thread and then suspending them one by one and then after injection is complete, resuming them one by one... Although, I am afraid of race conditions.

Anyone know of a better way? And/Or is my worry unfounded?

Also, does anyone think that thread high-jacking is something I should add as an injection method? Would anyone see that as useful?
#1 · 14y ago
master131
[MPGH]master131
You need to suspend the all threads in the process to 'suspend a process'. You can find some information here:
Win32 process suspend/resume tool - CodeProject®
#2 · 14y ago
megamandos
megamandos
Right thats what I am saying, but i can't suspend them all at the same time...
#3 · 14y ago
.::SCHiM::.
.::SCHiM::.
I read that article a while ago and I believe the author offers a viable way to avoid the race conditions, but I'm not completely sure since it's some time ago.

Never mind not the same article, however:

You could try setting the processes' priority to very low, and then rapidly suspend all threads. The lowered priority should give you a greater chance of avoiding deadlocks.
#4 · edited 14y ago · 14y ago
Jason
Jason
What exactly would happen in these race conditions? Just exceptional cases? I mean, if your eventual aim is to free the current view of the data (free all the process's memory), typical race conditions won't matter in the end. If there's exceptions you can just add a vectored exception handler to prevent crashing.

Or, you can just spawn the process yourself with the CreateProcess function and CREATE_SUSPEND flag, as I think Nebbet intended.
#5 · 14y ago
.::SCHiM::.
.::SCHiM::.
He wants to resume execution after he's done injecting. Multi threaded applications might use mutexes and semaphores or asynchronous IO that would result in a deadlock. Imagine a thread that's waiting for a second thread to yield access to an object, now the first thread is suspended and then the second thread signals the first thread that's done with the object in the time it takes for your SuspendThread() loop to reach this second thread. When the first thread is resumed it has not received a signal from the second thread, so it's still waiting. Meanwhile the second thread could also be waiting for the first thread.

There you've got the deadlock right there
#6 · 14y ago
megamandos
megamandos
Yeah that is a great example of a race condition that I am trying to avoid. Another is with threads that use timers. So I think if I added this, it would be a kind of silly and never really used feature of injex. Thank you all for your input.
#7 · 14y ago
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

  • Process Dont Get Hidden On Windows 7 with proof!By Mohit_Hacker in Blackshot Discussion
    6Last post 17y ago
  • Windows Live Beta - Go Here Quick!By Dave84311 in General
    6Last post 17y ago
  • New Windows ExploitBy Dave84311 in General
    6Last post 16y ago
  • Playing Warrock In Multi Windows Need HelpBy Shadowguild in WarRock - International Hacks
    27Last post 20y ago
  • Boot up Windows before you even log in.By Dave84311 in General
    6Last post 20y ago

Tags for this Thread

#injection#process#suspend#suspension