https://github.com/rhymeswithmogul/termbin4ps
Native Termbin support for PowerShell and Windows PowerShell.
https://github.com/rhymeswithmogul/termbin4ps
fiche linux macos netcat powershell powershell-cmdlets powershell-core powershell-gallery powershell-module powershell-modules pwsh termbin windows windows-powershell
Last synced: 3 months ago
JSON representation
Native Termbin support for PowerShell and Windows PowerShell.
- Host: GitHub
- URL: https://github.com/rhymeswithmogul/termbin4ps
- Owner: rhymeswithmogul
- License: agpl-3.0
- Created: 2020-10-01T00:38:37.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-05T02:08:57.000Z (about 1 year ago)
- Last Synced: 2025-04-09T01:51:16.547Z (6 months ago)
- Topics: fiche, linux, macos, netcat, powershell, powershell-cmdlets, powershell-core, powershell-gallery, powershell-module, powershell-modules, pwsh, termbin, windows, windows-powershell
- Language: PowerShell
- Homepage: https://powershellgallery.com/packages/Termbin4PS/
- Size: 98.6 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.txt
- License: LICENSE.md
- Security: SECURITY.md
- Authors: AUTHORS.txt
Awesome Lists containing this project
README
# Termbin4PS
[](https://app.codacy.com/gh/rhymeswithmogul/Termbin4PS?utm_source=github.com\&utm_medium=referral\&utm_content=rhymeswithmogul/Termbin4PS\&utm_campaign=Badge_Grade_Settings) [](https://powershellgallery.com/packages/Termbin4PS/) [](https://powershellgallery.com/packages/Termbin4PS/)
Native [Termbin](https://termbin.com) support for PowerShell!
## Example
To send a log file to Termbin, simply pipe the raw content to `Out-Termbin`:
```powershell
PS C:\> Get-Content -Raw 'logfile.txt' | Out-Termbin
https://termbin.com/1a2b
```Note that you need to use `Get-Content -Raw` so that line endings are not stripped.
## Another Example
To send a process list to Termbin, simply pipe your command through `Out-String` on its way to `Out-Termbin`:
```powershell
PS C:\> Get-Process | Out-String | Out-Termbin
```In most cases, you will need to pass your output through PowerShell's `Out-String` so that PowerShell will convert the native .NET objects into simple strings.
## Using Termbin-compatible Services
If Termbin ever shuts down, don't worry; you can use this module with compatible services.
```powershell
PS C:\> Get-Process | Out-String | Out-Termbin -HostName another.termbin.example -Port 9999
```