- 本文主要实现在linux环境下通过python3执行linux命令
- python/test_pwntcha.py
import subprocess
pic = input("input the pic:")
cmd = "pwntcha %s" %pic
result = subprocess.getoutput(cmd)
print(result)
- 结果:
import subprocess
pic = input("input the pic:")
cmd = "pwntcha %s" %pic
result = subprocess.getoutput(cmd)
print(result)