-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix linter warning * complete exploit to none attack * fix test-on-ubuntu.yml and update zarn.yml (#116) * address linter warnings * update test-on-ubuntu.yml * ci: update dependencies installation in Ubuntu workflow * update test-on-ubuntu.yml * update zarn.yml * update .perlcriticrc * update security-gate.yml - remove push trigger - add pull request trigger on develop branch - rename verification step * draft modules * update the license year * draft module to identify hash or crypto type on data strings * new module to identify the account id from AWS key * adding strict/warnings modules --------- Co-authored-by: priv <[email protected]>
- Loading branch information
1 parent
afb13c8
commit 1126388
Showing
13 changed files
with
198 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
severity = 3 | ||
|
||
[-TestingAndDebugging::RequireUseStrict] | ||
[-TestingAndDebugging::RequireUseWarnings] | ||
[-TestingAndDebugging::RequireUseWarnings] | ||
|
||
[TestingAndDebugging::ProhibitNoWarnings] | ||
allow = once |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
package Spellbook::Android::Schemes { | ||
use strict; | ||
use warnings; | ||
|
||
} | ||
|
||
1; | ||
# https://github.com/teknogeek/get_schemas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package Spellbook::Cloud::Account_Identifier { | ||
use strict; | ||
use warnings; | ||
use MIME::Base32 qw(decode_base32); | ||
use Math::BigInt; | ||
|
||
sub new { | ||
my ($self, $parameters) = @_; | ||
my ($help, $key); | ||
|
||
Getopt::Long::GetOptionsFromArray ( | ||
$parameters, | ||
"h|help" => \$help, | ||
"k|key=s" => \$key | ||
); | ||
|
||
if ($key) { | ||
my $trimmed_AWSKeyID = substr($key, 4); | ||
my $decoded = decode_base32($trimmed_AWSKeyID); | ||
|
||
my $decoded_prefix = substr($decoded, 0, 6); | ||
my $bigint_value = Math::BigInt -> new('0x' . unpack("H*", $decoded_prefix)); | ||
|
||
my $mask = Math::BigInt -> new('0x7fffffffff80'); | ||
my $accountID = ($bigint_value & $mask) >> 7; | ||
|
||
return $accountID; | ||
} | ||
|
||
if ($help) { | ||
return " | ||
\rCloud::Account_Identifier | ||
\r============== | ||
\r-h, --help See this menu | ||
\r-k, --key Provides the AWS key for extracting the account ID.\n\n"; | ||
} | ||
|
||
return 0; | ||
} | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
package Spellbook::Crypto::Algorithm_Identifier { | ||
use strict; | ||
use warnings; | ||
|
||
sub new { | ||
my ($self, $parameters) = @_; | ||
my ($help, $data); | ||
|
||
Getopt::Long::GetOptionsFromArray( | ||
$parameters, | ||
"h|help" => \$help, | ||
"d|data=s" => \$data | ||
); | ||
|
||
if ($data) { | ||
$data =~ s/^\s+|\s+$//g; | ||
|
||
my %patterns = ( | ||
'Base64' => qr/^[A-Za-z0-9+\/]+={0,2}$/, | ||
'MD5' => qr/^[a-fA-F0-9]{32}$/, | ||
'SHA-1' => qr/^[a-fA-F0-9]{40}$/, | ||
'SHA-256' => qr/^[a-fA-F0-9]{64}$/, | ||
'UUID' => qr/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/, | ||
'Bcrypt' => qr/^\$2[aby]\$\d{2}\$[A-Za-z0-9\.\/]{53}$/, | ||
); | ||
|
||
foreach my $type (keys %patterns) { | ||
if ($data =~ $patterns{$type}) { | ||
if ($type eq 'Base64') { | ||
if (length($data) % 4 != 0 || $data !~ /[+\/=]/) { | ||
next; | ||
} | ||
} | ||
|
||
if ($type eq 'MD5') { | ||
if (length($data) != 32) { | ||
next; | ||
} | ||
} | ||
|
||
if ($type eq 'SHA-1') { | ||
if (length($data) != 40) { | ||
next; | ||
} | ||
} | ||
|
||
if ($type eq 'SHA-256') { | ||
if (length($data) != 64) { | ||
next; | ||
} | ||
} | ||
|
||
if ($type eq 'Bcrypt') { | ||
if (length($data) != 60) { | ||
next; | ||
} | ||
} | ||
|
||
return $type; | ||
} | ||
} | ||
|
||
return "Desconhecido"; | ||
} | ||
|
||
if ($help) { | ||
return " | ||
\rHelper::Algorithm_Identifier | ||
\r===================== | ||
\r\t-h, --help See this menu | ||
\r\t-d, --data Define the payload data to be identified\n\n"; | ||
} | ||
|
||
return 0; | ||
} | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
package Spellbook::Recon::FavIcon { | ||
use strict; | ||
use warnings; | ||
} | ||
|
||
1; | ||
|
||
# https://github.com/devanshbatham/FavFreak |