DEV Community

Cover image for Bandit Level 13 Level 14
Christian Paez
Christian Paez

Posted on

4

Bandit Level 13 Level 14

Introduction

Greetings, We're back with another step in the Bandit wargame journey. Level 13 introduces us to Secure Shell (SSH) and the concept of privilege escalation. Let's dive right into the details with no extra flair.

Starting Point

Before we proceed, have the password from Level 12 handy: wbWdlBxEir4CaE8LaPhauuOo6pwRmrDw.

Steps

  1. SSH Access with a Private Key: This time, you're using a private SSH key named sshkey.private. Let's get in:

    ssh -i sshkey.private bandit14@localhost -p 2220
    

    This command establishes a secure connection with the key and the provided username and port.

  2. Retrieve the Flag: Once you're in, read the flag:

    cat /etc/bandit_pass/bandit14
    

By doing so, you will get the password for the next level:

fGrHPx402xGC7U7rXKDaxiWFTOiF0ENq
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay