svn commit: r416094 - in head/dns: . dnsenum dnsenum/files
Pawel Pekala
pawel at FreeBSD.org
Sun May 29 11:33:34 UTC 2016
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 <rihaz.jerrin at gmail.com>
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 at 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 <bsd.port.mk>
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
More information about the svn-ports-all
mailing list