Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/umair9747/seize
A Command-line Utility written in Go for generating images of your CLI output using stdin
https://github.com/umair9747/seize
automation bugbounty cli command-line command-line-tool cybersecurity golang hacking linux programming
Last synced: 6 days ago
JSON representation
A Command-line Utility written in Go for generating images of your CLI output using stdin
- Host: GitHub
- URL: https://github.com/umair9747/seize
- Owner: umair9747
- License: apache-2.0
- Created: 2024-08-04T15:24:41.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-06T12:12:01.000Z (about 1 month ago)
- Last Synced: 2024-11-02T07:23:55.434Z (13 days ago)
- Topics: automation, bugbounty, cli, command-line, command-line-tool, cybersecurity, golang, hacking, linux, programming
- Language: Go
- Homepage:
- Size: 200 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Seize
A Command-line Utility for Generating Images from CLI Outputs using stdin
Description • Features • Installation • Usage • Contact Me
⬇️
Description
Seize is a Command-line utility tool written in Golang that helps you generate images from CLI outputs by taking inputs from stdin. The tool allows you to specify font and background colors and can also upload the generated images to AWS S3.
The tool is designed to help users create customized images easily and quickly, with the ability to specify text, font color, and background color. It can upload the generated images to S3-compatible storage solutions, including AWS S3.
Features
Generate Custom Images
Seize allows you to create images with custom text, font colors, and background colors by taking inputs from stdin. This makes it easy to visualize CLI outputs or other text data as images.Upload to AWS S3
Seize can upload the generated images to an AWS S3 bucket. You can specify the necessary AWS credentials and bucket information through environment variables.Flexible Color Options
Seize allows you to specify font and background colors using hex codes, giving you full control over the appearance of the generated images.
Installation
You can install Seize by cloning the repository and building it manually, or by using the `go install` command.### Clone and Build Manually
```bash
git clone https://github.com/umair9747/seize.git
cd seize
go build
```### Using `go install`
```bash
go install github.com/umair9747/seize@latest
```Ensure your `$GOPATH/bin` is in your `PATH`:
```bash
export PATH=$PATH:$(go env GOPATH)/bin
```
Usage
### Basic Usage
```bash
command | seize
```### Flags
- `-oD`: Directory to save the output image (default: current directory)
- `-oF`: Name of the output image file (default: generated hash)
- `-uP`: Upload the image to an AWS S3 bucket
- `-fC`: Font color in hex (default: white `FFFFFF`)
- `-bC`: Background color in hex (default: dark gray `181414`)### Environment Variables for Upload
#### AWS S3
- `AWS_ACCESS_KEY_ID`: Your AWS access key ID
- `AWS_SECRET_ACCESS_KEY`: Your AWS secret access key
- `AWS_BUCKET_NAME`: The name of your S3 bucket
- `AWS_REGION`: The AWS region of your bucket### Example for Upload
To upload the generated image to AWS S3:
```bash
export AWS_ACCESS_KEY_ID=your_aws_access_key
export AWS_SECRET_ACCESS_KEY=your_aws_secret_key
export AWS_BUCKET_NAME=your_aws_bucket_name
export AWS_REGION=your_aws_regionseize -oD ./output -oF image -fC FF0000 -bC 000000 -uP < input.txt
```
Contact Me
Have any suggestions, queries, feedback or just want to connect with me? Feel free to reach out using the below handles:
Also, if you'd like to support me for my future research works, please consider using this link for your donations!