Hack This Site! Basic Missions: Basic 4

Nouf
1 min readApr 2, 2020

Level 4

Challenge:

This time Sam hardcoded the password into the script. However, the password is long and complex, and Sam is often forgetful. So he wrote a script that would email his password to him automatically in case he forgot. Here is the script:

Solution:

As reading the source code, I figured out there is a hidden field, so just displayed it by the web developer extension

An email appeared! By reading the challenge, it told me that the script will send the password when I press “send password to Sam” so I just put my email (has to be your hack it site registered email) in the field instead of Sam’s and hit the “send password button” and the password will be sent to you!

--

--