Skip to content

fridgehead/Powershell-SSHTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

SSH-Tools.ps1

Some ssh tools for powershell using the ssh.net libraries.

Current functionality:

  • Reverse port forwarding
  • Includes ssh.net dll in the script, doesnt write to disk when executed and only requires this ps1 file. Can be used with Empire without breaking opsec

Usage

import-module SSH-Tools.ps1 Start-ReversePortForward -sshhost ssh.myhost.com -username USER1 -password PASS -RemotePort 23000 -Desthost someinternalserver.local -destport 80

or to start a tunnel + socks5 proxy on port 23000

start-socksproxy -sshhost ssh.myhost.com -username USER -password PASS -RemotePort 23000 -LocalPort 10000

when youre done

Stop-PortForwardJobs

About

A bunch of useful SSH tools for powershell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published