Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 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 (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-25T23:56:34.000Z (over 2 years ago)
- Last Synced: 2024-09-28T04:21:10.512Z (4 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: 67.4 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: COPYING
Awesome Lists containing this project
README
# Termbin4PS
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/f136d39acc914277bc1db3f6c85c6906)](https://app.codacy.com/gh/rhymeswithmogul/Termbin4PS?utm_source=github.com\&utm_medium=referral\&utm_content=rhymeswithmogul/Termbin4PS\&utm_campaign=Badge_Grade_Settings) [![PowerShell Gallery Version (including pre-releases)](https://img.shields.io/powershellgallery/v/Termbin4PS?include_prereleases)](https://powershellgallery.com/packages/Termbin4PS/) [![PowerShell Gallery](https://img.shields.io/powershellgallery/dt/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
```