bitflip

command module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 11 Imported by: 0

README

bitflip

Flip bits in files.

tldr

If you want to flip bits in files, this utility has got you covered. Flip specific bits, randomly flip a single bit, or spray hell all around..! Whatever rocks your boat, as long as you need some bits flipped.

Usage

Example usage
$ echo hello world > /tmp/hello.world
$ cat < /tmp/hello.world
hello world
$ bitflip random  /tmp/hello.world
2020/04/09 17:40:55 flipping 2th bit of byte 6 in file "/tmp/hello.world"
$ cat < /tmp/hello.world
hello sorld

From here, sky is the limit!

Why not flip 0.1% of the bits in your MySQL DB file?

bitflip spray percent:0.1 /var/lib/mysql/mydb.idb

installation

Debian/Ubuntu
wget https://github.com/aybabtme/bitflip/releases/download/v0.2.1/bitflip_0.2.1_linux_amd64.deb
dpkg -i bitflip_0.2.1_linux_amd64.deb
darwin
brew install aybabtme/homebrew-tap/bitflip

Goreleaser

Builds are done using goreleaser. A GitHub workflow will take care of this, that being said, you can run goreleaser as follows:

NB. Builds will land in the dist/ directory.

Update or install goreleaser
go install github.com/goreleaser/goreleaser/v2@latest
Create a snapshot

E.g. if you haven't a tag of your current repository state.

goreleaser build --snapshot --single-target --clean -f .goreleaser.yml
Create a release
goreleaser release --skip=publish --clean -f .goreleaser.yml

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL