OverTheWire: Bandit Level 27 → Level 28


Level Goal

There is a git repository at ssh://bandit27-git@localhost/home/bandit27-git/repo. The password for the user bandit27-git is the same as for the user bandit27.

Clone the repository and find the password for the next level.

Commands you may need to solve this level


> whatis git
Git (3pm) - Perl interface to the Git version control system
git (1) - the stupid content tracker

Helpful Reading Material


From the question we understand that in this level we are going to be working with Git. Before we clone the repository lets make an folder in the /tmp directory as from some of the previous levels we know we only have proper permissions to save files in the /tmp folder.

bandit27@bandit:~$ cd /tmp/bandit27@bandit:/tmp$ mkdir git_level27bandit27@bandit:/tmp$ cd git_level27bandit27@bandit:/tmp/git_level27$

Now that we have created our working directory lets clone the repository.

The password for the repository is the same as bandit27

Password : 3ba3118a22e93127a4ed485be72ef5ea

Now that we have the repository cloned to our machine. Lets see what are the files that are present in the repository.

We see that there is a file called as “README” in the folder. Lets have a look at the contents of this file.

Note : The .git directory found in the repository is created by git that consists of files that are required for the proper functioning of the features that are provided by git.

bandit27@bandit:/tmp/git_level27/repo$ cat README 
The password to the next level is: 0ef186ac70e04ea33b4c1853d2526fa2

And there we go we have the password for the next level !!!

Logout of the current session and login as bandit28 to start the next level

ssh bandit28@bandit.labs.overthewire.org -p 2220
This is a OverTheWire game server. More information on http://www.overthewire.org/wargames
bandit28@bandit.labs.overthewire.org's password: 0ef186ac70e04ea33b4c1853d2526fa2




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Locket Widget

Blue Yonder Clear Report Cache

Rails background workers: Sidekiq overview and how to deploy it to Heroku

CDC Is Making COVID-19 Vaccine Recommendations

Mapping Remote Folders from the Command Line

About the Team and What’s Next?

Risk Analytics using Parallel Processing

TryHackMe- Ignite Walkthrough

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store