- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 Python3 scapy局域网自动多线程arp扫描实现
一、所需Python库 from scapy.all import * import threading 二、实现单ip扫描 1.获取c段ip地址 在ARP()里面有ip地址,我们可以从里面提取出前3段出来 ARP().show() 然后通过从后查找最后一个.得到最后一段位数,然后总长度-最后一段长度就能取出前3段 tip=ARP().psrc print(tip[:(len(tip)-tip[::-1].find('.'))]) 2.arp扫描函数实现 然后就是建立函数实现扫
2021-01-19 14:24:22
479
3
原创 python3 scoekt实现多线程交互式shell服务端
导入模块 import socket importsubprocess 将要监听的端口信息设置好 host='0.0.0.0' port=8081 首先实现一个命令执行函数,并将结果返回 def run_command(command): """执行命令""" command = command.rstrip() try: output = subprocess.check_output( command, stderr=su.
2021-01-18 17:59:16
359
5
Awd-php单页软waf
2021-01-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人