When I get a reverse shell, the first thing I typically do it "upgrade it". That means running script or Python to get a TTY, then backgrounding it and running stty raw -echo. Let's figure out what all of that is doing.
Check out some other "Hacking Foundations" videos:
- Exploring bash Reverse Shell - • Exploring bash Reverse...
- Exploring mkfifo / nc Reverse Shell - • Exploring mkfifo / nc ...
[00:00] Introduction
[01:03] What is a TTY (PTY)?
[02:24] Examining TTYs in a terminal, using stty
[05:22] "Raw" and "Cooked" modes, demo with tmux
[08:12] Starting a TTY - local terminal, SSH, script, Python
[11:37] Walk-through of un-upgraded shell
[12:58] Walk-through of shell upgrade - Initiating TTY on target
[13:32] Adjusting local TTY to raw mode
[14:16] Looking at reset command
[17:18] Examples of reverse shell in terminal
[20:53] Summary
16 авг 2024