DEV Community

loading...

Discussion on: Write a simple but impactful script

Collapse
c33s profile image
Julian
<?php
foreach ($numbers = range(0, 9999) as &$number) {
    $number = str_pad($number,4, "0", STR_PAD_LEFT)."\n";
}
shuffle($numbers);
file_put_contents('leaked_pins.txt', $numbers);