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

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

?? protocols.cc

?? Ubuntu packages of security software。 相當不錯的源碼
?? CC
字號:
/*************************************************************************** * protocols.cc -- Functions relating to the protocol scan and mapping     * * between IPproto Number <-> name.                                        * *                                                                         * ***********************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: protocols.cc 3943 2006-09-05 08:39:32Z fyodor $ */#include "protocols.h"#include "NmapOps.h"extern NmapOps o;static int numipprots = 0;static struct protocol_list *protocol_table[PROTOCOL_TABLE_SIZE];static int nmap_protocols_init() {  static int protocols_initialized = 0;  if (protocols_initialized) return 0;  char filename[512];  FILE *fp;  char protocolname[128];  unsigned short protno;  char *p;  char line[1024];  int lineno = 0;  struct protocol_list *current, *previous;  int res;  if (nmap_fetchfile(filename, sizeof(filename), "nmap-protocols") == -1) {    error("Unable to find nmap-protocols!  Resorting to /etc/protocol");    strcpy(filename, "/etc/protocols");  }  fp = fopen(filename, "r");  if (!fp) {    fatal("Unable to open %s for reading protocol information", filename);  }  memset(protocol_table, 0, sizeof(protocol_table));    while(fgets(line, sizeof(line), fp)) {    lineno++;    p = line;    while(*p && isspace((int) *p))      p++;    if (*p == '#')      continue;    res = sscanf(line, "%127s %hu", protocolname, &protno);    if (res !=2)      continue;    protno = htons(protno);    /* Now we make sure our protocols don't have duplicates */    for(current = protocol_table[0], previous = NULL;	current; current = current->next) {      if (protno == current->protoent->p_proto) {	if (o.debugging) {	  error("Protocol %d is duplicated in protocols file %s", ntohs(protno), filename);	}	break;      }      previous = current;    }    if (current)      continue;    numipprots++;    current = (struct protocol_list *) cp_alloc(sizeof(struct protocol_list));    current->protoent = (struct protoent *) cp_alloc(sizeof(struct protoent));    current->next = NULL;    if (previous == NULL) {      protocol_table[protno] = current;    } else {      previous->next = current;    }    current->protoent->p_name = cp_strdup(protocolname);    current->protoent->p_proto = protno;    current->protoent->p_aliases = NULL;  }  fclose(fp);  protocols_initialized = 1;  return 0;}struct protoent *nmap_getprotbynum(int num) {  struct protocol_list *current;  if (nmap_protocols_init() == -1)    return NULL;  for(current = protocol_table[num % PROTOCOL_TABLE_SIZE];      current; current = current->next) {    if (num == current->protoent->p_proto)      return current->protoent;  }  /* Couldn't find it ... oh well. */  return NULL;  }/* By default we do all prots 0-255. */struct scan_lists *getdefaultprots(void) {  int protindex = 0;  struct scan_lists *scanlist;  /*struct protocol_list *current;*/  int bucket;  int protsneeded = 256;  if (nmap_protocols_init() == -1)    fatal("getdefaultprots(): Couldn't get protocol numbers");    scanlist = (struct scan_lists *) safe_zalloc(sizeof(struct scan_lists));  scanlist->prots = (unsigned short *) safe_zalloc((protsneeded) * sizeof(unsigned short));  scanlist->prot_count = protsneeded;  for(bucket = 0; bucket < protsneeded; bucket++) {    scanlist->prots[protindex++] = bucket;  }  return scanlist;}struct scan_lists *getfastprots(void) {  int protindex = 0;  struct scan_lists *scanlist;  char usedprots[256];  struct protocol_list *current;  int bucket;  int protsneeded = 0;  if (nmap_protocols_init() == -1)    fatal("Getfastprots: Couldn't get protocol numbers");    memset(usedprots, 0, sizeof(usedprots));  for(bucket = 0; bucket < PROTOCOL_TABLE_SIZE; bucket++) {      for(current = protocol_table[bucket % PROTOCOL_TABLE_SIZE];	current; current = current->next) {      if (!usedprots[ntohs(current->protoent->p_proto)])	usedprots[ntohs(current->protoent->p_proto)] = 1;	protsneeded++;    }  }  scanlist = (struct scan_lists *) safe_zalloc(sizeof(struct scan_lists));  scanlist->prots = (unsigned short *) safe_zalloc((protsneeded ) * sizeof(unsigned short));  scanlist->prot_count = protsneeded;  for(bucket = 0; bucket < 256; bucket++) {    if (usedprots[bucket])      scanlist->prots[protindex++] = bucket;  }  return scanlist;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
美女脱光内衣内裤视频久久网站| 国产成人综合在线观看| 国产在线精品一区二区三区不卡| 不卡的av电影在线观看| 欧美一区二区黄色| 亚洲国产精品一区二区www在线| 国产精品综合网| 91精品国产综合久久精品图片| 国产精品国产精品国产专区不片| 免费人成网站在线观看欧美高清| 在线观看国产一区二区| 国产精品乱人伦| 成人免费高清在线| 久久久久久久久岛国免费| 亚洲国产va精品久久久不卡综合| 97精品超碰一区二区三区| 精品福利av导航| 麻豆国产欧美日韩综合精品二区| 精品视频一区二区三区免费| 亚洲欧洲日产国码二区| 国产精品综合在线视频| 精品久久久久久久久久久久久久久久久 | 亚洲精品一区二区三区在线观看 | 亚洲欧洲精品一区二区精品久久久| 免费美女久久99| 欧美人xxxx| 午夜电影久久久| 欧美日本乱大交xxxxx| 亚洲一区二区三区影院| 欧美日韩在线播放三区四区| 亚洲电影在线播放| 欧美日本一道本在线视频| 亚洲国产美女搞黄色| 欧美日韩一区久久| 午夜视频在线观看一区二区三区| 色婷婷综合久久久| 亚洲综合色噜噜狠狠| 色av一区二区| 亚洲成av人片一区二区三区| 91精品久久久久久久91蜜桃| 日韩福利视频导航| 日韩美女天天操| 国产成人av电影免费在线观看| 一区二区三区高清不卡| 91免费国产视频网站| 樱花草国产18久久久久| 欧美日本在线播放| 伦理电影国产精品| 久久久久久久久99精品| 成人av资源下载| 亚洲午夜在线视频| 欧美变态口味重另类| 国产精品资源在线| 亚洲人一二三区| 911精品产国品一二三产区| 精品一区二区三区免费毛片爱| 久久久久久久久久久黄色| 99免费精品视频| 亚洲午夜视频在线| 精品国产百合女同互慰| 99久久伊人久久99| 日本在线播放一区二区三区| 2023国产精品| 欧美三级电影网站| 国产一区二区精品久久99| 综合网在线视频| 91精品国产综合久久精品图片 | av午夜一区麻豆| 亚洲地区一二三色| 精品国产不卡一区二区三区| 91蜜桃网址入口| 美女国产一区二区| 亚洲女同女同女同女同女同69| 日韩精品最新网址| 色婷婷精品久久二区二区蜜臂av | 亚洲伊人伊色伊影伊综合网| 日韩午夜av电影| 日本韩国一区二区三区视频| 麻豆国产欧美一区二区三区| 亚洲精品视频在线| 久久久久久电影| 欧美一区二区三区免费大片| 91小视频免费观看| 精品一区二区在线视频| 一区二区三区国产豹纹内裤在线 | 日韩欧美色电影| 色综合亚洲欧洲| 国产91精品露脸国语对白| 日韩精品五月天| 一个色在线综合| 中文字幕亚洲一区二区va在线| 日韩欧美一区二区不卡| 欧美丝袜丝交足nylons| 色综合久久久久网| 99免费精品在线观看| 国产寡妇亲子伦一区二区| 成人黄色小视频在线观看| 免费看精品久久片| 性做久久久久久| 亚洲国产日韩a在线播放| 中文字幕亚洲视频| 国产日韩亚洲欧美综合| 欧美精品一区二区精品网| 欧美日韩美女一区二区| 欧美视频精品在线观看| 一本色道**综合亚洲精品蜜桃冫| 成人免费精品视频| 国产成人在线视频网站| 国产激情一区二区三区四区| 国产一区二区三区久久悠悠色av| 日韩精品久久理论片| 视频一区免费在线观看| 日本在线观看不卡视频| 蜜臂av日日欢夜夜爽一区| 美国av一区二区| 麻豆成人久久精品二区三区红| 人人狠狠综合久久亚洲| 天天影视色香欲综合网老头| 五月婷婷久久综合| 蜜桃传媒麻豆第一区在线观看| 美女www一区二区| 韩国女主播成人在线| 国产激情一区二区三区| 成人免费高清视频| 欧美中文字幕一区二区三区亚洲| 色婷婷狠狠综合| 欧美日韩精品免费观看视频 | 日韩精品一卡二卡三卡四卡无卡| 无吗不卡中文字幕| 久久精品99久久久| 国产精品1区二区.| 99精品一区二区| 欧美日本在线播放| 欧美精品一区二区三区在线播放| 久久婷婷综合激情| 国产精品夫妻自拍| 亚洲国产综合视频在线观看| 免费人成网站在线观看欧美高清| 国产专区欧美精品| 色综合中文字幕国产| 色噜噜狠狠色综合中国 | 制服丝袜亚洲精品中文字幕| 欧美一级生活片| 久久精品一区二区三区av| 国产精品免费视频一区| 亚洲最大成人网4388xx| 另类调教123区 | 国产福利一区二区三区视频在线| 成人永久免费视频| 777a∨成人精品桃花网| 日本一区二区免费在线观看视频| 一区二区三区中文在线观看| 免费国产亚洲视频| 91色在线porny| 精品日韩欧美一区二区| 亚洲视频综合在线| 久久电影网电视剧免费观看| 91在线视频18| 欧美精品一区二区三区一线天视频 | 91视频精品在这里| 91精品婷婷国产综合久久竹菊| 亚洲精品在线观| 亚洲一区在线免费观看| 国产成人在线视频网站| 欧美一区二视频| 亚洲欧洲日产国产综合网| 久久精品国产一区二区三区免费看| 成av人片一区二区| 26uuu国产电影一区二区| 亚洲精品菠萝久久久久久久| 国产精品一区在线观看乱码| 欧美福利视频一区| 亚洲天堂福利av| 国产精品综合网| 欧美电视剧免费全集观看| 亚洲国产一区二区三区| www.亚洲在线| 国产亚洲精品精华液| 麻豆91精品91久久久的内涵| 欧洲一区二区三区在线| 国产精品久久久久四虎| 国产成人综合精品三级| 日韩情涩欧美日韩视频| 亚洲国产日韩精品| 色欧美乱欧美15图片| 亚洲欧洲精品天堂一级| av高清不卡在线| 国产视频不卡一区| 国产一区二区0| 亚洲精品在线免费播放| 韩国欧美国产1区| 久久久久久久一区| 激情六月婷婷综合| 精品少妇一区二区三区免费观看| 日本欧美一区二区在线观看| 欧美日韩精品欧美日韩精品一综合| 一区二区三区不卡视频| 欧美在线免费视屏| 亚洲国产aⅴ成人精品无吗| 欧美在线综合视频|