Black Hat Python - SSH Proxy

Filed under python on November 18, 2019

This one actually ended up being pretty much a straight port over. I decided to keep with the quick and dirty approach here because I’ve been procrastinating about doing it for the last week, so just getting it over and done with for now. The code is available here

Core lesson

This script shows off the transport mode of Paramiko, and since we don’t really do anything with the data we read off the sockets there really wasn’t a lot to do around the socket reads and writes. In theory we could intercept these messages and munge them as we wanted.

Hopefully I shouldn’t procrastinate as much now that I’ve bit the bullet and done that one for now.


Stephen Gream

Written by Stephen Gream who lives and works in Melbourne, Australia. You should follow him on Minds