Writeups OverTheWireBanditLinuxgrep

Bandit 7 Writeup - OverTheWire

Writeup for Bandit level 7 from OverTheWire: grepping through a large file.

Contents

Wargame: Bandit

Level: 7

Category: Linux Fundamentals

Description

The password is in data.txt next to the word millionth. The file contains millions of lines.

Overview

Solution

channel = connect.system("grep millionth data.txt")
output = channel.recv().decode().strip().split()
result = output[1]

Password

TESKZC0XvTetK0S9xNwm25STk5iWrBvP

← Back to Blog