donut-cli

Crates.iodonut-cli
lib.rsdonut-cli
version0.1.0
created_at2025-11-26 10:40:35.649222+00
updated_at2025-11-26 10:40:35.649222+00
descriptionCLI tool for libdonut-rs
homepage
repositoryhttps://github.com/mrLochness350/donut-cli
max_upload_size
id1951232
size81,460
(mrLochness350)

documentation

README

Donut-rs CLI Tool


This is the CLI component of the donut-rs API.

[!NOTE] There are configuration file examples in the examples/ folder

Installing

This tool can be installed via:

cargo install donut-cli

Example usage

  • Building a payload using a config file:
donut-cli -v build -c examples/pe_config.toml
  • Building a payload manually:
donut-cli -v build \ 
  -i .\helloworld_release.exe \ 
  -o final_shellcode.bin \
  -I http_win.bin \
  -M -m metadata.json \ 
  --instance-type http \
  -H rd_instance_win.bin \ 
  --instance-server http://127.0.0.1:9001 \
  --payload-endpoint "/test/payload"
  • Converting an executable to a formatted binary blob:
donut-cli -- -v extras e2b -i helloworld.exe \  
  -o hellworld.rs \
  -f rs \
  -d -v HELLOWORLD
  • Hashing a function name:
donut-cli -v extras api-hasher -F MessageBox
  • Hashing a list of functions:
# list.txt:
# MessageBoxW
# GetLastError
donut-cli -v extras api-hasher -f list.txt
Commit count: 0

cargo fmt