Source Code Binary To Array of Bytes Dumper

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,099
78,998
2,373
I was interested in this question by Axion and decided to code it up for the tool section! He asked how to create an array of bytes from a binary file on disk similar to what HxD Hex Editor does.

It's a console app, you drag and drop your binary on to it and it generates a header that looks like this:


https://bitbucket.org/GH-Rake/binarytoaob/

Feel free to critique my shitcode

Virus Scan
 

Attachments

  • Like
Reactions: Roman_Ablo

Roman_Ablo

Banned
Feb 27, 2017
355
2,402
1
Dankass code bruh, thx for ur efforts and memes on the forum m8

and thx for my double warning on the same post :brokeback:
 

mambda

headass
Escobar Tier VIP
Trump Tier Donator
Jun 25, 2014
2,297
37,938
269
Neato amigo

C++:
CloseHandle(CreateFile(path, GENERIC_WRITE, 0, 0, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0));

	//open header file stream
	std::ofstream header(path, std::ios::out | std::ios::binary);
ofstream will create the file, dont need to do the CreateFile before, if you do ios::trunc as well it will clear the contents of the file if it already exists

C++:
	header.close();
	delete aob;
cute that you cleanup a program thats about to end :p

DANK CODENZ.
It is written.
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods