# med0x2e/GadgetToJScript

A tool for generating .NET serialized gadgets that can trigger .NET assembly load/execution when deserialized using BinaryFormatter from JS/VBS/VBA based scripts.

Repository: https://github.com/med0x2e/GadgetToJScript
Canonical: https://ross.abutalabs.com/products/gadgettojscript
Language: C#
License: GPL-3.0
License Family: copyleft
Last push: 2021-07-26T17:35:40+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2524, "days_push": 1864, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1133, forks 177 (observed 2026-08-28T04:03:43.017271+00:00)

## What it is
GadgetToJScript is a C# tool that generates .NET BinaryFormatter serialized gadget payloads embedded in JS/VBS/VBA/HTA scripts, triggering .NET assembly load and execution on deserialization. It is designed for red team weaponization of WSH scripts, including AMSI and .NET 4.8+ type-check bypasses.

## Use cases
- generate jscript payloads that execute a .NET assembly via BinaryFormatter deserialization
- weaponize WSH scripts for red team initial access
- bypass AMSI and .NET 4.8 assembly load controls in script payloads
- create VBA/VBS droppers that run shellcode loaders
- automate registration-free .NET COM activation in scripts

## When to choose
- you are a red teamer needing serialized .NET gadget payloads in JS/VBS/VBA scripts
- you need to bypass .NET 4.8+ ActivitySurrogateSelector type checks
- you target Windows environments with .NET Framework 3.5 through 4.8+

## When to avoid
- you need a general-purpose deserialization vulnerability scanner
- you want defensive detection tooling rather than offensive payload generation
- your targets are non-Windows or non-.NET environments

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: security, serialization, cryptography
- domain: security, penetration-testing, windows
- platform: windows, dotnet, cli
- tags: offensive-security, red-team, deserialization, binaryformatter, wsh, amsi-bypass, dotnet, initial-access, gadget-chains

## Member repositories
- med0x2e/GadgetToJScript (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:43.017271+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:37:26.814269+00:00, confidence not recorded.
  - readme: https://github.com/med0x2e/GadgetToJScript (fetched 2026-08-28T04:03:43.017271+00:00, sha e8d1c714edf4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
