Rating: 4.0
[Writeup](https://github.com/eWorkaholics/DawgCTF-2020/blob/master/DawgCTF%20Writeup.pdf).
**Solve script** (PowerShell):
```
$csvFiles = gci "$PSScriptRoot/Benford_s_Law_Firm_LLC"
#loop through csv files
foreach ($csv in $csvFiles.Name) {
# get dollar value of from csv
$data = (gc "$PSScriptRoot/Benford_s_Law_Firm_LLC/$csv").split(',') |
Where { $_ -match '\d' }
#loop through dollar values and count how many start with a 1
$count1 = 0
$data | foreach {
if ($_.StartsWith('$1')) {
$count1++
}
}
#check if count of 1s does not follow Benford's Law
if ($count1/$data.count -gt .60 -or
$count1/$data.count -lt .10) {
"$csv 1 anomoly: $($count1/$data.count)"
}
}
```