Writeups OverTheWireNatasWebHTML

Natas 1 Writeup - OverTheWire

Writeup for Natas level 1 from OverTheWire: viewing source with right-click disabled.

Contents

Wargame: Natas

Level: 1

Category: Web Security

Description

Same as level 0 but right-clicking is blocked by JavaScript. The password is still in the HTML source; only the UI shortcut is disabled.

Overview

Solution

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

Password

h4ubbcXrWqsTo7GGnnUMLppXbOogfBZ7

← Back to Blog