Network Shells - USENIX

Network Shells

Michael Smith

Image:

What does a Shell give us?

A REPL Repeatability Direct access to system

operations User-focused design Hierarchical context & sense

of place

Image:

What does a Shell give us?

A REPL Repeatability Direct access to system

operations User-focused design Hierarchical context & sense

of place

Image:

Management at a distance (netsh)

Netsh: Configure DHCP servers with netsh -r RemoteMachine -u domain\username [RemoteMachine] netsh>interface [RemoteMachine] netsh interface>ipv6 [RemoteMachine] netsh interface ipv6>show interfaces

Reference:

Management at a distance (netsh)

Netsh: Configure DHCP servers with

netsh L-ocratioRnemoteMachinHeiera-rcuhicdalomain\username

[RemoteMachine] netshco>nitenxtt erface

Simpler

[RemoteMachine] netsh interface>ipv6 commands

[RemoteMachine] netsh interface ipv6>show interfaces

Reference:

Management at a distance (WSMan)

WSMan (in Powershell): Manage Windows remotely with Set-Location -Path WSMan:\SERVER01 Get-ChildItem -Path . Set-Item Client\TrustedHosts *. -Concatenate

Reference:

Management at a distance (other examples)

fishi0x01/vsh - for manipulating Vault secrets code.web/tool/11.4.0/vmware-powercli - for managing everything VMWare in PowerShell vmware/rvc - a console for vSphere pod/distribution/ldapsh/ldapsh - a shell for editing LDAP

Interlude: PowerShell Providers

Provider

Drive

Data store

Get-Item alias:

Get-ChildItem HKLM:\SOFTWARE\

Alias

Alias:

Certificate

Cert:

Environment Env:

PowerShell aliases x509 certificates for digital signatures Windows environment variables

Set-Location cert:

Get-ChildItem

Reference: icrosoft.powershell.core/about/about_providers

FileSystem Function Registry Variable WSMan

(*)

File system drives, directories, and files

Function:

PowerShell functions

HKLM:, HKCU:

Windows registry

Variable:

PowerShell variables

WSMan:

WS-Management configuration information

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download