Why Would You Use A Reverse SSH Port Forwarding

theUnknown
3 min readJul 23, 2023

Moving laterally in the target network.

Imagine a situation where you’ve obtained a shell on a target machine/victim host. You’re looking around for interesting files and you find a PostgreSQL database config file. The file contains something like below:

tokyolab—server { 
db {
url = "jdbc:postgresql://tokyolab—db:5432/postgres"
appPassword =…

--

--

theUnknown

Everything is unknown until it’s known. Self-learner.