import paramiko
import sys
import time

HOST = "135.125.102.180"
USER = "ubuntu"
PASS = "BotPascal2026!"

def main():
    try:
        ssh = paramiko.SSHClient()
        ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
        print("Connecting...")
        ssh.connect(HOST, username=USER, password=PASS, timeout=10)
        
        print("Killing PHP...")
        stdin, stdout, stderr = ssh.exec_command("sudo killall php")
        print("Output:", stdout.read().decode())
        print("Error:", stderr.read().decode())
        
        ssh.close()
    except Exception as e:
        print("Error:", e)

if __name__ == "__main__":
    main()
