Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fugerit-org/tool-payload-creator
Tool to try to create a payload as close a possible to desired size
https://github.com/fugerit-org/tool-payload-creator
Last synced: 13 days ago
JSON representation
Tool to try to create a payload as close a possible to desired size
- Host: GitHub
- URL: https://github.com/fugerit-org/tool-payload-creator
- Owner: fugerit-org
- License: apache-2.0
- Created: 2023-09-26T12:18:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-28T22:42:50.000Z (over 1 year ago)
- Last Synced: 2024-11-06T01:10:15.052Z (2 months ago)
- Language: Java
- Size: 155 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# tool-payload-creator
Tool to try to create a payload as close a possible to desired size
[![Keep a Changelog v1.1.0 badge](https://img.shields.io/badge/changelog-Keep%20a%20Changelog%20v1.1.0-%23E05735)](https://github.com/fugerit-org/tool-payload-creator/blob/master/CHANGELOG.md)
[![license](https://img.shields.io/badge/License-Apache%20License%202.0-teal.svg)](https://opensource.org/licenses/Apache-2.0)
[![code of conduct](https://img.shields.io/badge/conduct-Contributor%20Covenant-purple.svg)](https://github.com/fugerit-org/fj-universe/blob/main/CODE_OF_CONDUCT.md)![Java runtime version](https://img.shields.io/badge/run%20on-java%208+-%23113366.svg?style=for-the-badge&logo=openjdk&logoColor=white)
![Java build version](https://img.shields.io/badge/build%20on-java%2011+-%23ED8B00.svg?style=for-the-badge&logo=openjdk&logoColor=white)
![Apache Maven](https://img.shields.io/badge/Apache%20Maven-3.9.0+-C71A36?style=for-the-badge&logo=Apache%20Maven&logoColor=white)## Quickstart
build :
`mvn clean install -P singlepackage`
run :
```
java -jar target/dist-tool-payload-creator-*.jar \
--target-size-byte 102400 \
--target-format pdf \
--output-file target/test.pdf
```|parameter help |required|description |
|--------------------|--------|-------------------------------------------------------------------------------------------------------|
|`target-size-byte` |`true` |Target size in byte (the tool will try to get as close as possible, without surpassing it) |
|`target-format` |`true` |Target format (currently supported formats : 'pdf' ) |
|`output-file` |`true` |Path to output file (ex. target/test.pdf) |
|`create-base64` |`false` |If set, the output will be converted to base 64 and saved to the given path |
|`create-base64` |`false` |If set, the output will be converted to base 64 and saved to json file in give path, the content will be `{"content":"${base64}"}` |