Skip to content

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

License

Notifications You must be signed in to change notification settings

Leo4j/Invoke-SMBRemoting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 

Repository files navigation

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)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published