From owner-svn-ports-all@freebsd.org Sun May 29 11:33:34 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A7406B532D5; Sun, 29 May 2016 11:33:34 +0000 (UTC) (envelope-from pawel@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 67A1B1FB7; Sun, 29 May 2016 11:33:34 +0000 (UTC) (envelope-from pawel@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4TBXXCQ019326; Sun, 29 May 2016 11:33:33 GMT (envelope-from pawel@FreeBSD.org) Received: (from pawel@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4TBXXL2019321; Sun, 29 May 2016 11:33:33 GMT (envelope-from pawel@FreeBSD.org) Message-Id: <201605291133.u4TBXXL2019321@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pawel set sender to pawel@FreeBSD.org using -f From: Pawel Pekala Date: Sun, 29 May 2016 11:33:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r416094 - in head/dns: . dnsenum dnsenum/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 May 2016 11:33:34 -0000 Author: pawel Date: Sun May 29 11:33:33 2016 New Revision: 416094 URL: https://svnweb.freebsd.org/changeset/ports/416094 Log: Multithreaded perl script to enumerate DNS information of a domain and discover non-contiguous IP blocks. OPERATIONS: Get the host's address (A record). Get the nameservers (threaded). Get the MX record (threaded). Perform axfr queries on nameservers and get BIND VERSION (threaded). Get extra names and subdomains via google scraping (google query = "allinurl: -www site:domain"). Brute force subdomains from file, can also perform recursion on subdomain that have NS records (all threaded). Calculate C class domain network ranges and perform whois queries on them (threaded). Perform reverse lookups on netranges ( C class or/and whois netranges) (threaded). Write to domain_ips.txt file ip-blocks. WWW:https://github.com/fwaeytens/dnsenum PR: 208950 Submitted by: Rihaz Jerrin Added: head/dns/dnsenum/ head/dns/dnsenum/Makefile (contents, props changed) head/dns/dnsenum/distinfo (contents, props changed) head/dns/dnsenum/files/ head/dns/dnsenum/files/patch-dnsenum.pl (contents, props changed) head/dns/dnsenum/pkg-descr (contents, props changed) Modified: head/dns/Makefile Modified: head/dns/Makefile ============================================================================== --- head/dns/Makefile Sun May 29 11:17:32 2016 (r416093) +++ head/dns/Makefile Sun May 29 11:33:33 2016 (r416094) @@ -37,6 +37,7 @@ SUBDIR += dnscrypt-wrapper SUBDIR += dnsdbck SUBDIR += dnsdist + SUBDIR += dnsenum SUBDIR += dnsflood SUBDIR += dnshistory SUBDIR += dnsjava Added: head/dns/dnsenum/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/dnsenum/Makefile Sun May 29 11:33:33 2016 (r416094) @@ -0,0 +1,43 @@ +# $FreeBSD$ + +PORTNAME= dnsenum +PORTVERSION= 1.2.4.2 +CATEGORIES= dns + +MAINTAINER= rihaz.jerrin@gmail.com +COMMENT= Enumerate DNS information and discover non-contiguous IP blocks + +LICENSE= GPLv2 + +RUN_DEPENDS= p5-Net-IP>=0:net-mgmt/p5-Net-IP \ + p5-Net-DNS>=0:dns/p5-Net-DNS \ + p5-Net-Netmask>=0:net-mgmt/p5-Net-Netmask \ + p5-Net-Whois>=0:net/p5-Net-Whois \ + p5-HTML-Parser>=0:www/p5-HTML-Parser \ + p5-WWW-Mechanize>=0:www/p5-WWW-Mechanize \ + p5-XML-Writer>=0:textproc/p5-XML-Writer \ + p5-String-Random>=0:devel/p5-String-Random + +USE_GITHUB= yes +GH_ACCOUNT= fwaeytens + +USES= perl5 shebangfix +SHEBANG_FILES= ${WRKSRC}/dnsenum.pl + +NO_BUILD= yes +NO_ARCH= yes + +PLIST_FILES= bin/dnsenum \ + ${DOCSDIR_REL}/README \ + ${DOCSDIR_REL}/INSTALL.txt \ + ${DATADIR_REL}/dns.txt + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/dnsenum.pl ${STAGEDIR}${PREFIX}/bin/dnsenum + ${MKDIR} ${STAGEDIR}${DATADIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/README + ${INSTALL_DATA} ${WRKSRC}/INSTALL.txt ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/dns.txt ${STAGEDIR}${DATADIR} + +.include Added: head/dns/dnsenum/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/dnsenum/distinfo Sun May 29 11:33:33 2016 (r416094) @@ -0,0 +1,2 @@ +SHA256 (fwaeytens-dnsenum-1.2.4.2_GH0.tar.gz) = e8a18035a6e00b81430edb4a969ef5043ef39984f3a6b0629b83c8fecf9bf007 +SIZE (fwaeytens-dnsenum-1.2.4.2_GH0.tar.gz) = 20000 Added: head/dns/dnsenum/files/patch-dnsenum.pl ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/dnsenum/files/patch-dnsenum.pl Sun May 29 11:33:33 2016 (r416094) @@ -0,0 +1,32 @@ +--- dnsenum.pl.orig 2016-04-22 00:50:16 UTC ++++ dnsenum.pl +@@ -58,6 +58,8 @@ use Net::Netmask; + use XML::Writer; + use Socket; + use String::Random; ++no if $] >= 5.017011, warnings => 'experimental::smartmatch'; ++ + + my ($ithreads_support, $whois_support, $mech_support, $html_support,$xml_support); + +@@ -71,7 +73,7 @@ my ($domain, $recur, $table, $extend_b, + my ($timeout, $delay, $pages, $ipcount, $ipvalid) = (10, 3, 5, 0, 0); + my ($output); + my $writer; +-my $program = 'dnsenum.pl'; ++my $program = 'dnsenum'; + my $string_gen = String::Random->new; + my $wildcards = $string_gen->randpattern("cccccccccccc"); + my @wildcardaddress; +@@ -176,11 +178,6 @@ if ($whois && !defined $whois_support) { + "whois queries disabled.\n"; + $whois = undef; + } +-if ($whois && !defined $whois_support) { +- warn "Warning: can't load Net::Whois::IP module, ". +- "whois queries disabled.\n"; +- $whois = undef; +-} + if ($output && !defined $xml_support) { + warn "Warning: can't load XML::Writer module, ". + "xml output disabled.\n"; Added: head/dns/dnsenum/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/dnsenum/pkg-descr Sun May 29 11:33:33 2016 (r416094) @@ -0,0 +1,21 @@ +Multithreaded perl script to enumerate DNS information +of a domain and discover non-contiguous IP blocks. + +OPERATIONS: + Get the host's address (A record). + Get the nameservers (threaded). + Get the MX record (threaded). + Perform axfr queries on nameservers and + get BIND VERSION (threaded). + Get extra names and subdomains via google + scraping (google query = "allinurl: -www site:domain"). + Brute force subdomains from file, can also + perform recursion on subdomain that have NS records (all threaded). + Calculate C class domain network ranges + and perform whois queries on them (threaded). + Perform reverse lookups on netranges + ( C class or/and whois netranges) (threaded). + Write to domain_ips.txt file + ip-blocks. + +WWW:https://github.com/fwaeytens/dnsenum