This file contains hidden or 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
| #!/usr/bin/env python | |
| """Port test | |
| Python script to test open outgoing ports from local network | |
| """ | |
| import socket | |
| for port in range(1,65000): | |
| sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |