π
π
π
π
CheatSheet Pentest
Searchβ¦
π
π
π
π
CheatSheet Pentest
File transfer
Check information user and system
Path hijacking
XXS and SQLi to try
Privilege Escalation
Programming
To try on ports
Reverse Shell
Registers
TTY
Powered By
GitBook
TTY
To generate a fully TTY, we can execute CTRL+C, have command history and move between them.
$
: Victim machine
>
: Attacker machine
Once we get a reverse shell, we do this:
$ script /dev/null -c
bash
CTRL + Z
>
stty raw -echo
;
fg
>
reset
>
xterm
$
export
TERM
=
xterm
$
export
SHELL
=
bash
Open a new terminal and execute:
>
stty -a
# Take values and go back to victim machine
$ stty rows value_rows columns value_columns
If we want change terminal color:
β
List of shell colors
.
$
PS1
=
"
\e
[0;34m\
[email protected]
\h:\w\$
\e
[m"
# We get something like this with color 34 (blue)
[email protected]
:~$
β
Previous
Registers
Last modified
1yr ago
Copy link