A simple, cross-platform GUI tool for safely transferring multiline scripts into restrictive VM consoles. This tool Base64-encodes your script and outputs a compatible decoding snippet for either Windows PowerShell or Linux bash.
- Base64-encodes multiline scripts to preserve formatting
- Outputs ready-to-paste decoding snippets for:
- PowerShell (Windows 7+)
- Bash (Linux/Ubuntu)
- One-click copy to clipboard
- Optional filename and output directory control
- Download the binary in the 'Releases section'
- Run! All Python pre-requisites are compiled with pyinstaller
- Make sure you have Python 3.6+
- Launch the GUI:
python encode.py
- Paste your source script into the top box.
- Optionally specify an output filename and folder.
- Click
Generate PowerShell SnippetorGenerate Linux Snippet. - Copy the output to your clipboard with one click.
- Paste it into the VM console (or browser input tool).
- Run the commands to decode and save the original script.
Some VMs strip or collapse newlines when pasting into remote consoles. This tool ensures your full script makes it intact β no manual escaping or reformatting required.
$encoded = "..."
$decoded = [Text.Encoding]::UTF8.GetString([Convert]::FromBase64String($encoded))
$desktop = [Environment]::GetFolderPath("Desktop")
$outputPath = Join-Path $desktop "decoded.txt"
$decoded | Set-Content $outputPath
Write-Host "Saved to: $outputPath"echo '...' | base64 -d > ~/Desktop/decoded.txt
echo 'Saved to ~/Desktop/decoded.txt'