// Welcome to Hugo's Cloud import socket import subprocess import platform from concurrent.futures import ThreadPoolExecutor def scan_port(ip, port): with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock: sock.settimeout(1) # Set timeout to 1 second result = sock.connect_ex((ip, port)) return port, result == 0 def scan_ports(ip, start_port, end_port): print(f"Scanning {ip} from port {start_port} to {end_port}...") open_ports = [] with ThreadPoolExecutor(max_workers=100) as executor: futures = {executor.submit(scan_port, ip, port): port for port in range(start_port, end_port + 1)} for future in futures: port, is_open = future.result() if is_open: print(f"Port {port} is OPEN") open_ports.append(port) else: print(f"Port {port} is CLOSED") return open_ports def get_service_info(ip, port): # Using nmap for more details (you need to have nmap installed) try: print(f"Retrieving service information for {ip}:{port}...") output = subprocess.check_output(["nmap", "-sV", "-p", str(port), ip]).decode() print(output) except subprocess.CalledProcessError as e: print(f"Error retrieving service info: {e}") target_ip = input("Enter the target IP address: ") start_port = int(input("Enter the starting port number: ")) end_port = int(input("Enter the ending port number: ")) open_ports = scan_ports(target_ip, start_port, end_port) for port in open_ports: get_service_info(target_ip, port) "You got Hacked!! (Jk)"

Welcome to Hugo's Cloud