Python调用cmd隐藏执行命令
2022-04-20 10:20
调用subprocess库隐藏执行cmd命令,常用于权限维持
# 隐藏执行命令
import subprocess
def code(cmd):a
subprocess.call(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
code('ping www.baidu.com')
本文来自博客园,作者:Haibara-Z3r0,转载请注明原文链接:https://www.cnblogs.com/Yu-0/articles/16337739.html