CS Lab 7 PDF
CS Lab 7 PDF
2200291530090
CSE(AIML)-B
LAB - 7
TYPES OF XSS:
1. Reflected XSS
2. Stored XSS
In this case, hacker data is not stored on the website. reflected XSS only execute on the victim
side. reflected cross-site scripting A hacker sends input script that website then reflected back to
the victim’s browser, where hacker it executed the malicious JavaScript payloads.
Requirements:
1. Xampp or wamp
Payload: <script>alert(“xss”)</script>
Step 1 : enter the admin name in the bar named “whats your name “
Step 2 : enter the script <script >alert(“hacked”)</script>
2 . stored xss
Stored cross-site scripting (XSS) In this case the hacker malicious code is
stored target website and the web server. when an attacker can send malicious
JavaScript into the website and that script is executed other users’ computers
that is stored (XSS) cross-site scripting.
Step 1 :enter the name as admin
Step 2 : again enter the name admin and the script In text box
Script :<script>alert(document.cookie)</script>
This will pop up the following window :