
October 2016. The Mirai botnet sweeps the internet for cameras and home routers still wearing their factory passwords, logs in with a short list of them, and grows large enough to knock Twitter, Netflix and Reddit offline in a single afternoon. The entire takeover ran on roughly 60 default logins that nobody had bothered to change. Reject the ones on the list.
Objective
Return whether a login is a known factory default that should be blocked.
Steps
$ is_default("root", "root")
1
$ is_default("admin", "password")
1
$ is_default("jo", "hunter2")
0
Expected files
Allowed functions
None. Write every helper yourself.
Loading solutions...