Another Hack Test8
Another Hack Test8
subprocess.call('cls', shell=True)
print(
"""
You are using the DOOM Port scanner.
# Print a nice banner with information on which host we are about to scan
print("-" * 60)
print("Please wait, scanning remote host", remoteServerIP)
print("-" * 60)
try:
asyncio.run(main())
except KeyboardInterrupt:
print("You pressed Ctrl+C")
sys.exit()
except socket.gaierror:
print('Hostname could not be resolved. Exiting')
sys.exit()
def multi_targets(ip):
converted_ip = check_ip(ip)
# using loop to scan the port
print(f"scaning port for {ip}")
for port in range(min_port, max_port + 1):
scan_port(converted_ip, port)
def get_data_from_port(soc):
return soc.recv(1024)
except:
print("scaning ports...")
except socket.error:
print("Couldn't connect to server")
sys.exit()
# Calculates the difference of time, to see how long it took to run the script
total = t2 - t1