An efficient tool written in C to convert base numbers dumps into human readable string and vice versa.

strtools




A tool written in C to convert number bases to human readable string and vice versa.


Usage

Compile

make


Help

strtools -h

Output:


Usage: strtools <type|conversion> <input> [ data | file ] -o outfile.txt

|CLI options|:-
   type/conversion:
      -O  converts octal dump to string.
      -B  converts binary dump to string.
      -D  converts decimal dump to string.
      -X  converts hexadecimal dump to string.
    [if -s flag is specified, it converts string to base<int>.]

   input:
      -i  takes next argument as data string.
      -f  takes next argument as filename.

   optional:
      -o  takes next argument as filename.
           (if filename is null, it's set to strtools_out as filename.)
           [if '-o' is not used, result is printed to STDOUT.]



Binary to String

./strtools -B -f exfiles/bin.txt

Output:

I use arch btw thank you.

String to Binary

./strtools.exe -s -B -f exfiles/ones_and_zeroes

Output:

110001 100111 1110011 100000 1100001 1101110 1100100 100000 110000 100111 1110011

Octal to String

./strtools -O -f exfiles/octal.txt

Output:

https://www.youtube.com/watch?v=GBIIQ0kP15E

String to Octal

./strtools -s -O -f exfiles/oct_out

Output:

143 157 156 164 162 151 142 165 164 145 40 72 51

Hexadecimal to String

./strtools -X -i "53 74 61 72 20 74 68 69 73 20 70 72 6f 6a 65 63 74 20 3a 29"

Output:

Star this project :)

String to Hexadecimal

./strtools -s -X -f exfiles/AITO

Output:

41 73 74 72 6F 6E 61 75 74 20 49 6E 20 54 68 65 20 4F 63 65 61 6E 2E

Decimal to String

./strtools -D -i "72 97 118 101 32 97 32 110 105 99 101 32 100 97 121 32 40 59"

Output:

Have a nice day (;

String to Decimal

./strtools -s -D -f exfiles/AITO

Output:

65 115 116 114 111 110 97 117 116 32 73 110 32 84 104 101 32 79 99 101 97 110 46 


Redirecting output to a file:


Using the redirection operator↴
./strtools -X -i "63 6f 6f 6c 20 73 68 69 74" > hex_out.txt
Using the -o argument with a filename↴
./strtools -O -i "143 157 156 164 162 151 142 165 164 145 40 72 51" -o oct_out
Using the -o argument without a filename↴
./strtools -D -i "105 100 107 32 105 100 99 46" -o

ps: "-o" without a parameter uses the default filename 'strtools_out'

License

MIT

Copyright for portions of project strtools are held by [Github Account SynAcktraa Owner, 2022] as part of project strtools

All other copyright for project strtools are held by [Github Account SynAcktraa Owner, 2022].

Check the LICENSE for more details.

Owner
Mikey
Building stuff in C
Mikey
Similar Resources

pluggable tool to convert an unrolled TritonAST to LLVM-IR, optimize it and get back to TritonAST

it is fork from https://github.com/fvrmatteo/TritonASTLLVMIRTranslator *WARNINGS: tested only linux(ubuntu 20.04) and only llvm and clang version 10*

Jun 10, 2022

A tool to convert Call of Duty XBIN/EXPORT files to and from each other.

exportxbin exportxbin is an enhanced version of export2bin included in the Call of Duty: Black Ops III Mod Tools. Its main goal is to provide users wi

Jan 22, 2022

POC tool to convert CobaltStrike BOF files to raw shellcode

BOF2Shellcode POC tool to convert a Cobalt Strike BOF into raw shellcode. Introduction This code was written as part of a blog tutorial on how to conv

Dec 30, 2022

⚔️ A tool for cross compiling shaders. Convert between GLSL, HLSL, Metal Shader Language, or older versions of GLSL.

⚔️ A tool for cross compiling shaders. Convert between GLSL, HLSL, Metal Shader Language, or older versions of GLSL.

A cross compiler for shader languages. Convert between SPIR-V, GLSL / GLSL ES, HLSL, Metal Shader Language, or older versions of a given language. Cross Shader wraps glslang and SPIRV-Cross, exposing a simpler interface to transpile shaders.

Dec 30, 2022

Tool to convert ELF (S)hared (O)bject to Nintendo (R)elocatable (S)hared (O)bject

elf2rso Tool to convert ELF (S)hared (O)bject to Nintendo (R)elocatable (S)hared (O)bject Command Line Options -i or --input - It's the ELF File to be

Mar 13, 2022

The Para-C Base Library written in C and C++ (for GTest)

libpbl - Para-C Base Library This is the repository containing the c-implementation library (Para-C Core Library, and partly Para-C Built-In Library),

Jun 27, 2022

Human-friendly HSL, reference implementation

HSLuv - Human-friendly HSL Explanation, demo, ports etc. The reference implementation is written in Haxe. Build system HSLuv uses Nix package manager.

Dec 30, 2022

A run-time C++ library for working with units of measurement and conversions between them and with string representations of units and measurements

Units What's new Some of the CMake target names have changed in the latest release, please update builds appropriately Documentation A library that pr

Dec 14, 2022

Second life for famous JPEGView - fast and tiny viewer/editor for JPEG, BMP, PNG, WEBP, TGA, GIF and TIFF images with a minimalist GUI and base image processing.

Second life for famous JPEGView - fast and tiny viewer/editor for JPEG, BMP, PNG, WEBP, TGA, GIF and TIFF images with a minimalist GUI and base image processing.

JPEGView-Image-Viewer-and-Editor Updated Dec 07 2021. Version 1.1.1.0 has been released. Download link1, link2 added. Second life for famous JPEGView

Dec 27, 2022
header-only UTF-8 string functions based on STL-string

utf8_xxx header-only UTF-8 string functions based on STL-string size_t utf8_len(const std::string& _Str) std::string utf8_sub(const std::string& _Str,

Dec 27, 2021
The music of Fibonacci and prime numbers

fibprimes "Main" branch contains source code and generated MIDI file. "MP3" branch contains the MP3 file converted from the MIDI file. General Each ch

Feb 4, 2022
OpenScan is an open-source document scanner app that enables users to scan hard copies of documents or notes and convert it into a PDF file. No ads. No data collection. We respect your privacy.
OpenScan is an open-source document scanner app that enables users to scan hard copies of documents or notes and convert it into a PDF file. No ads. No data collection. We respect your privacy.

OpenScan An open source app that enables users to scan hardcopies of documents or notes and convert it to a PDF file. No ads. No data collection. We r

Jan 4, 2023
A patched version of the VICE C64/VIC20/... emulator

VICE Emulator emitting bap-frames traces This is a patched version of the VICE C64/VIC20/... emulator that can emit traces in the bap-frames format, p

Jan 20, 2022
An operating system. Its main goal? Readable code, developer experience and documentation.

OS Dependencies Required for development. sudo apt install build-essential nasm grub-pc-bin grub-common xorriso Required for building cross-compiler.

Nov 15, 2022
Dec 29, 2022
Convert LLVM coverage information into HTML reports

llvm-coverage-to-html converter The clang compiler supports source based coverage tracking, but the default reporting options are very basic. This too

Oct 11, 2021
Small program using GMP to convert a decimal number (1.8) into a reduced fraction (9/5)

gmp_rationalize This is a small program to convert a decimal number (like 1.8) into a reduced fraction (like 9/5), using GMP for handling arbitrary-pr

Apr 5, 2022
This repository contains machine-readable files for the SPIR-V Registry

SPIR-V Headers This repository contains machine-readable files for the SPIR-V Registry. This includes: Header files for various languages. JSON files

Jan 6, 2023