load password dictionary as array
This commit is contained in:
parent
f03035451f
commit
5649bc8060
1 changed files with 4 additions and 1 deletions
|
@ -606,7 +606,10 @@ $register->set('geodb', function () {
|
|||
return new Reader(__DIR__ . '/assets/dbip/dbip-country-lite-2022-06.mmdb');
|
||||
});
|
||||
$register->set('passwordsDictionary', function () {
|
||||
return \file_get_contents(__DIR__ . '/assets/security/10k-common-passwords');
|
||||
$content = \file_get_contents(__DIR__ . '/assets/security/10k-common-passwords');
|
||||
$content = explode('\n', $content);
|
||||
$content = array_flip($content);
|
||||
return $content;
|
||||
});
|
||||
$register->set('db', function () {
|
||||
// This is usually for our workers or CLI commands scope
|
||||
|
|
Loading…
Reference in a new issue