C 很久以前寫的埠掃瞄工具

2021-04-12 23:13:06 字數 1778 閱讀 7282

using system;

using system.collections.generic;

using system.componentmodel;

using system.data;

using system.drawing;

using system.text;

using system.windows.forms;

using system.threading;

using system.net;

using system.net.sockets;

using system.io;

public form1()

void am_elapsed(object sender, system.timers.elapsedeventargs e)

thread.currentthread.abort();

}private static int i1, i2, i3, i4, d1,p1;

private void button1_click(object sender, eventargs e)

else

else

this.progressbar1.maximum = int.parse(this.textbox9.text);

this.progressbar1.value = 1;

strat();}}

catch (exception ex)

else if (i3 == 254)

else if (i2 == 254)

return i1.tostring() + "." + i2.tostring() + "." + i3.tostring() + "." + i4.tostring();}}

private int d = 0;

private int s = 1;

private string ds = "";

public autoresetevent asyncopsaredone = new autoresetevent(false);

tcpclient tcp;

private void dowhlies()

else

sr.close();

**.close();

tcp.close();

d = d + 1;

label4.text = "有" + d.tostring() + "主機獲取埠成功..";

}catch (ioexception ed)

catch (nullreferenceexception ee)

catch (exception ex)

listviewitem l1 = new listviewitem();

l1.subitems[0].text = dis;

l1.subitems.add(de);

l1.subitems.add(ds);

this.listview1.items.add(l1);

this.listview1.update();

this.progressbar1.value++;

asyncopsaredone.close();

}private void button2_click(object sender, eventargs e)

private void button3_click(object sender, eventargs e)

thread[i].abort();}}

}

Lion寫的埠掃瞄工具

編譯時需使用的庫 pragma comment lib,wsock32.lib select 成員定義 define zero fd set 0 變數定義 int maxth,scanok,scannum,i int portip,hoststart,hoststop,startport,endpo...

c 課設(很久以前做的了)

高校人員資訊管理系統設計 1 問題描述 某高校有四類員工 教師 實驗員 行政人員,教師兼行政人員 共有的資訊包括 編號 姓名 性別 年齡等。其中,教師還包含的資訊有 所在系部 專業 職稱 實驗員還包含的資訊有 所在實驗室 職務 行政人員還包含的資訊有 政治面貌 職務等。2 功能要求 1 新增功能 程...

安全工具 Nmap 強悍的埠掃瞄工具

0x 01 nmap介紹 nmap是一款用於網路發現和安全審計的安全工具,常用於埠掃瞄。用法 nmap 掃瞄型別 引數 目標ip 1.掃瞄型別 sttcp 連線掃瞄,會在目標主機中記錄大量的鏈結請求和錯誤資訊 sssyn掃瞄,只完成三次握手前兩次,很少有系統記入日誌,預設使用,需要root admi...