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 › Visual Basic Programming › Extract an executable from resources? [solved]

Extract an executable from resources? [solved]

Posts 1–6 of 6 · Page 1 of 1
Bombsaway707
Bombsaway707
Extract an executable from resources? [solved]
I have been googling for about 2 days now but still no results. I am just wondering how to extract a executable file from your programs resources.
Please and thank you
#1 · 15y ago
Hassan
Hassan
What do you mean by extracting ? You want to know which files in your resources are executables and write them ?

If writing an executable is the purpose, here's how you do it:
[highlight=vbnet]
My.Computer.FileSystem.WriteAllBytes(My.Computer.F ileSystem.SpecialDirectories.Desktop & "\MP3Test.exe", My.Resources.MP3Tests, False)[/highlight]
#2 · edited 15y ago · 15y ago
Jason
Jason
Just check the datatype of the resource; it's a byte array. The IO namespace provides byte-writing abilities through the File class:

[highlight=vb.net]
IO.File.WriteAllBytes("Path Here", My.Resources.ResourceName)
[/highlight]
#3 · 15y ago
Bombsaway707
Bombsaway707
Thank you both I have no idea why such a simple code was so hard to find
#4 · 15y ago
NO
NOOB
you could also execute the byte array in memory
#5 · 15y ago
Jason
Jason
Quote Originally Posted by NOOB View Post
you could also execute the byte array in memory
Depends on the aims of the program. If the .exe is really only a dependency to be quickly executed, then sure that's a viable option, but too much work fixing import tables to really be worth the effort IMO. If this is aimed to be a pseudo-installer, then writing the bytes to the filesystem is what you should be going for.
#6 · 15y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

  • [HELP] .exe From Resource[Solved]By Lyoto Machida in Visual Basic Programming
    13Last post 15y ago
  • [Help] Extract Filename From Listbox[Solved]By FatCat00 in Visual Basic Programming
    7Last post 15y ago
  • Execute a .JAR file from VB. [Solved]By danishfps in Visual Basic Programming
    14Last post 15y ago
  • how to save dll from resources to temp folder.? [solved]By blackgaming in Visual Basic Programming
    2Last post 15y ago
  • [Help]View Pictures from resourcesBy ppl2pass in Visual Basic Programming
    7Last post 16y ago

Tags for this Thread

None