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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? dns-te~1.cc

?? 100 病毒源碼,原始碼,無毒 ......
?? CC
?? 第 1 頁 / 共 2 頁
字號:
/* * DNS-Terror.  Part of Fastresolve. * * Before running this, it's best to run 'unlimit'. * * Reads IP addresses to resolve from the standard input, one per line. * Other stuff on a line after the IP address is ignored. * * Options: * -c adns-conf		ADNS conf string to use instead of /etc/resolv.conf *			and the various optional environment variables. *			One or more lines in a format like resolv.conf, *			with directives: nameserver, domain, search *			plus some additional directives: *			sortlist, options, clearnameservers, include *			One approach is to make an alternate conf file *			and use -c "include adns.conf". * -d dbfile		Save results to DB file dbfile.  Defaults to *			ip2host.db.  If given as the empty string, *			the DB is stored in memory, and is lost when the *			program exits. * -f fields		Skip fields blank-separated fields at the start *			of each line before expecting an IP address. * -m marksize		Print a notice every marksize input lines. * -o			Copy the input lines to the standard output *			with IP addresses resolved. * -p parallel-queries	Set the size of the query pipeline. * -r			Reresolve; do not read in negative cache entries. * -s			Sync the DB to disk at each mark. * -v			Increase output verbosity. * * On SIGHUP, closes and reopens the db file (useful if it was rolled). * On SIGTERM, closes the db file and exits. * * Written by David MacKenzie <djm@web.us.uu.net> * Thanks to Josh Osborne <stripes@eng.us.uu.net> for ideas and an * earlier implementation. * Please send comments and bug reports to fastresolve-bugs@web.us.uu.net. * ****************************************************************************** *   Copyright 1999 UUNET, an MCI WorldCom company. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * 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. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. ****************************************************************************** */#include <stdio.h>#include <time.h>#include <unistd.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <assert.h>#include <ctype.h>#include <signal.h>#include <setjmp.h>#include <adns.h>#include <zlib.h>#include <map>#include <deque>#include "BoolString.h"#include "DatedStringDb.h"extern "C" int getstr(char **lineptr, size_t *n, FILE *stream,		      char terminator, size_t offset);#ifndef HAVE_FGETLNextern "C" char *fgetln(FILE *stream, size_t *lenp);#endif// Default maximum number of queries outstanding in the pipeline,// or with -o, 1/20 the number of buffered log lines.#define DEFAULT_PARALLEL_QUERIES 1000// 20-30 is a typical ratio of queried addresses to log lines.#define COPYLINES_MULTIPLIER 20// Where to cache the results.#define DEFAULT_DBFILE "ip2host.db"typedef map<BoolString, BoolString, less<BoolString> > BoolStringMap;static char *program_name;// Degree of verbosity in output.  The more, the messier.static int verbose = 0;// Flags set by signal handlers.static int reopen = 0;static jmp_buf getback;voidhup_handler(int){  reopen = 1;}voidterm_handler(int){  fprintf(stderr, "%s: received terminate signal; exiting\n", program_name);  longjmp(getback, 1);}voidint_handler(int){  fprintf(stderr, "%s: received interrupt signal; exiting\n", program_name);  longjmp(getback, 1);}static void fatal_errno(const char *what, int errnoval){  fprintf(stderr, "%s: fatal error: %s: %s\n",	  program_name, what, strerror(errnoval));  longjmp(getback, 1);}voidset_handlers(void){  struct sigaction act;  memset(&act, '\0', sizeof act);  act.sa_handler = hup_handler;  sigaction(SIGHUP, &act, NULL);  act.sa_handler = term_handler;  sigaction(SIGTERM, &act, NULL);  act.sa_handler = int_handler;  sigaction(SIGINT, &act, NULL);}// Info about one query that's being made.class LogEntry{public:  adns_query qu;		// ADNS query ID, or NULL.  char *ipaddr;			// Forward dotted-quad, NUL-terminated.  char *logbefore, *logafter;	// The rest of the log entry.  size_t lenbefore, lenafter;	// Lengths; no NUL-termination.  char buf[1];			// Really longer.  Must be last.  Holds above.};typedef deque<LogEntry *> LogEntryQue;class QueryStats{public:  QueryStats(void) { linesread = cached = submitted = invalid = successful = 0; }  void print(void);  long linesread;  long cached;			// -1 if no cache DB file used.  long submitted;  long invalid;  long successful;};voidQueryStats::print(void){  fprintf(stderr, "%ld lines read.\n", linesread);  fprintf(stderr, "%ld (%.2f%%) invalid addresses.\n",	  invalid, linesread ? ((100.0 * invalid) / (1.0 * linesread)) : 0.0);  if (cached >= 0)    fprintf(stderr, "%ld (%.2f%%) cache hits from the DB file.\n",	    cached, linesread ? ((100.0 * cached) / (1.0 * linesread)) : 0.0);  fprintf(stderr, "%ld (%.2f%%) addresses were queried with DNS;\n",	  submitted, linesread ? ((100.0 * submitted) / (1.0 * linesread)) : 0.0);  fprintf(stderr, "%ld (%.2f%%) of those queries were successful.\n",	  successful, submitted ? ((100.0 * successful) / (1.0 * submitted)) : 0.0);}// Maximum bytes in an ASCII IPv4 address.#define MAX_IP_LEN 15// The size of "zzz.yyy.xxx.www.in-addr.arpa\0"#define MAX_PTR_SIZE (MAX_IP_LEN + 14)// Define to do pedantic checking that domain has a valid format.// #define CHECK_PTR_SYNTAX// If domain contains "www.xxx.yyy.zzz" then put in ptr// "zzz.yyy.xxx.www.in-addr.arpa".// ptr must be at least MAX_PTR_SIZE bytes long.// Return 1 if ok, 0 if domain is not an IPv4 address.//// We leave off the final "." because the returned answers lack it,// and we need to compare with them, and this is more efficient than// adding a "." to the end of each of them.// Moreover, we're not passing the adns_qf_search flag to// adns_submit(), so we're not searching anyway.intdomptr(const char *domain, char *ptr){  const char *inaddr = ".in-addr.arpa";  size_t domsize = strlen(domain);  const char *d;  const char *numstart, *numend = NULL;  char *p = ptr;#ifdef CHECK_PTR_SYNTAX  int octets = 0, dots = 0, val;#endif  if (domsize + sizeof(inaddr) > MAX_PTR_SIZE) {    return 0;  }  for (d = domain + domsize - 1; d >= domain; d--) {    if (isdigit(*d)) {      if (!numend)	numend = d;    } else if (*d == '.') {      if (numend) {#ifdef CHECK_PTR_SYNTAX	val = 0;#endif	for (numstart = d + 1; numstart <= numend; ++numstart) {#ifdef CHECK_PTR_SYNTAX	  val = val * 10 + *numstart - '0';#endif	  *p++ = *numstart;	}	numend = NULL;#ifdef CHECK_PTR_SYNTAX	if (val > 255)	  return 0;	++octets;#endif      }      *p++ = *d;#ifdef CHECK_PTR_SYNTAX      ++dots;#endif    } else {      return 0;    }  }  if (numend) {#ifdef CHECK_PTR_SYNTAX    val = 0;#endif    for (numstart = d + 1; numstart <= numend; ++numstart) {#ifdef CHECK_PTR_SYNTAX      val = val * 10 + *numstart - '0';#endif      *p++ = *numstart;    }#ifdef CHECK_PTR_SYNTAX    if (val > 255)      return 0;    ++octets;#endif  }#ifdef CHECK_PTR_SYNTAX  if (octets != 4 || dots != 3)    return 0;#endif  strcpy(p, inaddr);  return 1;}#if 0voidprint_map(BoolStringMap &reslist, bool all){  BoolStringMap::iterator it;  BoolString k, v;  fprintf(stderr, "MAP:\n");  for (it = reslist.begin(); it != reslist.end(); it++) {    k = (*it).first;    v = (*it).second;    if (all || strcmp(v.get_str(), "?"))      fprintf(stderr, "%s=%s\n", k.get_str(), v.get_str());  }}#endifenum submission { sb_invalid, sb_cached, sb_known, sb_pending, sb_submitted };enum submissionsubmit_query(adns_state ads, BoolStringMap &reslist, LogEntry *lp){  int r;  adns_query qu;  char rev[MAX_PTR_SIZE], *ipaddr, *data;  if (!domptr(lp->ipaddr, rev)) {    if (verbose)      fprintf(stderr, "%s invalid\n", lp->ipaddr);    return sb_invalid;  }  BoolString key(lp->ipaddr, false), value;  BoolStringMap::iterator it = reslist.find(key);  if (it != reslist.end()) {    value = (*it).second;    data = value.get_str();    if (data[0] == '?' && data[1] == '\0') {      if (verbose > 1)	fprintf(stderr, "%s pending\n", lp->ipaddr);      return sb_pending;    }    if (value.get_flag()) {      if (verbose > 1)	fprintf(stderr, "%s known\n", lp->ipaddr);      return sb_known;    } else {      if (verbose > 1)	fprintf(stderr, "%s cached\n", lp->ipaddr);      return sb_cached;    }  }    r = adns_submit(ads, rev, adns_r_ptr_raw,		  (enum adns_queryflags)		  (adns_qf_quoteok_cname|adns_qf_quoteok_anshost), lp, &qu);  if (r)    fatal_errno("adns_submit", r);  if (verbose)    fprintf(stderr, "%s submitted\n", lp->ipaddr);  lp->qu = qu;  ipaddr = strdup(lp->ipaddr);  if (ipaddr == NULL)    fatal_errno("malloc", errno);  BoolString k(ipaddr, false), v("?", true);  reslist[k] = v;  return sb_submitted;}// Record the resource record(s) we got back.// Do not free the return value, which is used in reslist.char *process_answer(adns_answer *ans, char *ipaddr, BoolStringMap &reslist){  const char *rrtn, *fmtn;  char *ptr;  int len;  adns_status ri;  ri = adns_rr_info(ans->type, &rrtn, &fmtn, &len, 0, 0);  if (verbose)    fprintf(stderr, "%s %s; nrrs=%d ",	     ipaddr,	     adns_strerror(ans->status),	     ans->nrrs);  if (ans->nrrs) {    ptr = *ans->rrs.str;    if (verbose)      fprintf(stderr, "%s\n", ptr);  } else {    ptr = "";    if (verbose)      putc('\n', stderr);  }  ptr = strdup(ptr);  if (ptr == NULL)    fatal_errno("malloc", errno);  // Update the value from "?".  BoolString key(ipaddr, false), oldvalue;  BoolStringMap::iterator it = reslist.find(key);  assert(it != reslist.end());  key = (*it).first;		// Don't lose that malloc'd string.  oldvalue = (*it).second;  char *data = oldvalue.get_str();  assert(data[0] == '?' && data[1] == '\0');  assert(oldvalue.get_flag());  BoolString value(ptr, true);  reslist[key] = value;  return ptr;}// Read fields space-separated fields from fp, and return the result.// Store in *lenp the number of characters read, not including the// null terminator.char *read_fields(FILE *fp, int fields, size_t *lenp){  static char *p = NULL;  static size_t psize = 0;  ssize_t nread;  size_t off;  off = 0;  while (fields-- > 0 &&	 (nread = getstr(&p, &psize, fp, ' ', off)) > 0) {    off += nread;  }  *lenp = off;  return off == 0 ? NULL : p;}// Return the IP address of the next log entry, NUL terminated.// The result is in static storage that will be overwritten// by the next call.// Return NULL on EOF.// If save_line is true, save the contents of the line in the returned// structure.  If skip_fields is nonzero, there are that many// space-separated fields before the IP address.LogEntry *read_ipaddr(FILE *fp, bool save_line, int skip_fields){  static char ipa[MAX_IP_LEN + 1];  char *before;  size_t after_len = 0, before_len = 0;  char *p = ipa, *after = "", *to, *from, *end;  int c;  LogEntry *lp;  if (skip_fields)    before = read_fields(fp, skip_fields, &before_len);  while ((c = getc(fp)) != EOF	 && !isspace(c)	 && p - ipa < MAX_IP_LEN) {    if (c)			// Guard against corruption (NUL bytes).      *p++ = c;  }  *p = '\0';  if (c == EOF)    // Note that we throw away any IP address that is the last thing    // in the input stream.  It must be followed by something    // (a newline or two other characters will do) in order to be returned.    return NULL;  // N.B. BSD fgetln() does not NUL terminate.  if (c != '\n' && (after = fgetln(fp, &after_len)) == NULL)    return NULL;  lp = (LogEntry *)    malloc(sizeof(LogEntry)	   + (save_line ? before_len : 0) // logbefore	   + p - ipa		// ipaddr (buf already has 1 byte for NUL)	   + (save_line ? after_len + 1 : 0) // logafter	   );  if (lp == NULL)    fatal_errno("malloc", errno);  lp->qu = 0;  // Point ipaddr, logafter, logbefore to data in buf.  to = lp->buf;    // Copy the IP address into the LogEntry.  for (lp->ipaddr = to, from = ipa; *from;)    *to++ = *from++;  *to = '\0';  // Copy the rest of the line into the LogEntry, if requested.  if (save_line) {    lp->logafter = ++to;    *to++ = c;    end = after + after_len;	// Sentinel for speed.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人综合视频| 91在线丨porny丨国产| 国产精品久久午夜夜伦鲁鲁| 欧美亚洲动漫制服丝袜| 国产一区二区免费在线| 亚洲图片欧美视频| 欧美激情综合在线| 在线成人av影院| 99re成人在线| 狠狠色丁香久久婷婷综合_中| 亚洲欧美精品午睡沙发| 久久亚洲影视婷婷| 欧美日韩免费视频| 99久久精品一区二区| 精品一区二区三区在线播放视频 | 91精品国产综合久久精品性色| 成人动漫av在线| 九九精品一区二区| 午夜精品福利一区二区蜜股av| 国产精品久久精品日日| 精品国产免费一区二区三区四区| 欧美日韩久久一区| 91麻豆蜜桃一区二区三区| 国产99久久精品| 国内精品久久久久影院一蜜桃| 亚洲图片欧美色图| 亚洲欧美成人一区二区三区| 欧美国产一区二区| 久久综合色播五月| 91精品国产乱码| 国产欧美久久久精品影院| 日韩欧美精品在线| 5858s免费视频成人| 欧美日韩一区二区不卡| 色欧美88888久久久久久影院| 91在线云播放| 91丝袜美腿高跟国产极品老师| 成人开心网精品视频| 国产精品一线二线三线| 国产高清精品网站| 国产suv精品一区二区三区| 国产精品一二三四区| 国产精品综合在线视频| 国产精品一区二区久激情瑜伽| 国产成人精品影院| 成人免费黄色在线| 成人精品鲁一区一区二区| 风间由美一区二区三区在线观看| 国产福利一区在线| voyeur盗摄精品| 一本一道久久a久久精品| 在线观看网站黄不卡| 欧美三级蜜桃2在线观看| 欧美二区在线观看| 日韩午夜中文字幕| 久久嫩草精品久久久精品一| 欧美国产精品久久| 日韩毛片高清在线播放| 一区二区三区在线视频免费观看| 亚洲综合久久av| 日本伊人色综合网| 国产精品一区三区| 91亚洲国产成人精品一区二区三| thepron国产精品| 欧美日韩一级黄| 日韩精品一区二区三区中文不卡| 国产日韩精品视频一区| 亚洲色图色小说| 日韩av一二三| 国产a久久麻豆| 欧洲av在线精品| 欧美一级在线观看| 亚洲国产成人午夜在线一区| 一区二区视频免费在线观看| 在线免费观看日韩欧美| 欧美一区二区视频观看视频| 国产亚洲综合在线| 亚洲精品福利视频网站| 婷婷六月综合亚洲| 成人午夜视频在线| 欧美日韩中字一区| 国产亚洲短视频| 亚洲韩国一区二区三区| 韩国欧美一区二区| 91美女视频网站| www激情久久| 亚洲国产精品欧美一二99| 国产乱码字幕精品高清av| 色哟哟精品一区| 欧美精品一区二区三区久久久| 亚洲嫩草精品久久| 久久精品999| 在线观看区一区二| 欧美国产激情二区三区| 秋霞午夜鲁丝一区二区老狼| 97精品超碰一区二区三区| 日韩精品一区二区三区中文不卡| 一区二区在线观看免费 | 日本不卡的三区四区五区| 粉嫩13p一区二区三区| 911国产精品| 亚洲色图制服诱惑| 国产在线播精品第三| 欧美浪妇xxxx高跟鞋交| 国产自产v一区二区三区c| 在线精品视频小说1| 国产免费成人在线视频| 捆绑调教一区二区三区| 欧美性三三影院| 综合激情成人伊人| 国产乱码精品一区二区三区五月婷| 欧美美女网站色| 尤物在线观看一区| www.亚洲人| 国产亚洲一区二区三区| 久久精品国产久精国产| 欧美日韩mp4| 亚洲免费电影在线| 大白屁股一区二区视频| wwwwxxxxx欧美| 精品亚洲国内自在自线福利| 欧美一级久久久久久久大片| 三级影片在线观看欧美日韩一区二区| 93久久精品日日躁夜夜躁欧美| 欧美国产激情一区二区三区蜜月| 精品亚洲国产成人av制服丝袜| 日韩欧美电影在线| 青椒成人免费视频| 91精品欧美福利在线观看| 亚洲电影第三页| 欧美视频一区二区| 亚洲一区二区av电影| 在线观看视频欧美| 一区二区三区在线免费| 色就色 综合激情| 一区二区三区免费| 欧美亚男人的天堂| 亚洲一区二区在线免费看| 日本电影欧美片| 亚洲综合一区在线| 欧美综合在线视频| 一区二区三区美女| 欧美亚洲另类激情小说| 天天操天天综合网| 67194成人在线观看| 日本成人在线视频网站| 欧美一区二视频| 久久不见久久见免费视频7| 日韩精品一区在线| 国产综合久久久久久久久久久久| 国产偷国产偷亚洲高清人白洁| 国产不卡视频一区| 日韩伦理免费电影| 在线看国产一区| 日本最新不卡在线| 精品福利一区二区三区免费视频| 国产成人午夜片在线观看高清观看| 国产欧美一区二区三区网站| 91啦中文在线观看| 亚洲成a天堂v人片| 精品国精品自拍自在线| 成人夜色视频网站在线观看| 亚洲精品国产a久久久久久| 制服丝袜av成人在线看| 国产一区久久久| 伊人性伊人情综合网| 日韩欧美在线1卡| 成人免费高清在线| 色一区在线观看| 男人操女人的视频在线观看欧美| 国产视频一区二区在线观看| 在线免费观看一区| 精品在线一区二区| 中文字幕亚洲电影| 欧美日本一道本在线视频| 精品一区二区三区久久| 最新热久久免费视频| 欧美性三三影院| 国模无码大尺度一区二区三区| 国产精品久久久久影院| 色综合天天在线| 成人免费视频在线观看| 制服丝袜av成人在线看| 国产在线精品一区二区三区不卡| 欧美激情一二三区| 91麻豆精品久久久久蜜臀| 国产另类ts人妖一区二区| 亚洲日本乱码在线观看| 精品少妇一区二区三区视频免付费| 国产剧情一区在线| 亚洲麻豆国产自偷在线| 欧美人与z0zoxxxx视频| 成人一级片在线观看| 亚洲成人精品影院| 国产亚洲欧美在线| 欧美精选午夜久久久乱码6080| 国内偷窥港台综合视频在线播放| 日本一区二区在线不卡| 欧美日韩你懂得| 成人午夜电影网站|