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 › MultiPlayer Game Hacks & Cheats › Combat Arms Hacks & Cheats › Combat Arms Hack Coding / Programming / Source Code › Combat Arms Coding Help & Discussion › Looking for code for "close on inject" function.

Looking for code for "close on inject" function.

Posts 1–12 of 12 · Page 1 of 1
Lezzy
Lezzy
Looking for code for "close on inject" function.
Title pretty much explains what I am looking for, for my first injector.
#1 · 15y ago
why06
why06
Code:
 return 0;
=/
#2 · edited 15y ago · 15y ago
kotentopf
kotentopf
TerminateProcess//Kill the Process directly

or at the FormEditor

this->Close()//simulate close button
#3 · 15y ago
Lezzy
Lezzy
What about a function that closes the program after 10 seconds if a button is pressed.?
#4 · 15y ago
WH
whit+
What are you coding in first of all..?
#5 · 15y ago
NO
NOOB
Quote Originally Posted by Lezzy View Post
What about a function that closes the program after 10 seconds if a button is pressed.?
[HIGHLIGHT=Visual Basic]System.Threading.Thread.Sleep(600000) :
Me.Close()[/HIGHLIGHT]
#6 · 15y ago
Astral Witch
Astral Witch
To close any program all you do is return execution to the OS from the main function ( why06 got it ). Everything you ever program will always have a main function.
#7 · 15y ago
Stan-Marsh
Stan-Marsh
Here i think return 0;
#8 · 15y ago
topblast
topblast
I think he is coding an injector in VB.net i dont know why he want to code stupidness.
If it is in VB then it you will have to Inject then add.
Code:
System.Threading.Thread.Sleep(10000)
Me.Close()
'Or you can do Application.Exit()


if it is C++.
as why said.




Code:
 
  return 0;
#9 · 15y ago
GO
Gordon`
return 0 will only work when you return in the main thread. use exit or terminateprocess
#10 · 15y ago
master131
[MPGH]master131
VB:
[highlight=vbnet]System.Threading.Thread.Sleep(10000)[/highlight]
Will cause your program to freeze if you don't run it from a seperate thread.

C++:
[highlight=c++]Sleep(10000)[/highlight]
#11 · 15y ago
DE
Departure
IPC, inter process communication, get your thread to let your application know if it successfully attached and executed the procedure/function if all is good then close the injector else keep it open, While timers and on button click events are fine they are not really closing the app on a success, instead they will close app no matter what happends
#12 · 15y ago
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Tags for this Thread

None