Finding ports opened in the website domain


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

3 comments:

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
welookups