SoFunction
Updated on 2024-12-10

Python implementation of scanning ports

Scanning ports opened by an IP on a LAN via python code

在这里插入图片描述

在这里插入图片描述

**

At this point found that the thread is less than or equal to 800, the code can run normally, greater than the error will occur, found that the number of thread concurrency is too much, the system does not support so many threads concurrently.

**

在这里插入图片描述

**

So here's a limit on the number of threads that can concur at once, solving the problem of not being able to start a news thread

**

在这里插入图片描述

在这里插入图片描述

**

After limiting the maximum number of concurrent scans, it took less than a minute to scan all ports from 1 to 10000.

**

在这里插入图片描述

This article on the implementation of Python scanning port is introduced to this article, more related Python scanning port content, please search my previous posts or continue to browse the following related articles I hope you will support me more in the future!