In the Coder box from HackTheBox, I get a encryption executable and an encrypted file. In this video, I'll use DotPeek and Visual Studio to create a decryptor program and decrypt the file.
HackTheBox Coder: https://www.hackthebox.com/machines/coder
Coder Blog Post: https://0xdf.gitlab.io/2023/12/16/htb-coder.html
DotPeek: https://www.jetbrains.com/decompiler/
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:49] Reversing with DotPeek
[02:07] Export to VS Project
[02:56] Making sure code runs
[03:16] Replacing arg parse with hardcoded input / output
[04:21] Hardcoding datetime for random seed
[06:22] EncryptFile to DecryptFile
[07:37] Checking output in Linux VM
[08:13] Review and Conclusion
#pentest #ctf #bugbounty #csharp #dotpeek #visualstudio
Download
0 formats
No download links available.
Modifying .NET Exe: Encrypt to Decrypt [HackTheBox Coder] | NatokHD