Finding ports opened in the website domain

import socket;
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
result = sock.connect_ex(('', port number))
if result == 0:
   print ("Port is open")
   print ("Port is not open")


Anonymous said...

Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed to be highly readable. It uses English keywords frequently where as other languages use punctuation, and it h
as fewer syntactical constructions than other languages.
python interview questions and answers

Anonymous said...

thanks for posting this blog
machine learning training in bangalore
hadoop training in bangalore

sumant kumar said...

thank you for sharing post.
web programming tutorial