Bandit Level 20 Level 21

christianpaez

Christian Paez

Posted on December 27, 2023

Bandit Level 20 Level 21

Introduction

Welcome back tothe OverTheWire Bandit challenges. In this level, we encounter a scenario involving networking and data transfer.

Previous Flag

Before we delve into the current challenge, let's input the flag from the previous level:

Flag:

VxCazJaVykI6W36BkBU0mJTCM8rR95XT
Enter fullscreen mode Exit fullscreen mode

Netcat

The provided command involves using Netcat (nc) to transfer the contents of the /etc/bandit_pass/bandit20 file over a network connection. Let's break it down:

cat /etc/bandit_pass/bandit20 | nc -lvp 1234 &
Enter fullscreen mode Exit fullscreen mode

This command reads the password from the file and sends it over a network connection. The nc -lvp 1234 part sets up a Netcat listener on port 1234, waiting to receive the data.

Connecting with suconnect

Now, let's use the ./suconnect command to establish a connection and retrieve the password:

./suconnect 1234
Enter fullscreen mode Exit fullscreen mode

This command initiates a connection to the Netcat listener on port 1234, allowing us to receive the contents of the password file.

Flag Unveiled

Upon successful execution, the password for Bandit level 21 should be displayed, providing us with the key to the next stage:

Flag:

NvEJF7oVjkddltPSrdKEFOllh9V1IBcq
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
christianpaez
Christian Paez

Posted on December 27, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Bandit Level 21 Level 22
ctf Bandit Level 21 Level 22

January 2, 2024

Bandit Level 20 Level 21
ctf Bandit Level 20 Level 21

December 27, 2023

Bandit Level 19 Level 20
ctf Bandit Level 19 Level 20

December 17, 2023

Bandit Level 18 Level 19
ctf Bandit Level 18 Level 19

December 17, 2023

Bandit Level 17 Level 18
ctf Bandit Level 17 Level 18

December 13, 2023