Skip to content

Instantly share code, notes, and snippets.

import os
import subprocess
def run(cmd):
"""Runs a PowerShell command with output and error handling."""
print(f"\n[+] Running: {cmd}")
subprocess.run(["powershell", "-Command", cmd], shell=True)
def main():
print("=== MWCCDC Windows Server 2022 FTP Hardening Script ===")