CTF All The Things
  • CTF All The Things
  • Useful Stuff
    • Bash-fu
    • Bash mkdir and cd
    • Upgrade Shell
    • Static Binaries
  • Discovery & Scanning
    • NMAP
    • Gobuster
    • SMB
    • SNMP
    • SQLMap
    • Hydra
    • Nikto
    • WPScan
    • Joomla
    • TCPDump
  • Gaining Access
    • Remote Desktop
    • Evil-WinRM
    • Reverse Shells
    • Web Shells
    • SSH Port Forwarding
  • Enumeration & Exploitation
    • Things To Check First
    • Enumeration Scripts
    • Capabilties
    • SUID Binaries
    • Active Services
    • Port Enumeration
    • Steganography
    • Cracking Hashes
  • Reversing
  • Exfiltration
    • Netcat Redirect
    • SSH/SCP
    • Bash wget
    • HTTP Server
  • Maintaining Access
  • Pencer CTF Blog
Powered by GitBook
On this page
Edit on GitHub
  1. Gaining Access

SSH Port Forwarding

Also known as tunnelling. Can use it to access services on a box that we can do from a command line. Like the box has a webserver running and we need a web browser so we tunnel from Kali to the box. Then we can use our local Kali web browser to view content on the box.

For example:

ssh -L 10000:localhost:10000 agent47@10.10.42.137

Here we are sending any traffic going to port 10000 on Kali through the SSH tunnel to port 10000 on the box at IP 10.10.42.137.

PreviousWeb ShellsNextEnumeration & Exploitation

Last updated 2 years ago