Skip to content

A simple powershell script to create a reverse SSH tunnel through an HTTP-like port

Notifications You must be signed in to change notification settings

superpb9/RevSSHTunnelPowershell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RevSSHTunnelPowershell

A simple powershell script to create a reverse SSH tunnel through an HTTP-like port (80/443/8443)

Requirement

  1. A .Net library called 'Renci.SshNet.dll' from SSH.NET. You can download the same release from SSH.NET
  2. When executing the script, please also make sure the Renci SshNet DLL is saved in the same folder of the ps1 script. You might also need to manually right click on the DLL and unlock it
  3. To route all inbound traffic through 127.0.0.1:1080, you also need to run a client side SOCK5 listener on 127.0.0.1:1080. Otherwise, you can manually add multiple internal 'address:port' to achieve the same goal

Features

  • The initial SSH outbound traffic (remote port forwarding) can be established via a web proxy
  • It also supports web proxy authentication using username and password
  • This script uses local "[void][reflection.assembly]::LoadFrom" instead of "IEX (Invoke-Expression)", which is heavily signatured by EDR already

About

A simple powershell script to create a reverse SSH tunnel through an HTTP-like port

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published