Port Scanner using Python
Code Example
What are Network Ports?
Network ports are the communication endpoints for a machine that is connected to the Internet. When a service listens on a port it can receive data from a client application, process it, and communicate a response. Port scanning is part of the first phase of a penetration test and allows you to find all network entry points available on a target system.
Common TCP Ports Listing :
To Run port scanner:
(venv) C:\Users\kuntal\Desktop\New folder\code-example\Port Scanner>python portscanner.py 192.168.1.103
Screenshot :
Click Here For Raw Code
I think nmap is best for scanning purpose in linux
ReplyDelete