Skip to content

ccoppo/Hex-Manipulation-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hex Manipulation Tool (CSE365)

A comprehensive C++ command-line tool designed for hex value manipulation and reverse engineering tasks.

Features

  • Convert and manipulate hexadecimal values
  • XOR operations with custom keys
  • Sort and reverse hex sequences
  • Custom mixing algorithms
  • Swap operations for detailed manipulation

Technical Stack

  • C++
  • Object-Oriented Design
  • Command Line Interface

Code Examples

Basic Usage

Reverse_Tool mytool;
Hex_Value mainVal = mytool.get_value();
mytool.print_hex(mainVal);  // Prints the hex values

XOR Operation

Hex_Value original = mytool.convert_hex("0x41 0x42 0x43");
Hex_Value key = mytool.convert_hex("0xFF");
Hex_Value result = mytool.xor_hex(original, key);

Custom Mixing

// Mix first 3 positions with last 3 positions
Hex_Value hex = mytool.convert_hex("0x41 0x42 0x43 0x44 0x45 0x46");
hex = mytool.mix_hex(hex, 3);

Installation

# Clone the repository
git clone [your-repo-url]
cd hex-manipulation-tool

# Compile the program
g++ -o reverse_tool reverse_tool.cpp -std=c++11

Usage

./reverse_tool

Available Commands

  • p: Print hex values
  • s: Sort hex sequence
  • r: Reverse hex sequence
  • x: XOR operation
  • m: Mix hex values
  • w: Swap hex values
  • q: Quit program

Example Session

Please enter your hex value:
0x41 0x42 0x43

you entered: 0x41 0x42 0x43

Welcome to your reverse engineering helper!
Options:
p : print hex
s : sort hex
r : reverse hex
x : xor hex
q : quit

> p
printing values
41 42 43

Project Structure

hex-manipulation-tool/
├── src/
│   ├── reverse_tool.cpp
│   └── reverse_tool.h
├── LICENSE
├── README.md
└── .gitignore

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A comprehensive C++ command-line tool designed for hex value manipulation and reverse engineering tasks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages