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!
- Host: GitHub
- URL: https://github.com/5noxi/ps12bat
- Owner: 5Noxi
- License: gpl-3.0
- Created: 2024-12-31T12:34:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-31T12:44:36.000Z (about 1 year ago)
- Last Synced: 2024-12-31T13:28:20.527Z (about 1 year ago)
- Topics: automated, automation, base64, batch, convert, converter, encoding, powershell, powershell-script, ps, ps12bat, pstobat
- Language: PowerShell
- Homepage: https://discord.gg/E2ybG4j9jU
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:**

## 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::')))"
```