https://github.com/jfoster/binary-utilities
A collection of cli utilities for manipulating binary files
https://github.com/jfoster/binary-utilities
binary binutils bytepad cap2rom cli-utilities go golang
Last synced: 5 months ago
JSON representation
A collection of cli utilities for manipulating binary files
- Host: GitHub
- URL: https://github.com/jfoster/binary-utilities
- Owner: jfoster
- License: mit
- Created: 2019-11-26T13:44:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T09:41:25.000Z (about 5 years ago)
- Last Synced: 2023-07-27T22:15:14.198Z (almost 3 years ago)
- Topics: binary, binutils, bytepad, cap2rom, cli-utilities, go, golang
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
binary-utilities
===
A collection of cli utilities for manipulating binary files.
[Releases (precompiled binaries)](https://github.com/jfoster/binary-utilities/releases)
## bytepad
Pads a file to a desired size with a specified padding byte
### Usage
```
./bytepad -size= -data=
```
### Example
To pad file EVGA.GTX680.2048.120713.rom with FF's to 262144 bytes (256KiB):
```
./bytepad -size=262144 -data=0xFF ~/Downloads/EVGA.GTX680.2048.120713.rom
```
You can also omit -data in which 00's will be used for padding:
```
./bytepad -size=262144 ~/Downloads/EVGA.GTX680.2048.120713.rom
```
## cap2rom
Strips the header from an ASUS .CAP file to conver it to a .rom file for hardware flashing
### Usage
```
./cap2rom foo.CAP
```
which writes the .rom file alongside the specified .CAP file.