Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cpanfile #101

Merged
merged 1 commit into from
Jun 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cpanfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
requires "threads";
requires "Mojo::File";
requires "Find::Lib", "1.04";
requires "YAML::Tiny", "1.73";
requires "Masscan::Scanner";
requires "Net::DNS", "1.34";
requires "WWW::Mechanize", "2.11";
requires "Net::IP";
requires "UUID::Tiny", "1.04";
requires "UUID::Tiny", "1.04";

Unchanged files with check annotations Beta

use Spellbook::Core::Module;
use Getopt::Long qw(:config no_ignore_case pass_through);
sub main {

Check failure on line 12 in spellbook.pl

GitHub Actions / critic

Subroutine "main" does not end with "return" at line 12, column 1. See page 197 of PBP.
my ($search, $module, @result);
Getopt::Long::GetOptions (
);
if ($target) {
if ($target !~ /^http(s)?:\/\//) { $target = "https://$target"; }

Check failure on line 18 in lib/Spellbook/Parser/Sitemap.pm

GitHub Actions / critic

Only use a capturing group if you plan to use the captured value at line 18, column 28. See page 252 of PBP.

Check failure on line 18 in lib/Spellbook/Parser/Sitemap.pm

GitHub Actions / critic

Regular expression without "/x" flag at line 18, column 28. See page 236 of PBP.
if ($target !~ /\/sitemap.xml$/) { $target = "$target/sitemap.xml"; }

Check failure on line 19 in lib/Spellbook/Parser/Sitemap.pm

GitHub Actions / critic

Regular expression without "/x" flag at line 19, column 28. See page 236 of PBP.
my $userAgent = Spellbook::Core::UserAgent -> new();
my $request = $userAgent -> get($target);
if ($request -> code() == 200) {
my $content = $request -> content();
while ($content =~ m/<loc>(.*?)<\/loc>/g) {

Check failure on line 27 in lib/Spellbook/Parser/Sitemap.pm

GitHub Actions / critic

Regular expression without "/x" flag at line 27, column 36. See page 236 of PBP.
my $url = URI -> new($1);
$target = URI -> new($target);
}
if ($help) {
return "

Check failure on line 41 in lib/Spellbook/Parser/Sitemap.pm

GitHub Actions / critic

Literal line breaks in a string at line 41, column 20. See pages 60,61 of PBP.
\rParser::Sitemap
\r=====================
\r-h, --help See this menu
}
if ($help) {
return "

Check failure on line 44 in lib/Spellbook/Parser/Nmap.pm

GitHub Actions / critic

Literal line breaks in a string at line 44, column 20. See pages 60,61 of PBP.
\rParser::Nmap
\r=====================
\r-h, --help See this menu
);
if ($target) {
if ($target !~ /^http(s)?:\/\//) {

Check failure on line 19 in lib/Spellbook/Parser/S3_Bucket.pm

GitHub Actions / critic

Only use a capturing group if you plan to use the captured value at line 19, column 28. See page 252 of PBP.

Check failure on line 19 in lib/Spellbook/Parser/S3_Bucket.pm

GitHub Actions / critic

Regular expression without "/x" flag at line 19, column 28. See page 236 of PBP.
$target = "https://$target";
}
if ($target !~ /\/$/) { $target .= "/"; }

Check failure on line 23 in lib/Spellbook/Parser/S3_Bucket.pm

GitHub Actions / critic

Regular expression without "/x" flag at line 23, column 28. See page 236 of PBP.
my $userAgent = Spellbook::Core::UserAgent -> new();
my $request = $userAgent -> get($target);