Skip to content

Commit

Permalink
rules: fix regex for hashcatID 400
Browse files Browse the repository at this point in the history
  • Loading branch information
CPunch committed Dec 15, 2023
1 parent 1631892 commit 54e6cc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ var (
},
{
match: func(input string) bool {
return checkRegex(`^\$H\$[a-z0-9\/.]{31}$`, input)
return checkRegex(`^\$H\$[a-zA-Z0-9]{30}\.$`, input)
},
mode: []HashInfo{
{"phpBB v3.x", 400, "phpass", false},
Expand All @@ -285,7 +285,7 @@ var (
},
{
match: func(input string) bool {
return checkRegex(`^\$P\$[a-z0-9\/.]{31}$`, input)
return checkRegex(`^\$P\$[a-zA-Z0-9]{30}\.$`, input)
},
mode: []HashInfo{
{"Wordpress ≥ v2.6.2", 400, "phpass", false},
Expand Down

0 comments on commit 54e6cc3

Please sign in to comment.