dnsenum2 icon indicating copy to clipboard operation
dnsenum2 copied to clipboard

Can't locate package AutoLoader for @Net::Whois::IP::ISA at /usr/bin/dnsenum line 574.

Open jscoupreman opened this issue 5 years ago • 6 comments

When I run dnsenum --enum <domain.com> I get the following error:

Name Servers:
______________

Can't locate package AutoLoader for @Net::Whois::IP::ISA at /usr/bin/dnsenum line 574.
Can't locate package AutoLoader for @Net::Whois::IP::ISA at /usr/bin/dnsenum line 574.
Can't locate package AutoLoader for @Net::Whois::IP::ISA at /usr/bin/dnsenum line 574.

I installed the package on Debian Stretch x64 as follow:

sudo apt-get -y install libssl-dev zlib1g-dev
git clone https://github.com/SparrowOchon/dnsenum2.git
cd dnsenum2
apt-get install -y cpanminus
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install Net::Netmask'
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install Net::IP'
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install Net::DNS'
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install Net::Whois::IP'
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install HTML::Parser'
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install WWW::Mechanize'
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install XML::Writer'
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install String::Random'
make
make install

Any idea why I get this error ?

jscoupreman avatar Jan 31 '20 16:01 jscoupreman

this also happens to me on a fedora workstation. I currently have no idea which module is missing.

ghost avatar Feb 18 '20 16:02 ghost

Hey @SvenMW and @jscoupreman I haven't tried this solution but an apparent fix has been detailed in the following blog post under Fix dnsenum whois and autoloader errors: https://web.archive.org/web/20190518071824/https://chousensha.github.io/blog/2017/05/29/dnsenum-kali-linux-tools/

SabeBarker avatar Feb 25 '20 11:02 SabeBarker

Hey @SvenMW and @jscoupreman did @SabeBarker 's fix this for you?. I cant seem to reproduce this error.

SparrowOchon avatar May 25 '20 22:05 SparrowOchon

Seems like the debian devs faced the same problem, only in a different package. They patched the libnet-whois-ip-perl for that.

sighook avatar Nov 04 '21 11:11 sighook

sorry, but I didn't try the workaround, just reading it, it seems reasonable to assume this should work.

ghost avatar Nov 04 '21 13:11 ghost

@chinarulezzz Explains why I never bumped into this problem. It seems that this is a problem with the Net::Whois::IP package which is pulled directly from CPAN or the distro's packages.

Meaning the only options would be to request a fix on CPAN, which was already done 5 years ago with no official change, or to remove it as a dependency for an official fix. Since this package is working on Kali and all Debian forks, which is its primary user base, I'm tempted not to invest the time to re-write this package with a different dependency since Gobuster has superseded it in most use-cases with significantly better speeds.

Open to Suggestions.

SparrowOchon avatar Nov 15 '21 01:11 SparrowOchon