mirror of
https://github.com/kmanc/remote_code_oxidation
synced 2026-06-08 15:21:46 +00:00
43faa94d63
* a few path mistakes * wrong denominator
27 lines
915 B
Markdown
27 lines
915 B
Markdown
---
|
|
title: "Hash params"
|
|
---
|
|
|
|
# RCO: Hash Params
|
|
|
|
[](https://raw.githubusercontent.com/kmanc/remote_code_oxidation/main/docs/assets/gifs/hash_params.gif)
|
|
|
|
|
|
## How it works
|
|
|
|
Hash params performs Rust's default hash algorithm ([SipHash-1-3 at the time of this writing](https://en.wikipedia.org/wiki/SipHash)) on command line arguments and prints their output in hex. This should not be considered cryptographically secure, but works for obfuscating a value in a repeatable way.
|
|
|
|
|
|
## Using it
|
|
|
|
1. *[Not shown in demo]* Compile the executable
|
|
1. For Linux
|
|
```commandline
|
|
cargo build -p hash_params --release
|
|
```
|
|
2. For Windows
|
|
```commandline
|
|
cargo build --target x86_64-pc-windows-gnu -p hash_params --release
|
|
```
|
|
2. Run the executable with the desired hash targets
|