Tricking Chat GPT into Outputting a Python Program to Eradicate Humanity Submitted by zac-denham t3_zdixel on December 5, 2022 at 8:40 PM in singularity 22 comments 28
ykssapsspassky t1_j1hjdg7 wrote on December 24, 2022 at 11:51 AM From chat gpt: import socket def port_scan(host, port): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(0.5) result = sock.connect_ex((host, port)) if result == 0: print(f"Port {port} is open") sock.close() for port in range(1, 1024): port_scan("localhost", port) Permalink 1
Viewing a single comment thread. View all comments