Level Goal
The password for the next level is stored in the only human-readable file in the inhere directory. Tip: if your terminal is messed up, try the "reset" command.Commands you may need to solve this level
ls, cd, cat, file, du, findSolution:
- [Comment] Using SSH to connect the server
- sp@simple-plan:~|=> ssh bandit4@bandit.labs.overthewire.org
...
bandit4@bandit.labs.overthewire.org's password: pIwrPrtPN36QITSp3EQaw936yaFoFgAB - [Comment] Using ls command to list directory contents
- bandit4@melinda:~$ ls
inhere - [Comment] Using cd command to change the shell working directory
- bandit4@melinda:~$ cd inhere/
- bandit4@melinda:~/inhere$ ls
-file00 -file01 -file02 -file03 -file04 -file05 -file06 -file07 -file08 -file09 - [Comment] Using for loop and cat command to output all file contents
- bandit4@melinda:~/inhere$ for f in ./*; do cat $f; done;
�S�U� �&� �?�?ɦ�7 ��n�| ����/�$�Q�J
��NO2���s�� =\�� 1�OF��
4��<�o�l�����՚�~{b�W�$�s<��~(����Å�8��b
dhz��c�
g7�!�x �Ӈ��Eo[� �B�
���& 6] �U �wRZ!N�o�h��)�'߳e�l�?-p#��s ���~�$�������<��Dj�N#C � �0�|���T����G�@���koReBOKuIDDepwhWk7jZC0RTdopnAYKh
��d C�g�b�.< ��"Q 2B����{����3S�~і�����|�M�^߮�-%ƌ - [Comment] Using exit command to disconnect connection to server
- bandit4@melinda:~$ exit
logout
Connection to bandit.labs.overthewire.org closed. - [Comment] It's done! Saving the password for next level.
Or you could use ' file ./-* ' to get the filetypes of all the files in the directory, then just open the only text file.
ReplyDeleteThis one's better :)
ReplyDelete