# SNOWCRASH | A Polyglot Payload Generator

**URL:** <https://onehack.st/t/snowcrash-a-polyglot-payload-generator/98645>\
**Category:** Tools & Scripts\
**Tags:** tools, hacking\
**Created:** [July 30, 2020, 11:49am UTC](https://onehack.st/t/snowcrash-a-polyglot-payload-generator/98645 "2020-07-30T11:49:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlueHacker](https://onehack.st/user_avatar/onehack.st/bluehacker/32/174721_2.png) [@BlueHacker](https://onehack.st/u/BlueHacker)\
**Post date:** [July 30, 2020, 11:49am UTC](https://onehack.st/t/snowcrash-a-polyglot-payload-generator/98645/1 "2020-07-30T11:49:35Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/5/c/5cb299dd6476a308aa007a1031f8b68ad45c90c1.png)

A polyglot payload generator

**Introduction**  
SNOWCRASH creates a script that can be launched on both Linux and Windows machines. Payload selected by the user (in this case combined Bash and Powershell code) is embedded into a single polyglot template, which is platform-agnostic.  
There are few payloads available, including command execution, reverse shell establishment, binary execution and some more :\>

**Basic usage**

1. Install dependencies: `./install.sh`
2. List available payloads: `./snowcrash --list`
3. Generate chosen payload: `./snowcrash --payload memexec --out polyglot_script`
4. Change extension of the polyglot script: `mv polyglot_script polyglot_script.ps1`
5. Execute polyglot script on the target machine

**Additional notes**  
Delay before script run and payload execution can be specified as an interval (using `--sleep` flag) in the form:

```auto
x[s|m|h]

```

where

```auto
x = Amount of interval to spend in idle states = Secondsm = Sinutesh = Hours

```

After generation, the extension of generated script containing the payload can be set either to `.sh` or `.ps1` (depending on the platform we want to target).  
Generated payload can be written directly to STDOUT (instead of writing to a file) using `--stdout` flag.

**Screenshots**

 ![image](https://onehack.st/uploads/default/original/3X/4/1/41d2ca7c3025ea0267a6ce0543974b4939248e55.png)

 ![image](https://onehack.st/uploads/default/original/3X/6/0/60bed2d54340ea7d3f2a259815980848643416d8.png)

## GitHub:

> **[GitHub - redcode-labs/SNOWCRASH: A polyglot payload generator](https://github.com/redcode-labs/SNOWCRASH)**
>
> A polyglot payload generator
