Skip to content
Open
Show file tree
Hide file tree
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
11 changes: 8 additions & 3 deletions New-bADpasswordLists-Common.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@

$locale = "common"

$years = (0..9 | foreach{ $_ }) + (00..99 | foreach { $_.ToString("00") }) + (1950..2021 | foreach { $_.ToString() }) + @("123", "1234", "12345")
$current_year = (Get-Date).Year
$years = @(0..9 | ForEach-Object { $_.ToString() }) +
@(0..99 | ForEach-Object { $_.ToString("00") }) +
@(1950..$current_year | ForEach-Object { $_.ToString() }) +
@("123","1234","12345")

$permutations = @("", ".", "!", "?", "=", ".!", "..", "!!", "!.", "?.", ".=")

$strings = @("Test","Qwerty","Qwert","Qwer","Password","Passw0rd","Pa`$`$word","Pa`$`$w0rd","Pa`$`$W0rd","P@ssword","P@ssw0rd","Welcome","Start","End")
Expand All @@ -24,7 +29,7 @@ foreach ($string in $strings) {
$weak.Add("$string") > $null
$weak.Add("$($string.ToLower())") > $null
$weak.Add("$($string.ToUpper())") > $null

foreach ($year in $years) {
foreach ($permutation in $permutations) {
$weak.Add("$string$year$permutation") > $null
Expand All @@ -34,4 +39,4 @@ foreach ($string in $strings) {
}
}

$weak | Set-Content ".\$filename"
$weak | Set-Content ".\$filename"
9 changes: 7 additions & 2 deletions New-bADpasswordLists-Custom.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
# - https://twitter.com/improsec
# - https://www.facebook.com/improsec

$years = (0..9 | foreach{ $_ }) + (00..99 | foreach { $_.ToString("00") }) + (1950..2021 | foreach { $_.ToString() })
$current_year = (Get-Date).Year
$years = @(0..9 | ForEach-Object { $_.ToString() }) +
@(0..99 | ForEach-Object { $_.ToString("00") }) +
@(1950..$current_year | ForEach-Object { $_.ToString() }) +
@("123","1234","12345")

$permutations = @("", ".", "!", "?", "=", ".!", "..", "!!", "!.", "?.", ".=")

$strings = @('company name')
Expand All @@ -22,7 +27,7 @@ foreach ($string in $strings) {
$weak.Add("$string") > $null
$weak.Add("$($string.ToLower())") > $null
$weak.Add("$($string.ToUpper())") > $null

foreach ($year in $years) {
foreach ($permutation in $permutations) {
$weak.Add("$string$year$permutation") > $null
Expand Down
11 changes: 8 additions & 3 deletions New-bADpasswordLists-Danish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@

$locale = "da"

$years = (0..9 | foreach{ $_ }) + (00..99 | foreach { $_.ToString("00") }) + (1950..2021 | foreach { $_.ToString() }) + @("123", "1234", "12345")
$current_year = (Get-Date).Year
$years = @(0..9 | ForEach-Object { $_.ToString() }) +
@(0..99 | ForEach-Object { $_.ToString("00") }) +
@(1950..$current_year | ForEach-Object { $_.ToString() }) +
@("123","1234","12345")

$permutations = @("", ".", "!", "?", "=", ".!", "..", "!!", "!.", "?.", ".=")

$strings = @("Velkommen","Farvel","Vinter",[Regex]::Unescape("For\u00e5r"),"Foraar","Sommer",[Regex]::Unescape("Efter\u00e5r"),"Efteraar","Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December","Mandag","Tirsdag","Onsdag","Torsdag","Fredag",[Regex]::Unescape("L\u00f8rdag"),"Loerdag",[Regex]::Unescape("S\u00f8ndag"),"Soendag")
Expand All @@ -24,7 +29,7 @@ foreach ($string in $strings) {
$weak.Add("$string") > $null
$weak.Add("$($string.ToLower())") > $null
$weak.Add("$($string.ToUpper())") > $null

foreach ($year in $years) {
foreach ($permutation in $permutations) {
$weak.Add("$string$year$permutation") > $null
Expand All @@ -34,4 +39,4 @@ foreach ($string in $strings) {
}
}

$weak | Set-Content ".\$filename" -Encoding "UTF8"
$weak | Set-Content ".\$filename" -Encoding "UTF8"
11 changes: 8 additions & 3 deletions New-bADpasswordLists-English.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@

$locale = "en"

$years = (0..9 | foreach{ $_ }) + (00..99 | foreach { $_.ToString("00") }) + (1950..2021 | foreach { $_.ToString() }) + @("123", "1234", "12345")
$current_year = (Get-Date).Year
$years = @(0..9 | ForEach-Object { $_.ToString() }) +
@(0..99 | ForEach-Object { $_.ToString("00") }) +
@(1950..$current_year | ForEach-Object { $_.ToString() }) +
@("123","1234","12345")

$permutations = @("", ".", "!", "?", "=", ".!", "..", "!!", "!.", "?.", ".=")

$strings = @("Welcome","Goodbye","Winter","Spring","Summer","Autumn","January","February","March","April","May","June","July","August","September","October","November","December","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday")
Expand All @@ -24,7 +29,7 @@ foreach ($string in $strings) {
$weak.Add("$string") > $null
$weak.Add("$($string.ToLower())") > $null
$weak.Add("$($string.ToUpper())") > $null

foreach ($year in $years) {
foreach ($permutation in $permutations) {
$weak.Add("$string$year$permutation") > $null
Expand All @@ -34,4 +39,4 @@ foreach ($string in $strings) {
}
}

$weak | Set-Content ".\$filename"
$weak | Set-Content ".\$filename"