Learn how to set up a local SSH tunnel in this video.
- [Scott Simpson] Local port forwarding allow us to assign a…local port, and have that tunneled to a remote service.…This can be useful when you want to retain…a common connection, but have the ability…to change where it connects to.…Let's see how we do this.…I'll use SSH to create a local connection…to tunnel into our metasploitable server.…I'll set up local port 8080 to do this.…
If I look up port 8080 on Kali…I can see there's no service running.…I'll now use SSH to connect to my…metasploitable server on port 80.…But I'll access it by using ports 8080…on my local Kali host.…I'll use the -NNT switch to tell SSH not to set up…a terminal, and -F to background the SSH process.…
- L indicates that this is a local port forwarding request.…SSH has created the tunnel, and we've now got a local access…connection from Kali to the metasploitable web server.…Let's try it out.…And I can see the metasploitable webpage.…
Let's now use LSOF to get the background process ID…and kill it.…We can see SSH is running on herd 2324.…
Author
Released
12/11/2018- How tunneling works
- Running a local SSH tunnel
- Dynamic SSH tunneling
- Pivoting with Armitage and Metaspoit
- Exfiltrating using DET and DNS
- Covert exfiltration with Cachetalk
- Using PyExfil to exfiltrate over HTTPS
Skill Level Advanced
Duration
Views
Related Courses
-
Ethical Hacking: Penetration Testing
with Lisa Bock1h 29m Intermediate -
Penetration Testing Essential Training
with Malcolm Shore2h 29m Intermediate -
Penetration Testing: Advanced Kali Linux
with Malcolm Shore2h 22m Intermediate
-
Introduction
-
Disclaimer1m 16s
-
1. Preparing the Lab
-
2. Tunneling
-
Introduction to tunneling6m 21s
-
Secure Shell (SSH) tunneling1m 30s
-
Running a local SSH tunnel2m 27s
-
Dynamic SSH tunneling2m 26s
-
-
3. Pivoting
-
What is a pivot?1m 48s
-
Pivoting with Armitage4m 7s
-
Pivoting with Metasploit1m 45s
-
-
4. Exfiltration
-
Introduction to exfiltration3m 44s
-
Beaconing3m 46s
-
Installing PyExfil2m 34s
-
Exfiltrating using DET2m 19s
-
Enhancing the Cachetalk tool3m 26s
-
Exfiltrating using DNS3m 7s
-
Installing OpenPuff1m 50s
-
-
Conclusion
-
Next steps1m 38s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Running a local SSH tunnel