Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/dns/dnsenum/files/patch-dnsenum.pl
18157 views
1
--- dnsenum.pl.orig 2016-04-22 00:50:16 UTC
2
+++ dnsenum.pl
3
@@ -58,6 +58,8 @@ use Net::Netmask;
4
use XML::Writer;
5
use Socket;
6
use String::Random;
7
+no if $] >= 5.017011, warnings => 'experimental::smartmatch';
8
+
9
10
my ($ithreads_support, $whois_support, $mech_support, $html_support,$xml_support);
11
12
@@ -71,7 +73,7 @@ my ($domain, $recur, $table, $extend_b,
13
my ($timeout, $delay, $pages, $ipcount, $ipvalid) = (10, 3, 5, 0, 0);
14
my ($output);
15
my $writer;
16
-my $program = 'dnsenum.pl';
17
+my $program = 'dnsenum';
18
my $string_gen = String::Random->new;
19
my $wildcards = $string_gen->randpattern("cccccccccccc");
20
my @wildcardaddress;
21
@@ -176,11 +178,6 @@ if ($whois && !defined $whois_support) {
22
"whois queries disabled.\n";
23
$whois = undef;
24
}
25
-if ($whois && !defined $whois_support) {
26
- warn "Warning: can't load Net::Whois::IP module, ".
27
- "whois queries disabled.\n";
28
- $whois = undef;
29
-}
30
if ($output && !defined $xml_support) {
31
warn "Warning: can't load XML::Writer module, ".
32
"xml output disabled.\n";
33
34