K8Cscan for Python 1.0
功能:
1.默认扫描当前C段存活主机
2.调用K8Cscan插件扫描(限Windows)
PS: 有兴趣可自行修改完善其功能
Cscan所有插件功能请参考: https://www.cnblogs.com/k8gege/p/10519321.html
源码:
#Author: K8gege
#Date: 20190512
#.net framework >= 4.0
import platform
import socket
import os
import threading
import time
import sys
import clr
def netscan(ip):
clr.FindAssembly(‘netscan.dll’)
clr.AddReference(‘netscan’)
from CscanDLL import scan
print(scan.run(ip))
def Cscan(ip):
ipc = (ip.split(’.’)[:-1])
for i in range(1,256):
add = (’.’.join(ipc)+’.’+str(i))
threading._start_new_thread(net