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

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

?? 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.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产乱人伦精品一区二区在线观看 | 色天使色偷偷av一区二区| 精品在线播放免费| 黄色日韩网站视频| 国产乱码一区二区三区| 国产成人综合在线| 成人久久久精品乱码一区二区三区| 国产综合色视频| 国产91清纯白嫩初高中在线观看| 国产精品香蕉一区二区三区| 国产一区二区三区免费在线观看| 麻豆高清免费国产一区| 国模冰冰炮一区二区| 国产成人日日夜夜| 99久久婷婷国产综合精品电影| 99久久精品99国产精品| 日本韩国欧美国产| 欧美一级生活片| 久久久亚洲欧洲日产国码αv| 中文成人综合网| 亚洲乱码国产乱码精品精可以看| 亚洲制服丝袜av| 日本欧美久久久久免费播放网| 蜜臀va亚洲va欧美va天堂| 国产精品乡下勾搭老头1| 91一区二区在线观看| 欧美喷水一区二区| 久久久久青草大香线综合精品| 中文字幕一区二区三区不卡| 亚洲一二三四区不卡| 日本免费新一区视频| 懂色av中文一区二区三区| 欧美亚洲另类激情小说| 精品国内二区三区| 亚洲人亚洲人成电影网站色| 日韩电影在线免费看| 成人做爰69片免费看网站| 欧美探花视频资源| 欧美激情一区二区三区不卡| 亚洲成人一二三| 成人免费电影视频| 日韩一级片在线观看| 亚洲黄色免费电影| 国产成人日日夜夜| 欧美一区二区播放| 日韩理论片中文av| 国产成人在线看| 日韩免费在线观看| 伊人一区二区三区| av一二三不卡影片| 26uuu国产电影一区二区| 亚洲成人三级小说| 99re免费视频精品全部| 久久奇米777| 久久精品噜噜噜成人88aⅴ | 亚洲同性gay激情无套| 久久国产婷婷国产香蕉| 欧美丰满少妇xxxbbb| 亚洲少妇最新在线视频| 成人性色生活片免费看爆迷你毛片| 欧美日韩美女一区二区| 亚洲欧美色综合| 成人午夜视频在线观看| 久久久久久麻豆| 久久99在线观看| 欧美一区二区三区系列电影| 午夜精品福利一区二区蜜股av| 91色九色蝌蚪| 亚洲免费观看高清在线观看| 成人美女在线观看| 中文字幕在线免费不卡| 国产不卡视频一区二区三区| 久久久久久久久一| 国产精品一区二区果冻传媒| 久久久久久综合| 国产sm精品调教视频网站| 国产亚洲欧美日韩俺去了| 国产乱对白刺激视频不卡| 精品国产乱码久久久久久影片| 麻豆91小视频| 久久伊人中文字幕| 国产成人免费在线视频| 欧美高清在线一区| 97久久久精品综合88久久| 亚洲精品视频在线观看免费| 欧美系列日韩一区| 免费黄网站欧美| 久久久久久**毛片大全| 91一区二区在线| 午夜一区二区三区视频| 欧美成人bangbros| 成人性生交大片免费看中文网站| 亚洲欧洲日本在线| 精品视频在线免费观看| 美女mm1313爽爽久久久蜜臀| 久久人人超碰精品| 一本一本久久a久久精品综合麻豆| 亚洲黄一区二区三区| 日韩一区二区三区在线视频| 精品一区二区三区在线播放视频| 国产欧美日韩中文久久| 在线观看亚洲成人| 精品一二线国产| 日韩一区日韩二区| 制服丝袜亚洲播放| 东方欧美亚洲色图在线| 亚洲妇女屁股眼交7| www国产亚洲精品久久麻豆| 色婷婷国产精品| 久久99精品国产麻豆婷婷洗澡| 国产精品久久久一区麻豆最新章节| 91在线播放网址| 极品少妇一区二区三区精品视频| 亚洲国产精品久久不卡毛片 | 久久97超碰国产精品超碰| 国产精品沙发午睡系列990531| 欧美日韩视频在线观看一区二区三区 | 亚洲精品精品亚洲| 欧美精品一区二区三区在线| 在线观看欧美黄色| 国产成人一区在线| 美腿丝袜亚洲色图| 亚洲人精品一区| 久久久久综合网| 制服丝袜亚洲色图| 色综合久久久网| 国产高清精品久久久久| 日韩av一级电影| 亚洲图片欧美视频| 中文字幕一区二区三中文字幕| 精品国产伦一区二区三区观看体验| 色呦呦国产精品| 成人av影视在线观看| 久久66热偷产精品| 蜜桃视频免费观看一区| 亚洲成人免费影院| 亚洲国产一区二区在线播放| 国产精品亲子伦对白| 久久久.com| 久久精品水蜜桃av综合天堂| 日韩视频免费观看高清完整版 | 天天做天天摸天天爽国产一区 | 久久综合99re88久久爱| 欧美日韩在线精品一区二区三区激情| 国产剧情在线观看一区二区| 蜜桃av噜噜一区| 日韩vs国产vs欧美| 日韩制服丝袜先锋影音| 亚洲第一成人在线| 国产伦精一区二区三区| 奇米一区二区三区av| 人禽交欧美网站| 男女男精品视频| 日本va欧美va欧美va精品| 日本特黄久久久高潮| 美女视频免费一区| 久久99精品久久只有精品| 久久国产三级精品| 国产精品1区二区.| 国产成人精品综合在线观看 | 2020国产精品自拍| 337p日本欧洲亚洲大胆色噜噜| 欧美电影精品一区二区| 精品美女一区二区| 国产片一区二区三区| 国产精品三级电影| 亚洲资源中文字幕| 美国三级日本三级久久99| 精品无码三级在线观看视频| 国产综合久久久久影院| 高清不卡一二三区| 欧美亚洲一区二区三区四区| 欧美日韩成人综合| 日韩精品一区二区三区蜜臀| 久久久另类综合| 亚洲乱码国产乱码精品精98午夜 | 奇米色一区二区| 国产91精品精华液一区二区三区| 99久久久精品免费观看国产蜜| 欧美性色欧美a在线播放| 欧美电影一区二区| 国产午夜一区二区三区| 亚洲图片激情小说| 蜜臀a∨国产成人精品| 成人av在线资源网站| 欧美日韩一区二区三区四区五区 | 成人h动漫精品一区二| 欧美午夜理伦三级在线观看| 日韩欧美精品三级| 亚洲欧洲在线观看av| 日本va欧美va欧美va精品| 成人av网站免费| 欧美一区二区三区日韩| 国产精品久久二区二区| 久久精品国产成人一区二区三区| av午夜一区麻豆| 2021久久国产精品不只是精品 | 欧美日韩的一区二区| 亚洲天堂久久久久久久| 另类小说图片综合网|