Python programt for 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

suman said...

thank you for sharing post.
web programming tutorial

Unknown said...

Thanks for the good words! Really appreciated. Great post. I’ve been commenting a lot on a few blogs recently, but I hadn’t thought about my approach until you brought it up. 
python interview questions and answers | python tutorialspython training institute in electronic city