亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tcpip.cc

?? Ubuntu packages of security software。 相當不錯的源碼
?? CC
?? 第 1 頁 / 共 5 頁
字號:
/*************************************************************************** * tcpip.cc -- Various functions relating to low level TCP/IP handling,    * * including sending raw packets, routing, printing packets, reading from  * * libpcap, etc.                                                           * *                                                                         * ***********************IMPORTANT NMAP LICENSE TERMS************************ *                                                                         * * The Nmap Security Scanner is (C) 1996-2006 Insecure.Com LLC. Nmap is    * * also a registered trademark of Insecure.Com LLC.  This program is free  * * software; you may redistribute and/or modify it under the terms of the  * * GNU General Public License as published by the Free Software            * * Foundation; Version 2 with the clarifications and exceptions described  * * below.  This guarantees your right to use, modify, and redistribute     * * this software under certain conditions.  If you wish to embed Nmap      * * technology into proprietary software, we sell alternative licenses      * * (contact sales@insecure.com).  Dozens of software vendors already       * * license Nmap technology such as host discovery, port scanning, OS       * * detection, and version detection.                                       * *                                                                         * * Note that the GPL places important restrictions on "derived works", yet * * it does not provide a detailed definition of that term.  To avoid       * * misunderstandings, we consider an application to constitute a           * * "derivative work" for the purpose of this license if it does any of the * * following:                                                              * * o Integrates source code from Nmap                                      * * o Reads or includes Nmap copyrighted data files, such as                * *   nmap-os-fingerprints or nmap-service-probes.                          * * o Executes Nmap and parses the results (as opposed to typical shell or  * *   execution-menu apps, which simply display raw Nmap output and so are  * *   not derivative works.)                                                *  * o Integrates/includes/aggregates Nmap into a proprietary executable     * *   installer, such as those produced by InstallShield.                   * * o Links to a library or executes a program that does any of the above   * *                                                                         * * The term "Nmap" should be taken to also include any portions or derived * * works of Nmap.  This list is not exclusive, but is just meant to        * * clarify our interpretation of derived works with some common examples.  * * These restrictions only apply when you actually redistribute Nmap.  For * * example, nothing stops you from writing and selling a proprietary       * * front-end to Nmap.  Just distribute it by itself, and point people to   * * http://insecure.org/nmap/ to download Nmap.                             * *                                                                         * * We don't consider these to be added restrictions on top of the GPL, but * * just a clarification of how we interpret "derived works" as it applies  * * to our GPL-licensed Nmap product.  This is similar to the way Linus     * * Torvalds has announced his interpretation of how "derived works"        * * applies to Linux kernel modules.  Our interpretation refers only to     * * Nmap - we don't speak for any other GPL products.                       * *                                                                         * * If you have any questions about the GPL licensing restrictions on using * * Nmap in non-GPL works, we would be happy to help.  As mentioned above,  * * we also offer alternative license to integrate Nmap into proprietary    * * applications and appliances.  These contracts have been sold to dozens  * * of software vendors, and generally include a perpetual license as well  * * as providing for priority support and updates as well as helping to     * * fund the continued development of Nmap technology.  Please email        * * sales@insecure.com for further information.                             * *                                                                         * * As a special exception to the GPL terms, Insecure.Com LLC grants        * * permission to link the code of this program with any version of the     * * OpenSSL library which is distributed under a license identical to that  * * listed in the included Copying.OpenSSL file, and distribute linked      * * combinations including the two. You must obey the GNU GPL in all        * * respects for all of the code used other than OpenSSL.  If you modify    * * this file, you may extend this exception to your version of the file,   * * but you are not obligated to do so.                                     * *                                                                         * * If you received these files with a written license agreement or         * * contract stating terms other than the terms above, then that            * * alternative license agreement takes precedence over these comments.     * *                                                                         * * Source is provided to this software because we believe users have a     * * right to know exactly what a program is going to do before they run it. * * This also allows you to audit the software for security holes (none     * * have been found so far).                                                * *                                                                         * * Source code also allows you to port Nmap to new platforms, fix bugs,    * * and add new features.  You are highly encouraged to send your changes   * * to fyodor@insecure.org for possible incorporation into the main         * * distribution.  By sending these changes to Fyodor or one the            * * Insecure.Org development mailing lists, it is assumed that you are      * * offering Fyodor and Insecure.Com LLC the unlimited, non-exclusive right * * to reuse, modify, and relicense the code.  Nmap will always be          * * available Open Source, but this is important because the inability to   * * relicense code has caused devastating problems for other Free Software  * * projects (such as KDE and NASM).  We also occasionally relicense the    * * code to third parties as discussed above.  If you wish to specify       * * special license conditions of your contributions, just say so when you  * * send them.                                                              * *                                                                         * * This program is distributed in the hope that it will be useful, but     * * WITHOUT ANY WARRANTY; without even the implied warranty of              * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU       * * General Public License for more details at                              * * http://www.gnu.org/copyleft/gpl.html , or in the COPYING file included  * * with Nmap.                                                              * *                                                                         * ***************************************************************************//* $Id: tcpip.cc 4228 2006-12-08 03:01:08Z fyodor $ */#ifdef WIN32#include "nmap_winconfig.h"#endif#include <dnet.h>#include "tcpip.h"#include "NmapOps.h"#if HAVE_SYS_TIME_H#include <sys/time.h>#endif#if HAVE_SYS_RESOURCE_H#include <sys/resource.h>#endif#if HAVE_UNISTD_H/* #include <sys/unistd.h> */#include <unistd.h>#endif#if HAVE_NET_IF_H#ifndef NET_IF_H  /* why doesn't OpenBSD do this? */#include <net/if.h>#define NET_IF_H#endif#endif#if HAVE_NETINET_IF_ETHER_H#ifndef NETINET_IF_ETHER_H#include <netinet/if_ether.h>#define NETINET_IF_ETHER_H#endif /* NETINET_IF_ETHER_H */#endif /* HAVE_NETINET_IF_ETHER_H */extern NmapOps o;#ifdef WIN32#include "pcap-int.h"void nmapwin_init();void nmapwin_cleanup();void nmapwin_list_interfaces();int if2nameindex(int ifi);#endifstatic PacketCounter PktCt;/* These two are for eth_open_cached() and eth_close_cached() */static char etht_cache_device_name[64];static eth_t *etht_cache_device = NULL;void sethdrinclude(int sd) {#ifdef IP_HDRINCLint one = 1;setsockopt(sd, IPPROTO_IP, IP_HDRINCL, (const char *) &one, sizeof(one));#endif}// Takes a protocol number like IPPROTO_TCP, IPPROTO_UDP, or// IPPROTO_TCP and returns a ascii representation (or "unknown" if it// doesn't recognize the number).  If uppercase is true, the returned// value will be in all uppercase letters.  You can skip this// parameter to use lowercase.const char *proto2ascii(u8 proto, bool uppercase) {  switch(proto) {  case IPPROTO_TCP:    return uppercase? "TCP" : "tcp"; break;  case IPPROTO_UDP:    return uppercase? "UDP" : "udp"; break;  case IPPROTO_IP:    return uppercase? "IP" : "ip"; break;  default:    return uppercase? "UNKNOWN" : "unknown";  }  return NULL; // Unreached}static char *ll2shortascii(unsigned long long bytes, char *buf, int buflen) {  if (buflen < 2 || !buf) fatal("Bogus parameter passed to ll2shortascii");  if (bytes > 1000000) {    snprintf(buf, buflen, "%.3fMB", bytes / 1000000.0);  } else if (bytes > 10000) {    snprintf(buf, buflen, "%.3fKB", bytes / 1000.0);  } else snprintf(buf, buflen, "%uB", (unsigned int) bytes);      return buf;}/* Fill buf (up to buflen -- truncate if necessary but always   terminate) with a short representation of the packet stats.   Returns buf.  Aborts if there is a problem. */char *getFinalPacketStats(char *buf, int buflen) {  char sendbytesasc[16], recvbytesasc[16];  if (buflen <= 10 || !buf)    fatal("getFinalPacketStats called with woefully inadequate parameters");  snprintf(buf, buflen, #if WIN32	  "Raw packets sent: %I64u (%s) | Rcvd: %I64u (%s)",#else	  "Raw packets sent: %llu (%s) | Rcvd: %llu (%s)",#endif	   PktCt.sendPackets,	   ll2shortascii(PktCt.sendBytes, sendbytesasc, sizeof(sendbytesasc)),	   PktCt.recvPackets,	   ll2shortascii(PktCt.recvBytes, recvbytesasc, sizeof(recvbytesasc)));  return buf;}  /* Takes an ARP PACKET (including ethernet header) and prints it if     packet tracing is enabled.  'frame' must point to the 14-byte     ethernet header (e.g. starting with destination addr). The     direction must be PacketTrace::SENT or PacketTrace::RCVD .     Optional 'now' argument makes this function slightly more     efficient by avoiding a gettimeofday() call. */void PacketTrace::traceArp(pdirection pdir, const u8 *frame, u32 len,			struct timeval *now) {  struct timeval tv;  char arpdesc[128];  char who_has[INET_ADDRSTRLEN], tell[INET_ADDRSTRLEN];      if (pdir == SENT) {    PktCt.sendPackets++;    PktCt.sendBytes += len;  } else {    PktCt.recvPackets++;    PktCt.recvBytes += len;  }  if (!o.packetTrace()) return;  if (now)    tv = *now;  else gettimeofday(&tv, NULL);  if (len < 42) {    error("Packet tracer: Arp packets must be at least 42 bytes long.  Should be exactly that length excl. ethernet padding.");    return;  }  if (frame[21] == 1) /* arp REQUEST */ {    inet_ntop(AF_INET, frame+38, who_has, sizeof(who_has));    inet_ntop(AF_INET, frame+28, tell, sizeof(tell));    snprintf(arpdesc, sizeof(arpdesc), "who-has %s tell %s", who_has, tell);  } else { /* ARP REPLY */    inet_ntop(AF_INET, frame+28, who_has, sizeof(who_has));    snprintf(arpdesc, sizeof(arpdesc), 	     "reply %s is-at %02X:%02X:%02X:%02X:%02X:%02X", who_has, 	     frame[22], frame[23], frame[24], frame[25], frame[26], frame[27]);  }  log_write(LOG_STDOUT|LOG_NORMAL, "%s (%.4fs) ARP %s\n", (pdir == SENT)? "SENT" : "RCVD",  o.TimeSinceStartMS(&tv) / 1000.0, arpdesc);  return;}/* Get an ASCII information about a tcp option which is pointed by   optp, with a length of len. The result is stored in the result   buffer. The result may look like "<mss 1452,sackOK,timestamp   45848914 0,nop,wscale 7>" */static void tcppacketoptinfo(u8 *optp, int len, char *result, int bufsize) {  assert(optp);  assert(result);  char *p, ch;  u8 *q;  int opcode;  u16 tmpshort;  u32 tmpword1, tmpword2;  p = result; *p = '\0';  q = optp;  ch = '<';    while(len > 0 && bufsize > 2) {	snprintf(p, bufsize, "%c", ch);	bufsize--;	p++;    opcode=*q++;	    if (!opcode) { /* End of List */	  	  snprintf(p, bufsize, "eol");	  bufsize -= strlen(p);	  p += strlen(p);	        len--;	      } else if (opcode == 1) { /* No Op */	  	  snprintf(p, bufsize, "nop");	  bufsize -= strlen(p);	  p += strlen(p);	        len--;	      } else if (opcode == 2) { /* MSS */	        if(len<4)        break; /* MSS has 4 bytes */	        q++;      memcpy(&tmpshort, q, 2);	  	  snprintf(p, bufsize, "mss %u", ntohs(tmpshort));	  bufsize -= strlen(p);	  p += strlen(p);      q += 2;      len -= 4;	      } else if (opcode == 3) { /* Window Scale */	        if(len<3)        break; /* Window Scale option has 3 bytes */	        q++;	  snprintf(p, bufsize, "wsacle %u", *q);	  bufsize -= strlen(p);	  p += strlen(p); 	        q++;      len -= 3;	      } else if (opcode == 4) { /* SACK permitted */	        if(len<2)        break; /* SACK permitted option has 2 bytes */	  	  snprintf(p, bufsize, "sackOK");	  bufsize -= strlen(p);	  p += strlen(p); 	        q++;      len -= 2;	      } else if (opcode == 5) { /* SACK */	  	  int sackoptlen = *q;	  if(len < sackoptlen)		break;	  	  q++;	  	  if((sackoptlen-2) % 8 != 0) {		snprintf(p, bufsize, "malformed sack");		bufsize -= strlen(p);		p += strlen(p); 	  } else {		snprintf(p, bufsize, "sack %d ", (sackoptlen-2)/8);		bufsize -= strlen(p);		p += strlen(p);		for(int i = 0; i < sackoptlen - 2; i += 8) {		  memcpy(&tmpword1, q + i, 4);		  memcpy(&tmpword2, q + i + 4, 4);		  snprintf(p, bufsize, "{%u:%u}", tmpword1, tmpword2);		  bufsize -= strlen(p);		  p += strlen(p);		}	  }	  q += sackoptlen-2;	  len -= sackoptlen;	  	} else if (opcode == 8) { /* Timestamp */      if(len<10)        break; /* Timestamp option has 10 bytes */      q++;      memcpy(&tmpword1, q, 4);      memcpy(&tmpword2, q+4, 4);	  snprintf(p, bufsize, "timestamp %u %u", ntohl(tmpword1), ntohl(tmpword2));	  bufsize -= strlen(p);	  p += strlen(p);	  q += 8;	  len -= 10;	      }	ch = ',';  }  if(len > 0) {	*result = '\0';	return;  }  snprintf(p, bufsize, ">");}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线观看日韩毛片| 国产精品久久三区| 亚洲欧美日韩国产中文在线| 日本不卡一区二区三区高清视频| 99久久综合99久久综合网站| 精品国产成人在线影院 | 亚洲欧美在线视频| 国产成人av一区二区三区在线| 欧美人xxxx| 日本最新不卡在线| 精品久久久久久最新网址| 麻豆极品一区二区三区| 日韩欧美视频一区| 国产精品99久久久久久似苏梦涵| 欧美变态口味重另类| 精品亚洲国内自在自线福利| 欧美精品一区视频| 国产盗摄视频一区二区三区| 欧美激情在线看| 91黄色免费网站| 麻豆国产精品视频| 成人免费在线视频观看| 欧美网站大全在线观看| 久久超级碰视频| 国产精品三级电影| 欧美老肥妇做.爰bbww| 久久福利视频一区二区| 国产精品久久久久久久久久免费看| 91在线丨porny丨国产| 亚洲成人动漫av| 国产精品看片你懂得| 8v天堂国产在线一区二区| 国产精品资源站在线| 亚洲一区二区视频| 国产精品乱码一区二区三区软件 | 国产在线精品不卡| 亚洲区小说区图片区qvod| 欧美一二三区在线观看| 色综合网站在线| 国产成人免费视频网站 | 麻豆精品在线观看| 精品不卡在线视频| 欧美色大人视频| www.日韩精品| 国产成人av资源| 精品一区二区国语对白| 水野朝阳av一区二区三区| 亚洲天堂2016| 国产精品成人网| 欧美国产一区二区| 国产日本欧洲亚洲| 久久中文字幕电影| 精品剧情在线观看| 久久久精品欧美丰满| 91精品久久久久久久久99蜜臂| 欧洲人成人精品| 91成人在线精品| 欧美日韩日本视频| 欧美麻豆精品久久久久久| 欧美日韩国产另类一区| 欧美日韩黄色影视| 在线成人av影院| 久久伊99综合婷婷久久伊| 久久久久99精品一区| 欧美国产激情一区二区三区蜜月| 国产精品私房写真福利视频| 国产精品乱子久久久久| 一区二区三区视频在线看| 亚洲大型综合色站| 国产麻豆一精品一av一免费| 成人久久视频在线观看| 欧亚一区二区三区| 精品少妇一区二区三区在线视频| 国产拍揄自揄精品视频麻豆| 一区二区三区精品视频在线| 蜜桃av噜噜一区| 成人av电影免费观看| 欧美久久一区二区| 中国色在线观看另类| 日韩成人dvd| 色婷婷激情久久| 中文字幕精品一区二区精品绿巨人 | 香蕉久久夜色精品国产使用方法| 麻豆精品视频在线观看| 色婷婷国产精品久久包臀| 精品国产凹凸成av人导航| 亚洲一区二区偷拍精品| 国产成人av福利| 日韩视频123| 亚洲尤物在线视频观看| 久久成人18免费观看| 欧美电影影音先锋| 亚洲欧美日韩国产成人精品影院| 国产一区999| 欧美成人福利视频| 性做久久久久久久免费看| 91视频在线看| 亚洲精品成人少妇| 99精品热视频| 亚洲三级免费观看| 成人aaaa免费全部观看| 久久久午夜电影| 国产激情视频一区二区在线观看 | 国产福利精品导航| 成人性色生活片| 91精品久久久久久蜜臀| 日本不卡中文字幕| 欧美变态凌虐bdsm| 国产aⅴ精品一区二区三区色成熟| 亚洲精品一区二区三区四区高清 | 丰满亚洲少妇av| 国产精品无人区| 色综合久久综合| 性久久久久久久| 久久久久久**毛片大全| 成人午夜视频网站| 一区二区三区精品视频| 欧美一区二区三区成人| 国产精品亚洲人在线观看| 1区2区3区精品视频| 制服丝袜亚洲色图| 国产九色精品成人porny| 亚洲精品五月天| 日韩精品一区二区三区视频播放 | 国产精品久久久久影院| 欧美三级在线看| 风间由美一区二区av101 | 免费亚洲电影在线| 中文字幕在线观看一区| 欧美一区二区免费视频| 成人高清免费观看| 免费精品视频在线| 亚洲你懂的在线视频| 亚洲男人都懂的| 国产精品护士白丝一区av| 欧美性色综合网| 粉嫩aⅴ一区二区三区四区| 丝袜美腿亚洲一区| 国产精品色眯眯| 久久久久久久久久电影| 91精品国产一区二区| 91成人网在线| 欧美亚洲国产一区在线观看网站| 国产一区二区三区观看| 麻豆成人久久精品二区三区红| 一区二区三区中文在线| 国产精品免费免费| 国产偷v国产偷v亚洲高清| 国产亚洲福利社区一区| 精品国产一区久久| 久久一夜天堂av一区二区三区| 337p亚洲精品色噜噜狠狠| 欧美日韩精品一二三区| 欧美精品久久99久久在免费线 | 日韩免费在线观看| 日韩女优电影在线观看| 欧美一区二区日韩| 精品久久久久久久人人人人传媒| 精品捆绑美女sm三区| 国产日韩一级二级三级| 国产欧美日韩久久| 亚洲乱码国产乱码精品精的特点| 亚洲视频在线一区观看| 午夜精品福利一区二区三区av| 日韩精品电影一区亚洲| 国产在线不卡一区| 色综合久久久网| 欧美色倩网站大全免费| 欧美理论片在线| 欧美日韩国产中文| 欧美性感一区二区三区| 7777精品伊人久久久大香线蕉| 欧美日韩久久一区二区| 精品少妇一区二区三区免费观看 | 精品动漫一区二区三区在线观看| 久久女同精品一区二区| 亚洲永久精品大片| 国产一区二区看久久| 欧美无人高清视频在线观看| 欧美精品一区二区蜜臀亚洲| 一区精品在线播放| 狠狠色丁香婷婷综合| 欧美福利视频导航| 专区另类欧美日韩| 国产91高潮流白浆在线麻豆| 欧美日本精品一区二区三区| 国产精品第四页| 国产成人午夜视频| 久久综合一区二区| 日韩精品一区第一页| 欧美视频一区在线| 一区二区三区影院| 91日韩在线专区| 综合婷婷亚洲小说| 99麻豆久久久国产精品免费| 欧美国产日韩一二三区| 精品一区二区三区影院在线午夜| 欧美一二三四在线| 麻豆精品在线视频| 精品播放一区二区|