Generation

generate functionThu, 06 Apr 2023

Bloquear a hackers

import socket def Block_Hacker(): print("Checking for hacker") ip = socket.gethostbyname(socket.gethostname()) print("Local IP :" + ip) if ip == "10.0.0.1": print("Hacker detected") return True else: print("No hacker detected") return False Block_Hacker()

Questions about programming?Chat with your personal AI assistant