修复 sudo 密码输入逻辑中的计数器初始化,将计数器从 1 改为 0

This commit is contained in:
2025-04-07 08:51:02 +08:00
Unverified
parent d5d5ea7d1e
commit 8740aa0e12
2 changed files with 4 additions and 1 deletions

View File

@@ -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: ")

View File

@@ -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