SparrowOchon / dnsenum2

dnsenum is a perl script that enumerates DNS information. Officially mainlined in Kali Linux
32 stars 11 forks source link

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

Open jscoupreman opened 4 years ago

jscoupreman commented 4 years ago

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 ?

ghost commented 4 years ago

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

SabeBarker commented 4 years ago

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/

SparrowOchon commented 4 years ago

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

sighook commented 3 years ago

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

ghost commented 3 years ago

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

SparrowOchon commented 2 years ago

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