From 605861f9220cce22f0351f3136ec4ee2e5e3935b Mon Sep 17 00:00:00 2001 From: cynic Date: Mon, 7 Nov 2022 07:41:34 -0500 Subject: [PATCH] a few more testcases for nonreal users --- auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.py b/auth.py index c7c0bf5..411cc71 100644 --- a/auth.py +++ b/auth.py @@ -9,4 +9,4 @@ def authenticate(u, p): def get_real_users(): f = [i.split(":") for i in open("/etc/shadow").read().split("\n")] - return [i[0] for i in filter(lambda a: len(a) > 1, f) if not(i[1] in ["*", "!"])] \ No newline at end of file + return [i[0] for i in filter(lambda a: len(a) > 1, f) if not(i[1] in ["*", "!", "!!", "!*"])] \ No newline at end of file