first of all i am going to link some sources 🕵️
https://github.com/NYAN-x-CAT/CSharp-RunPE
https://github.com/Arvanaghi/CheckPlease...aster/C%23
okay so lets jump right into it, this is how a crypter works:
1. load file from resources or EOF
2. decrypt file
3. load file
4. ???
5. run file
6. profit! 🤑🤑🤑
where ??? is your runpe method.
okay so, make a new program in visual studio, you can call it anything.
now add this code for decryption
https://pastebin.com/AdU2ZQnG
next add the runpe i linked to it, the includes are
now that you have added your runpe and decrypt code, we now need to need to add a resource.
first we must make another file in visual studio
you can just copy and paste this code into the app.😋
https://pastebin.com/GdM1JfPv
now run it, type in the full path of u exe u wanna encrypt.
then type the output file (MAKE SURE ITS .txt!!!)
next go back to our stub.
now right click your project and click add, then type resource.
name it resource1.resx (this is default)
add your resource as primary
now we are read for the fun part 😈
copy and paste this code into your forms main class
https://pastebin.com/ktJwJaNx
now compile your stub!!!
after it has compiled download a .net obfuscator (i recommend .netpatcher as it is from HF)
uncheck a few things like anti debug etc anti dlasm as this will increase detections
after obfuscating this is our result:
![[Image: m27zwRs0oBWy.png]](https://antiscan.me/images/result/m27zwRs0oBWy.png)
if you want a tip to modify the runpe can change the virtuallocex calls to use PAGE_NOACCESS and use virtualprotectex after with EXECUTE_READWRITE to modify the permissions back so antivirus cant read what you are writing.
I hope you enjoyed this as much as I did releasing it, thanks to nyancat this thread was possible, afterall we are using his runpe.
have a nice day! 💯💯💯💯
https://github.com/NYAN-x-CAT/CSharp-RunPE
https://github.com/Arvanaghi/CheckPlease...aster/C%23
okay so lets jump right into it, this is how a crypter works:
1. load file from resources or EOF
2. decrypt file
3. load file
4. ???
5. run file
6. profit! 🤑🤑🤑
where ??? is your runpe method.
okay so, make a new program in visual studio, you can call it anything.
now add this code for decryption
https://pastebin.com/AdU2ZQnG
next add the runpe i linked to it, the includes are
Code
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
using System.Security.AccessControl;
using System.Security.Principal;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Windows.Forms;
using Microsoft.Win32;now that you have added your runpe and decrypt code, we now need to need to add a resource.
first we must make another file in visual studio
you can just copy and paste this code into the app.😋
https://pastebin.com/GdM1JfPv
now run it, type in the full path of u exe u wanna encrypt.
then type the output file (MAKE SURE ITS .txt!!!)
next go back to our stub.
now right click your project and click add, then type resource.
name it resource1.resx (this is default)
add your resource as primary
now we are read for the fun part 😈
copy and paste this code into your forms main class
https://pastebin.com/ktJwJaNx
now compile your stub!!!
after it has compiled download a .net obfuscator (i recommend .netpatcher as it is from HF)
uncheck a few things like anti debug etc anti dlasm as this will increase detections
after obfuscating this is our result:
![[Image: m27zwRs0oBWy.png]](https://antiscan.me/images/result/m27zwRs0oBWy.png)
if you want a tip to modify the runpe can change the virtuallocex calls to use PAGE_NOACCESS and use virtualprotectex after with EXECUTE_READWRITE to modify the permissions back so antivirus cant read what you are writing.
I hope you enjoyed this as much as I did releasing it, thanks to nyancat this thread was possible, afterall we are using his runpe.
have a nice day! 💯💯💯💯


![[Image: 6xBycLk.gif]](https://i.imgur.com/6xBycLk.gif)


![[Image: Syr3DlV.png]](https://i.imgur.com/Syr3DlV.png)
![[Image: FtwuQgr.gif]](https://i.imgur.com/FtwuQgr.gif)