• XSS.stack #1 – первый литературный журнал от юзеров форума

прочее C# SetThreadContext Shellcode Runner Example

phant0m

RAM
Пользователь
Регистрация
01.05.2020
Сообщения
119
Реакции
67

Gitgub: https://github.com/djhohnstein/CSharpSetThreadContext


Usage​


The solution file is in Cryptor\ThreadContextRunner.sln. Open this and view the two projects. If you wish to change the encryption key, you'll need to change it both in Cryptor and Runner projects.


Right click Cryptor in the solution pane and click "Build". This will build the executable, Cryptor.exe, that will encrypt your shellcode. Run this by: Cryptor.exe C:\Path\To\Shellcode.bin. This generates a new file, encrypted.bin.


Next, right click the Runner project in the Solution Explorer on the right hand side and click "Properties". Go to Resources then add a new File resource. Navigate to the folder where encrypted.bin was generated and add it as a resource. Then, click this new resource in the Solution Explorer and ensure that the Build Action is set to "Embedded Resource".


Now you can rebuild the entire solution. Runner.exe will be generated and should be suitable to run your shellcode when double clicked.
 


Напишите ответ...
  • Вставить:
Прикрепить файлы
Верх