Write a port scanner in Python in 5 minutes | Free Cyber Work Applied series

preview_player
Показать описание
Port scanners are an essential network security tool. In this episode of Cyber Work Applied, you'll open up your Linux terminal with Infosec Skills author Keatron Evans and learn how to write one using basic Python. New episodes of Cyber Work Applied are published every other week.

0:00 - Creating a port scanner with Python
0:56 - Using import in Python
1:56 - Using datetime in Python
2:16 - How to clear your screen in Python
2:27 - Asking for input in Python
2:52 - Printing information in Python
3:07 - Checking the date and time in Python
3:35 - Using a function to specify ports and errors in Python
5:07 - Calculating time for the script to run in Python
5:38 - Using your new Python port scanner

About Infosec
Рекомендации по теме
Комментарии
Автор

This code applies to Python 2.x (prior to 2.7)
For Python 2.7 and later, print command needs '( )'.
For Python 3.x and later, change "raw_input" to "input"

jaimerosariojusticia
Автор

I'm glad I found your channel. I like how you present the information and walk us through it. I just made a github account so I can start doing projects and add it to my resume. I'm thinking this will be my first project :)

Chris-bweb
Автор

Sorry, I am so bad in some basics; why exactly the script was run as python portscanner.py <IP/Target> if the the real host that was to be scanned is not the same ?

dewy
Автор

how did the output came so fast... mine is taking forever. Please reply

udaysrivastava_
Автор

I don't know how you want to write that code if even with glasses I can't even distinguish some word they are too small. (remoteServer = ???? )

rafy-ivanmorales
Автор

this script is slow i applied multithreading in this and it works fast but for massive port scanning it crashes, anyone having solution to this with source code??

himanshu
Автор

This is python on linux. Is there different socket referencing on windows?

nobby
Автор

hey how to write the output of this program to a text file?

udaysrivastava_
Автор

Nice video. Can you please copy and paste the code in the description of the video. Thanks.

silas