Skip to content

Commit

Permalink
fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
htrgouvea committed Nov 12, 2023
1 parent 795143b commit 5b3fa3b
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions lib/Spellbook/Advisory/CVE_2016_10045.pm
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ package Spellbook::Advisory::CVE_2016_10045 {
"message" => $shell{code}
]);
};

return @results;
}

if ($help) {
Expand Down
1 change: 1 addition & 0 deletions lib/Spellbook/Exploit/HAProxy_Exposed.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ package Spellbook::Exploit::HAProxy_Exposed {
);

if ($target) {
return @result;
}

if ($help) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Spellbook/Exploit/None_Attack.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package Spellbook::Exploit::None_Attack {
);

if (1) {

return @result;
}

if ($help) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Spellbook/Exploit/Pwn_DB.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package Spellbook::Exploit::Pwn_DB {

sub new {
my ($self, $parameters) = @_;
my ($help, $target, $user);
my ($help, $target);

Getopt::Long::GetOptionsFromArray (
$parameters,
Expand Down
2 changes: 1 addition & 1 deletion lib/Spellbook/Helper/Exifs_Write.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package Spellbook::Helper::Exifs_Write {

sub new {
my ($self, $parameters)= @_;
my ($help, $file, $payload, @result);
my ($help, $file, $payload);

Getopt::Long::GetOptionsFromArray (
$parameters,
Expand Down
2 changes: 1 addition & 1 deletion lib/Spellbook/Helper/Host_Normalization.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package Spellbook::Helper::Host_Normalization {

sub new {
my ($self, $parameters) = @_;
my ($help, $target, @result);
my ($help, $target);

Getopt::Long::GetOptionsFromArray (
$parameters,
Expand Down
2 changes: 1 addition & 1 deletion lib/Spellbook/Helper/Reverse_Shell.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package Spellbook::Helper::Reverse_Shell {

sub new {
my ($self, $parameters) = @_;
my ($help, $target, @result);
my ($help, $target);

my $port = 1337;
my $lang = "perl";
Expand Down
2 changes: 2 additions & 0 deletions lib/Spellbook/Recon/Nmap_Scanner.pm
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ package Spellbook::Recon::Nmap_Scanner {
my $results = $scanner -> scan();

# print Dumper($results);

return @result;
}

if ($help) {
Expand Down

0 comments on commit 5b3fa3b

Please sign in to comment.