调整随机延时逻辑,缩短延迟时间至 0.1 到 1 秒,并更新密码日志文件

This commit is contained in:
2025-04-07 08:50:38 +08:00
Unverified
parent 811d6c5bfa
commit d5d5ea7d1e
2 changed files with 4 additions and 1 deletions

View File

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

View File

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