An open API service indexing awesome lists of open source software.

https://github.com/5noxi/ps12bat

Converts .ps1 files to a standalone .bat files via base64. Doesn't work with BOM (UFT8 with BOM) encoded scripts!
https://github.com/5noxi/ps12bat

automated automation base64 batch convert converter encoding powershell powershell-script ps ps12bat pstobat

Last synced: 12 months ago
JSON representation

Converts .ps1 files to a standalone .bat files via base64. Doesn't work with BOM (UFT8 with BOM) encoded scripts!

Awesome Lists containing this project

README

          

# PS12BAT
Converts `.ps1` files to a standalone `.bat` files via base64. Won't work, if it includes any banner with ASCII art!

**Preview:**
![ps12batpre](https://github.com/5Noxi/PS12BAT/blob/main/NV-PS12BAT.png?raw=true)

## Discord Server
- https://discord.gg/E2ybG4j9jU

## How it works
Converts a `.ps1` file to a `.bat` by encoding the powershell script in base64 and embedding it in a batch file for execution, using the following command:
```
powershell -ExecutionPolicy Bypass -Command "iex ([Text.Encoding]::UTF8.GetString([Convert]::FromBase64String('::Base64Payload::')))"
```