[Day 5] 2. HTTP Redirection and Server Configuration
HTTP Redirect
Steps to Perform an HTTP Redirect in DVWA
-
Set Security Level to Low
- In DVWA (Damn Vulnerable Web Application), set the security level to low.
-
Navigate to HTTP Redirect Section
- In DVWA, go to the HTTP Redirect feature.
-
Manipulate the URL for Redirection
-
Edit the URL and append a query string to redirect to another location.
-
Example:
html?redirect=https://www.google.com -
Replace
with any target URL to test the redirection behavior.https://www.google.com
-
Managing nginx.conf File
Locate the php.ini file
Use the
locatephp.ini- In every file you find using the locate command, change the to
allow_url_includeOn - This will allow you to perform the .
http redirection
Locate the nginx.conf File
Use the
locatenginx.confbashlocate nginx.conf
Modify the Configuration
-
Add Lines for Directory Listing
Inside theblock in thelocation /{}file, add the following lines:nginx.confnginxautoindex on; allow all; -
Update Access Permissions
- Change all instances of to
deny allwithin theallow allfiles.nginx.conf
- Change all instances of
Restart Necessary Services
After making the changes, restart the following services to apply the configuration:
bashsudo service apache2 restart
sudo service php7.x restart # Replace '7.x' with your PHP version
sudo service nginx restart
sudo service mysql restart # Or your database service
WebGoat
WebGoat is an intentionally insecure web application designed for learning and practicing web application security. It provides a hands-on environment to test vulnerabilities like SQL Injection, XSS, and more.
Backdoor
A backdoor is a hidden method or vulnerability used by attackers to gain unauthorized access to a system or application. It bypasses normal authentication processes, allowing persistent control over the compromised system.
Read Next
[Day 6] 1. Phishing and Information Gathering
### **Information Gathering** When purchasing a domain name, registrars or authorities like **ICANN** require details such as the domain owner’s na...
[Day 6] 2. Android Hacking with Kali Linux (.apk Payload)
#### **Attacker System**: Kali Linux #### **Victim Device**: Android Phone --- ### **Steps to Create and Deliver the Payload** 1. **Genera...