Is production: true

PowerShell

PowerShell, developed by Microsoft, is a task automation and configuration management framework, consisting of a command-line shell and an associated scripting language. Initially a Windows component only, it is now open-source and cross-platform.

The language draws developer’s eye sight due to

PowerShell is a powerful tool for administrators and developers to automate tasks and manage systems at scale.

Web Site

Tools

Basic

Open TCP port for debug

On server side, open a Tcp Socket on 8080 port (change the target port you are testing)

$Listener = [System.Net.Sockets.TcpListener]{target port};
# $Listener = [System.Net.Sockets.TcpListener]8080;
$Listener.Start()
#.
#.
#.
# when stop
$Listener.Stop

On the client side, use tnc command for connection

tnc 127.0.0.1 8080

Preventing sensitive command being logged by history

To work with shell, we normally have some secrete data to store in the environment, add a backtick(`) as prefix could help prevent the message being logged.

` set $env:SomeSecret = "secret"