Write a simple but impactful script
Florian Rohrer May 24
Basic challenge (simple): Write a script that produces all possible 4-digit numbers (0000...9999), then put them into a random order and save the output into a text file. Make sure you include leading zeroes where necessary and make also sure that each number is on a separate line in the text file.
Bonus challenge (for daring programmers only): Do the basic challenge and then do the following: Call the generated file
leaked_pins.txt, and email it to one of your co-workers. In the description of the email, say that all the PIN numbers have been leaked, and they should be cautious and check, whether their PIN is contained in the file or not.
Share your code below. If any of you tries the bonus challenge, I am happy to hear any stories :)