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: 3 months 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-28T22:42:50.000Z (almost 2 years ago)
- Last Synced: 2025-02-15T23:43:24.251Z (5 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
[](https://github.com/fugerit-org/tool-payload-creator/blob/master/CHANGELOG.md)
[](https://opensource.org/licenses/Apache-2.0)
[](https://github.com/fugerit-org/fj-universe/blob/main/CODE_OF_CONDUCT.md)

## 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}"}` |