项目作者: rhymeswithmogul

项目描述 :
Native Termbin support for PowerShell and Windows PowerShell.
高级语言: PowerShell
项目地址: git://github.com/rhymeswithmogul/Termbin4PS.git
创建时间: 2020-10-01T00:38:37Z
项目社区:https://github.com/rhymeswithmogul/Termbin4PS

开源协议:Other

下载


Termbin4PS

Codacy Badge PowerShell Gallery Version (including pre-releases) PowerShell Gallery

Native Termbin support for PowerShell!

Example

To send a log file to Termbin, simply pipe the raw content to Out-Termbin:

  1. PS C:\> Get-Content -Raw 'logfile.txt' | Out-Termbin
  2. 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:

  1. 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.

  1. PS C:\> Get-Process | Out-String | Out-Termbin -HostName another.termbin.example -Port 9999