Permission denied when trying to run malicious .exe file?

I am trying to execute malicious.exe file in my VM. It is malware I made as a Proof of concept and it is written in Rust. When I try to execute it, I get:

thread 'main' panicked at 'Unable to write file: Os { code: 5, kind: PermissionDenied, message: "Access is denied." }', src\bin\malicious.rs:63:45 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 

Now, the thing is that I AM admin in my VM and that I can make files there like “xyz.txt” file via GUI.
I also ran executable as Administrator but result is same.

It is malware I made as a Proof of concept and it is written in Rust.

Any idea why I am unable to run this .exe file?

submitted by /u/0dayguy
[link] [comments]

June 29, 2023
Read More >>