How to Make a Port Scanner in Python using Socket Library || #Learn_python

preview_player
Показать описание
Learn how you can write your own fast and simple port scanner script in Python using sockets.
In this tutorial, you will be able to make your own port scanner in Python using socket library.
The basic idea behind this simple port scanner is to try to connect to a specific host (website, server or any device connected to Internet/network) through a list of ports, if a successful connection has been established, that means the port is open.
.....................
......................
Learn python:
More:
...........................
channel members:suprav kandel & gone lastvirus
video creator: Gone lastvirus
.........................
Note that this script is intended for individuals to test their own devices and I will take no reponsibility if it is misused.

tags:#port_scanner ,#port_scanner_socket ,#fast_port_scanner
Рекомендации по теме
Комментарии
Автор

Sorry guys i had forgot to zoom editor. if you are using mobile than please watch the video on landscape mode plus 1080p quality, it might help to see code clearly.😅😅

Gonelastvirus
Автор

Rafy-Ivan Morales
0 seconds ago
I'm a new student trying to learn, so I can become a programmer with python and I have a project on how to make a port scan.

So far I already make a port scan with Python3, and it scans fine, give a date and everything working good so far.

I see on your video tutorial you give example on how to send and receiving data.

I would like to ask for your advice if you can and guide me on how I will add this 3
in a Python script, I have:

2. System should look for all the ports between the range of 1 to 1025
3. If the Ports is open, it should create a file and add an entry for port number
4. In case of any exception for instance “host is not available”, “host name could not be resolved” or
due to any other error, you need to write that exception into the same file.


Thank you and Merry Christmas.

rafy-ivanmorales
Автор

when i try open it on cmd it doesnt work it opens in python why ?

the main.py

βασιληςουρδουδης
Автор

I want to ask for help....I need to make a program with Python program that should test the given host and it should generate a list of

all the TCP Open ports within the range of 1 to 1025. You are required to accomplish this task by using

standard Python’s “socket” library. Following are the functional requirements:

1. On execution of program system should prompt “Enter a host to scan”. User will provide a host

name

2. System should look for all the ports between the range of 1 to 1025

3. If the Ports is open it should create a file and add an entry for port number

4. In case of any exception for instance “host is not available”, “host name could not be resolved” or

due to any other error you need to write that exception into same file

5. You also need to record starting and ending date and time at the beginning and ending of file

accordingly. It should also show the total time it took in port scanning process

rafy-ivanmorales
welcome to shbcf.ru