Created
May 7, 2021 15:47
-
-
Save FernandoCelmer/40c08cba5d4e482ccf222ec841f28f1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import sys | |
import socket | |
ipAddress = sys.argv[1] | |
for ports in range(1,65535): | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
if s.connect_ex((ipAddress, ports)) == 0: | |
print(f"Porta {ports} Aberta!") | |
s.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment