Home

Awesome

Description

A tool for generating .NET serialized gadgets that can trigger .NET assembly load/execution when deserialized using BinaryFormatter from JS/VBS based scripts. <br>The gadget being used triggers a call to Assembly.Load when deserialized via jscript/vbscript, this means it can be used in the same way to trigger in-memory load of your own shellcode loader at runtime. <br><br> Lastly, the tool was created mainly for automating WSH scripts weaponization for RT engagements (LT, Persistence, Initial Compromise), the shellcode loader which was used for PoC is removed and replaced by an example assembly implemented in the "TestAssemblyLoader.cs" class for PoC purpose.

TLDR

Details

Usage:

-w, --scriptType=VALUE js, vbs, vba or hta<br> -e, --encodeType=VALUE VBA gadgets encoding: b64 or hex (default set to b64)<br> -o, --output=VALUE Generated payload output file, example: C:\Users\userX\Desktop\output (Without extension)<br> -r, --regfree registration-free activation of .NET based COM components<br> -h, --help=VALUE Show Help

Testing Notes

Credits & References

The tool is based on the awesome research/work done by:

Disclaimer

GadgetToJScript should be used for authorized red teaming and/or nonprofit educational purposes only. Any misuse of this software will not be the responsibility of the author. Use it at your own networks and/or with the network owner's permission.