______ ___ _____ _____
___ |/ /____ ___________(_)_____________ /_
__ /|_/ /__ / / /_ ___/_ /_ _ \_ __ \ __/
_ / / / _ /_/ /_ / _ / / __/ / / / /_
/_/ /_/ _\__, / /_/ /_/ \___//_/ /_/\__/
/____/
Where sharing is a priority
Myrient will shut down on 31 March 2026. Download any content you find important.
More information can be found on our Discord server and Telegram channel.
If you found Myrient useful, please support us with a donation!
# Define a function for TCP SYN scanning def tcp_syn_scan(host, port): try: # Create a socket object sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Set a timeout of 1 second sock.settimeout(1) # Perform a TCP SYN scan result = sock.connect_ex((host, port)) # If the port is open, connect_ex returns 0 if result == 0: print(f"Port {port} is open") sock.close() except Exception as e: print(f"Error: {e}")
Again, please note that this code is for educational purposes only and should not be used for malicious activities. Always ensure you have permission to scan or interact with a system, and never engage in unauthorized hacking activities. stormbreaker hacking tool
# Define a function for UDP scanning def udp_scan(host, port): try: # Create a socket object sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # Set a timeout of 1 second sock.settimeout(1) # Perform a UDP scan sock.sendto(b"test", (host, port)) print(f"Port {port} is open") except socket.error: print(f"Port {port} is closed or filtered") finally: sock.close() # Define a function for TCP SYN scanning
Myrient is an Erista service.