Coder Social home page Coder Social logo

goblet's Introduction

goblet

This is a binary viewer made by Go.

It reads binaries from stdin or file and outputs them in bit, hex, or base64 format.

Installation

$ go install github.com/convto/goblet/cmd/goblet

Usage

goblet reads binaries from a stdin or file and outputs them in any text encoding.
Here is a simple example

$ goblet -bit test.bin 
00001000 10111001 01100000 00010000 10110010 10010010
00000100 00011000 00000001 

For multi-bit per character encodings such as base64 and hex, the output is padded.

$ goblet -hex test.bin
0___8___ b___9___ 6___0___ 1___0___ b___2___ 9___2___
0___4___ 1___8___ 0___1___ 
$ goblet -base64 test.bin
C_____L_ ____l___ __g_____ E_____L_ ____K___ __S_____
B_____B_ ____g___ __B_____

Currently supported options are

$ goblet -h
Usage of goblet:
  -base64
    	use base64 format
  -bit
    	use bit format
  -hex
    	use hex format
  -w int
    	width (default 6)

goblet's People

Contributors

convto avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.