C 編寫的多執行緒埠掃瞄程式

2021-05-10 20:49:56 字數 444 閱讀 6132

using system;

using system.drawing;

using system.collections;

using system.componentmodel;

using system.windows.forms;

//增加的如下..

using system.data;

using system.net.sockets;

using system.net;

using system.io;

using system.text;

using system.threading;

namespace iportscan

{ ///

/// summary description for form1.

///

多執行緒埠掃瞄程式

實現乙個多執行緒埠掃瞄程式 要求 1 能至少掃瞄5個ip位址 2 針對每個ip位址,開設100個執行緒同時對其進行掃瞄 3 如果埠開啟,使用函式getservbyport獲取其服務名,在螢幕上列印 ip port servername,如果是未知服務,則螢幕顯示 ip port unkonown 注...

實現多執行緒埠掃瞄

實驗要求 能至少掃瞄5個ip位址 針對每個ip位址,開設100個執行緒同時對其進行掃瞄 如果埠開啟,使用函式getservbyport獲取其服務名,在螢幕上列印 ip port servername,如果是未知服務,則螢幕顯示 ip port unkonown 實驗環境 red hat 9 thre...

C 埠掃瞄程式

工具 vs2017 新建c windows窗體應用,開啟介面設計,布局如下 其餘函式及控制項功能實現在form1.cs檔案中,源 如下 using system using system.collections.generic using system.componentmodel using sy...