Writeups OverTheWireNatasWebHTML

Natas 0 Writeup - OverTheWire

Writeup for Natas level 0 from OverTheWire: finding a password in the HTML source.

Contents

Wargame: Natas

Level: 0

Category: Web Security

Description

The password for natas1 is hidden in the HTML source of the page. No interaction is needed beyond viewing the page source.

Overview

Solution

response = requests.get(url, auth=("natas0", current_password))
soup = BeautifulSoup(response.text, "html.parser")
result = soup.find(string=lambda s: "password" in s.lower())

Password

g9D9cREhslqBKtcA2uocGHPfMZVzeFK6

← Back to Blog