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 › getting REG_BINARY data from the registry editor into a textbox!

Questiongetting REG_BINARY data from the registry editor into a textbox!

Posts 1–15 of 26 · Page 1 of 2
hugio88
hugio88
getting REG_BINARY data from the registry editor into a textbox!
im trying to load the KEY data,




for this example i first use the DATA to load it (because that is in ascii and not in hex binary)





oke let try it out!




it works!

now lets try the KEY data in hex binary!
so i changed the code so it loads the KEY information



oke lets change the code



changed the code! now lets try to run it!



And then i got a error, but i dont know how to fix it

please help me! thanks!
#1 · 13y ago
abuckau907
abuckau907
Conversion from type Byte() (array) to 'String' is not valid.

aka. one of the parameters is wrong.



^^If it works for strings, but not "binary data", maybe check the 3rd parameter. I don't think it's supposed to be ""


for the 3rd parameter, type in RegistryValueOptions. (see the period) for available values.

OR, the value being returned can't be assigned to a text box.
#2 · edited 13y ago · 13y ago
hugio88
hugio88


i tried binary(i also tried string), but that didnt work... still the: conversion from type 'byte()' to typte 'String' is not valid. Error

why is it that the value cant get into a textbox, its just a key...

also, in what thing(label?) could it be returned?

#3 · edited 13y ago · 13y ago
abuckau907
abuckau907
.Text = An Object

GetValue() Returns OBJECT. .Text is STRING

Dim someBytes() as Byte

someBytes = GetValue() - maybe? apparently it's not a string (.text)
#4 · 13y ago
hugio88
hugio88
so what do i need to do now..
because i want to get it in a textbox....
and its given me this error:



code i use:
so how do i change it to get it into the textbox! still a hard problem (not the best VB.net coder, just started )

#5 · 13y ago
abuckau907
abuckau907
google how to convert an array of bytes into a string. There are ways.

bytes = TextBox1.Text is very very very wrong.

TextBox1.Text = bytes // closer

but u can't set a STRING == to a BYTE (array) . convert the byte array into a string.
ie. .Text = Ascii.FromBytes(bytes) or some other way to convert bytes to strings.


There is no 1 way to do this because 'strings' can be a different data type --> Ascii vs Unicode for example. 1 bytes vs 2 for each letter. You have to understand data types.


datatype = datatype

you can't do

string = byte array


just like you wouldn't do

integer32 = byte array etc etc.

so what do i need to do now.. is a pretty...not good question. NEED is def. the wrong word.
#6 · edited 13y ago · 13y ago
hugio88
hugio88
Quote Originally Posted by abuckau907 View Post
google how to convert an array of bytes into a string. There are ways.

bytes = TextBox1.Text is very very very wrong.

TextBox1.Text = bytes // closer

but u can't set a STRING == to a BYTE (array) . convert byte array to string.
yeah im sorry, im not the greatest coder! but i will try to google it!
#7 · 13y ago
abuckau907
abuckau907
I could just paste you the code, but I'm not sure that will fix the root of the problem. I was trying to help you figure it out for yourself. If you have questions: ask, or read. If you haven't learned 1 programming language yet: get a book (buy or library or .pdf) and learn all the aspects of programming before trying to do something extremely specific like access the windows registry.
#8 · 13y ago
hugio88
hugio88
i googled it, this is what i got..



so when i tried to run and i press the button to get the information.. this is what came out of it



but that is not right...

EDIT: what is at the first sentence is registryvaluekind.binary
#9 · edited 13y ago · 13y ago
abuckau907
abuckau907
idk the registry. Look up REG_SZ and REG_BINARY means
#10 · 13y ago
hugio88
hugio88
Quote Originally Posted by abuckau907 View Post
idk the registry. Look up REG_SZ and REG_BINARY means

REG_SZ is just normal ascii text but REG_BINARY is in hex binary... somehow i need to convert that
#11 · 13y ago
abuckau907
abuckau907
define 'what is hex binary' and you'll have the solution
#12 · 13y ago
hugio88
hugio88
Quote Originally Posted by abuckau907 View Post
define 'what is hex binary' and you'll have the solution
by hex binary i mean:
(REG BINARY) in registry




EDIT: i dont know what in what kind of text its written... but i thought of HEX, like when you use an HEX editor.. if you know what i mean
#13 · edited 13y ago · 13y ago
abuckau907
abuckau907
I know what you meant: "the stuff in the registry under BINARY" ...but do you understand what binary is, and what hex is, and what strings are? You have to understand those first. I'm not sure what else to say, short of posting code.


It's all just bytes. Each 2 letters, ie. 5F, 00, 13, CC, are all just bytes. if it's ascii, 1 bytes = 1 letter

so you must (must?) convert the array of bytes into an array of letters. There must be some .net functions to do this.
#14 · edited 13y ago · 13y ago
hugio88
hugio88
Quote Originally Posted by abuckau907 View Post
I know what you meant: "the stuff in the registry under BINARY" ...but do you understand what binary is, and what hex is, and what strings are? You have to understand those first. I'm not sure what else to say, short of posting code.


It's all just bytes. Each 2 letters, ie. 5F, 00, 13, CC, are all just bytes. if it's ascii, 1 bytes = 1 letter

so you must convert the array of bytes into an array of letters. There must be some .net functions to do this.
and thats the problem, i cant convert it, and when i google it my program fills in weird code things. the only thing that i need in my textbox are the 69 13 AC 5F en more that i blurred out
#15 · 13y ago
Posts 1–15 of 26 · Page 1 of 2

Post a Reply

Similar Threads

  • How to get a mod from the SERVER?By liwei8257 in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    11Last post 15y ago
  • A Glitch I Ran Into Today (Driving a Car from the Outside)By applejax87 in All Points Bulletin Reloaded Hacks
    9Last post 14y ago
  • I get added from the most...By Skyline. in General
    36Last post 15y ago
  • FUUCCCKKK!!!! keep getting booted from the game(crossfire) and my day was so shitttBy Mr Moggy in Flaming & Rage
    12Last post 17y ago
  • list of the earnings you get from the badgesBy NoVaLiFe in CrossFire Discussions
    20Last post 15y ago

Tags for this Thread

None