freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

計(jì)算機(jī)畢業(yè)論文-網(wǎng)絡(luò)嗅探器的設(shè)計(jì)與實(shí)現(xiàn)(參考版)

2025-06-08 15:04本頁面
  

【正文】 s largest breeding and research center. Three days are long enough for foreign visitors to visit those iconic tourist spots, he noted. The city is home to the remains of the Jin sha civilization that dates back more than 3,000 years as well a s the Qing cheng Mountains and the Du jiang yan irrigation system. Qing cheng has long been recognized as the birthplace of Taoism, China39。s 72hour visafree policy has attracted wide attention from both Chinese and foreign experts and businessmen since it took effect on Sept 1 last year. The program permits citizens from 51 countries and regions including the United States, Australia, Canada and Japan who have valid visas and flight tickets to a third country to spend three days in the city. The capital of Sichuan province is the first city in the western region of China to offer foreign tourists a threeday visa and the fourth nationwide to adopt the policy following Shanghai, Beijing and Guangzhou. Li Zhiyong, deputy dean of the tourism institute at Sichuan University, said the move contributes to a large increase in the number of overseas tourists and raises the city39。 除非另有科研合同和其他法律文書的制約,本論文的科研成果屬于成都信息工程學(xué)院。 ( 4)學(xué)??稍试S學(xué)位論文被查閱或借閱。 ( 2)學(xué)??梢圆捎糜坝 ⒖s印或其他復(fù)制方式保存學(xué)位論文。除非另有說明,本文的工作是原始性工作。在此向他表示我最衷心 的感謝! 在論文完成過程中,本人還得到了張仕斌老師和陳偉同學(xué)的熱心幫助,本人向他們表示深深的謝意! 最后向在百忙之中評(píng)審本文的各位專家、老師表示衷心的感謝! 作者簡(jiǎn)介: 姓 名:鄭 莉 性別:女 出生年月: 1985 年 1 月 民族:漢 Email: 聲 明 本論文的工作是 2021 年 2 月至 2021 年 6 月在成都信息工程學(xué)院 系完成的。 [8] 孫晶艷 .面向校園網(wǎng)的網(wǎng)絡(luò)監(jiān)聽技術(shù)研究 [D].黑龍江:哈爾濱工業(yè)大學(xué) [碩士論文 ],2021。 [6] 劉勝斐 .多 Agent 分布式入侵檢測(cè)系統(tǒng)中通信機(jī)制和數(shù)據(jù)分析方法研究 [D].江蘇:南開大學(xué) [碩士論文 ], 2021。 [4] 劉志祥 . Linux系統(tǒng)安全性研究及其新型 Sniffer設(shè)計(jì)與實(shí)現(xiàn) [D]. 南昌:南昌大學(xué) [碩士論文 ], 2021。 [2] 鄭莉,董淵 .C++語言程序設(shè)計(jì)(第二版) [M].北京:清華大學(xué)出版社, 2021。 通過對(duì)該課題的研究,讓我對(duì)嗅探技術(shù)有了進(jìn)一步的了解,對(duì)其兩面性在網(wǎng)絡(luò)中產(chǎn)生的影響有了更深的認(rèn)識(shí),為了打破以上局限性,還需要結(jié)合已學(xué)知識(shí)對(duì)網(wǎng)絡(luò)嗅探技術(shù)方面的知識(shí)作進(jìn)一 步的學(xué)習(xí)。設(shè)計(jì)完成后經(jīng)測(cè)試能實(shí)現(xiàn)預(yù)期要求的功能。由圖 47 可以觀察到捕獲模塊能夠?qū)崿F(xiàn)將網(wǎng)絡(luò)接口設(shè)置為混雜模式,同時(shí)捕獲局域網(wǎng)內(nèi)的數(shù)據(jù)包,在這里還可以觀察到網(wǎng)絡(luò)狀態(tài)及網(wǎng)絡(luò)數(shù)據(jù)的流動(dòng)情況,供網(wǎng)絡(luò)分析之用。 } m_ctrList 是與列表控件關(guān)聯(lián)的一個(gè)變量,列表控件用于顯示對(duì)數(shù)據(jù)包的分析結(jié)果。 (index,5,LVIF_TEXT,s5, 0, 0, 0,0)。 (index,3,LVIF_TEXT,s3, 0, 0, 0,0)。 (index,1,LVIF_TEXT,s1, 0, 0, 0,0)。 ... 數(shù)據(jù)的顯示 在完成了數(shù)據(jù)包的捕獲、分析后,我們使用 AddData 函數(shù),調(diào)用列表控件變量使分析結(jié)果顯示在界面的列表中,結(jié)果輸出代碼如下: void CIpmonDlg::AddData(CString s0,CString s1, CString s2, CString s3, CString s4, CString s5, CString s6) { int index。 (%d,totallen)。 } } if(pIpHeaderproto == IPPROTO_ICMP) (type:%d code:%d data:%s,pICMPHeadType,pICMPHeadCode,pdata)。 totallen = UDP_HEAD_LEN。 (%d,destport)。 destport = ntohs(pUDPHeadDestPort)。 } case IPPROTO_UDP: { pUDPHead=(struct UDPPacketHead *)(buf+HdrLen)。 totallen = HdrLen。 HdrLen *= 4。 (%d,destport)。 destport = ntohs(pTCPHeadDestPort)。 } case IPPROTO_TCP: { pTCPHead=(struct TCPPacketHead *)(buf+HdrLen)。 totallen = ICMP_HEAD_LEN。 strDestPort = 。 switch(pIpHeaderproto)//分析包的類型 { case IPPROTO_ICMP: { pICMPHead=(structICMPPacketHead*)(buf+HdrLen)。 totallen = ntohs(pIpHeadertotal_len)。0xf。 strProto = get_proto_name( pIpHeaderproto )。 strcpy( szDest , pDest ) 。//得到源 IP地址 = pIpHeaderdestIP 。 pSource = i_ntoa( ina ) 。 WORD iLen = ntohs(pIpHeadertotal_len) 。 } else if( *buf ) { bufwork = buf 。 sprintf( szErr , Error recv() = %ld , dwErr ) 。 如圖46 所示: 圖 46 數(shù)據(jù)包解析的簡(jiǎn)單流程 圖 46所示為 數(shù)據(jù)包的解析模塊 ,該模塊對(duì)捕獲的數(shù) 據(jù)包進(jìn)行拆包分析, 根據(jù)不同的協(xié)議類型 分析其 IP地址,數(shù)據(jù)包大小,端口號(hào)等,具體代碼實(shí)現(xiàn)如下: UINT threadFunc ( LPVOID p ) { ... iRet = recv( pDlgm_s , buf , sizeof( buf ) , 0 ) 。//接收數(shù)據(jù) ...... 數(shù)據(jù)包 的解析 數(shù)據(jù)包被捕獲后 然后就可以根據(jù)前面對(duì) IP 數(shù)據(jù)段頭、 TCP 數(shù)據(jù)段頭的結(jié)構(gòu)描述而對(duì)捕獲的數(shù)據(jù)包進(jìn)行分析 。 } memset( buf , 0 , sizeof(buf) ) 。 pDlg(TRUE) 。msg , 0 , WM_CLOSE,WM_CLOSE,PM_NOREMOVE ) ) { closesocket( pDlgm_s ) 。 pDlgm_threadID = GetCurrentThreadId() 。 PeekMessage(amp。 struct UDPPacketHead *pUDPHead。 struct TCPPacketHead *pTCPHead。 int HdrLen, totallen。 char szSource [16] , szDest[16] , szErr [ 50 ]。 IPHEADER *pIpHeader 。 DWORD dwErr 。 MSG msg 。 前面的工作基本上都是對(duì)原始套接字進(jìn)行設(shè)置,在將原始套接字設(shè)置完畢,使其能按預(yù)期目的工作時(shí),就可以通過 recv()函數(shù)從網(wǎng)卡接收數(shù)據(jù)了,接收到的原始數(shù)據(jù)包存放在緩存 區(qū) 中 ,具體的實(shí)現(xiàn)代碼 如下: UINT threadFunc ( LPVOID p ) { CIpmonDlg *pDlg = static_castCIpmonDlg *(p) 。dwBufferLen, sizeof(dwBufferLen), amp。 設(shè)置 SOCK_RAW為 SIO_RCVALL,以便接收所有的 IP 包: WSAIoctl( m_s, SIO_RCVALL , amp。 使用 pHost = gethostbyname(szHostName)獲取本地 IP 地址 把原始套接字 m_s 綁定到本地網(wǎng)卡地址上,具體格式如下: bind(m_s,(PSOCKADDR)amp。 return 。 AfxMessageBox( szErr ) 。 else { dwErr = WSAGetLastError() 。dwBufferLen, sizeof(dwBufferLen), amp。 } if(SOCKET_ERROR!=WSAIoctl(m_s,SIO_RCVALL , amp。 closesocket( m_s ) 。 sprintf( szErr , Error bind() = %ld , dwErr ) 。 //socket(本機(jī) )地址 if (bind(m_s,(PSOCKADDR)amp。 //inter 協(xié)議簇 = htons(7000)。 return 。 AfxMessageBox( szErr ) 。rcvtimeo , sizeof(rcvtimeo) ) == SOCKET_ERROR)//設(shè)置工作模式 { dwErr = WSAGetLastError() 。 } int rcvtimeo = 5000 。 closesocket( m_s ) 。 sprintf( szErr , Error socket() = %ld , dwErr ) 。 m_s = socket( AF_INET , SOCK_RAW , IPPROTO_IP ) 。 DWORD dwBufferInLen= 1 。 } return 。 SetDlgItemText(IDC_LOOKUP,開始捕獲 !)。 if( 0 == m_threadID ) { SetDlgItemText(IDC_LOOKUP,停止捕獲 ! )。//獲取主機(jī) 名 m_iphostsource = m_ipsource 。 SOCKADDR_IN sa。 在捕獲數(shù)據(jù)包前,首先對(duì)原始套接字進(jìn)行設(shè)置,代碼如下: void CIpmonDlg::OnLookUp() { char szErr [ 50 ] , szHostName[MAX_PATH]。 //32 位目的 IP 地址 }IPHEADER; 數(shù)據(jù)包捕獲 程序設(shè)計(jì) 根據(jù)前面的設(shè)計(jì)思路, 本文在 windows 平臺(tái)下實(shí)現(xiàn)了一個(gè)嗅探器程序,開發(fā)工具使用 visual C++。 //16 位 IP 首部校驗(yàn)和 unsigned int sourceIP。 //8 位生存時(shí)間 unsigned char p
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1