Socket
Book a DemoInstallSign in
Socket

github.com/algorora/control-flow-flattening-poc

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/algorora/control-flow-flattening-poc

v0.0.0-20240816193919-df349c0fbe7c
Source
Go
Version published
Created
Source

Control Flow Flattening Obfuscator for PowerShell Scripts

This repository contains a Go-based tool designed to apply control flow flattening to PowerShell scripts. Control flow flattening is an advanced obfuscation technique that makes the execution path of scripts more complex and harder to analyze. This tool is intended for educational purposes and to demonstrate how control flow flattening can be implemented in practice.

Features

Control Flow Flattening: Transforms PowerShell scripts to obscure their execution flow by introducing complex conditional branches and random variable names. Simple and Effective: Provides a straightforward implementation to showcase the control flow flattening technique without additional obfuscation methods.

Usage

Build the Executable:

go build control_flow_flattening.go

Run the Tool:

./control_flow_flattening -script /path/to/your/script.ps1

Replace /path/to/your/script.ps1 with the path to your PowerShell script.

Example

To obfuscate a PowerShell script, place your script in the designated path and run the tool. The obfuscated script with flattened control flow will be output to the terminal.

Disclaimer

This tool is provided for educational and research purposes only. Use it responsibly and ensure compliance with all applicable laws and regulations. The creator of this tool does not endorse or condone illegal activities.

FAQs

Package last updated on 16 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.