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?

EDIT: These are folders in which malware avoids writing out files

`"ProgramData",
"Windows",
"bootmgr",
"$WINDOWS.~BT",
"Windows.old",
"Temp", "tmp",
"Program Files",
"Program Files (x86)",
"AppData",
"$Recycle.Bin",`

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

from hacking: security in practice https://ift.tt/JZwdKpz

Comments