gottburgm / wpFlak

WP Flak (Fliegerabwehrkanone) - Wordpress Security Scanner/Exploiter
10 stars 3 forks source link

lib::Requester #2

Open 0x0-art opened 3 years ago

0x0-art commented 3 years ago

Can't locate lib/Requester.pm in @INC (you may need to install the lib::Requester module) (@INC contains: lib /home/al0ne/perl5/lib/perl5/5.32.1/x86_64-linux-gnu-thread-multi /home/al0ne/perl5/lib/perl5/5.32.1 /home/al0ne/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /home/al0ne/perl5/lib/perl5 /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /home/al0ne/perl5/lib/perl5/5.32.0 /home/al0ne/perl5/lib/perl5/5.32.0/x86_64-linux-gnu-thread-multi /usr/local/lib/site_perl) at wpflak.pl line 18. BEGIN failed--compilation aborted at wpflak.pl line 18. codes: git clone https://github.com/gottburgm/wpFlak/ cd wpFlak perl wpflak.pl -u http://127.0.0.1/

i tried to install requests library but that doesn't installing so that doesn't exists in library

Loading internal logger. Log::Log4perl recommended for better logging Reading '/home/al0ne/.cpan/Metadata' Database was generated on Wed, 17 Mar 2021 15:56:08 GMT (error): Could not expand [lib::Requester]. Check the module name. (info): I can suggest names if you install one of Text::Levenshtein::XS, Text::Levenshtein::Damerau::XS, Text::Levenshtein, and Text::Levenshtein::Damerau::PP (info): and you provide the -x option on invocation. (error): Skipping lib::Requester because I couldn't find a matching namespace.

gottburgm commented 3 years ago

Hello,

I think the problem is coming from your perl installation/settings but it's probably not a big deal.

Can you please try to replace 'use lib qw(lib);' in wpFlak.pl by the following lines please:

use FindBin qw($Bin);
use lib "$Bin/lib";

and try again ?

gottburgm commented 3 years ago

I just realized that's in fact its probably not you but my code, as we have 'use lib qw(lib);' we shouldnt have 'use lib::' but 'use ;'

my first comment and the steps i mentionned will work anyway so you can leave it is, but can you rather try this please:

cd wpFlak
find lib/ -type file | xargs -P1 -I{} sed 's# lib::# #g' -i {}

and run it again

gottburgm commented 3 years ago

I actually tested with perl-5.24.4 from the repo code, and even the 'lib::' thing is not a problem as packages also start with it.

and the script ran withiut issues, try perl-5.24.X