Module refinery.lib.scripts.ps1

PowerShell script parser for Binary Refinery.

Expand source code Browse git
"""
PowerShell script parser for Binary Refinery.
"""
from __future__ import annotations

Sub-modules

refinery.lib.scripts.ps1.analysis

Static-analysis substrate for PowerShell deobfuscation. Transforms query a shared, computed model of the program here instead of each re-deriving …

refinery.lib.scripts.ps1.ast

Accessors over the PowerShell node model: small, total functions that read a shape out of a refinery.lib.scripts.ps1.model node without interpreting …

refinery.lib.scripts.ps1.data

The .NET type and PowerShell command database that the PowerShell analysis and deobfuscation subsystems share: type accelerators and members, command …

refinery.lib.scripts.ps1.deobfuscation

PowerShell AST deobfuscation transforms.

refinery.lib.scripts.ps1.dotnet

The grammar of .NET type names, as PowerShell source writes them and as .NET reflection reports them. This module is purely syntactic: it turns the …

refinery.lib.scripts.ps1.lexer
refinery.lib.scripts.ps1.model

PowerShell AST node types.

refinery.lib.scripts.ps1.parser

Recursive-descent parser for PowerShell based on the PowerShell Language Specification 3.0.

refinery.lib.scripts.ps1.synth

AST-to-source synthesizer for PowerShell.

refinery.lib.scripts.ps1.token