摘要:
import pexpect pexpect.run("ls /tmp", withexitstatus=1) chk = pexpect.spawn("ls -l /tmp/") chk = pexpect.spawn("ls", ['-l', '/tmp/']) ssh_k = pexpect. 阅读全文
posted @ 2020-04-14 10:58
我爱敲代码
阅读(334)
评论(0)
推荐(0)
摘要:
import nmap nm = nmap.PortScanner() nm.scan(hosts="192.168.1.1/24", arguments="-n -sP -PE") nm.all_hosts() import telnetlib tm = telnetlib.Telnet(host 阅读全文
posted @ 2020-04-14 10:12
我爱敲代码
阅读(454)
评论(0)
推荐(0)
摘要:
vim /etc/sysconfig/iptables *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state RELATED,ESTABLISHED -j AC 阅读全文
posted @ 2020-04-09 13:00
我爱敲代码
阅读(1010)
评论(0)
推荐(0)
浙公网安备 33010602011771号