Giter Club home page Giter Club logo

assetscan's Issues

漏洞探测时发生报错

是否进行风险端口漏洞探测~
(1)探测风险端口

任意键退出程序,并生成当前进度报告~

请选择是否进行漏洞探测->1
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/nmap/nmap.py", line 322, in analyse_nmap_xml_scan
dom = ET.fromstring(self._nmap_last_output)
File "/usr/local/Cellar/[email protected]/3.9.0_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/xml/etree/ElementTree.py", line 1348, in XML
return parser.close()
xml.etree.ElementTree.ParseError: no element found: line 9, column 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/Clear/AssetScan/AssetScan.py", line 177, in
father(iplist)
File "/Users/Clear/AssetScan/AssetScan.py", line 109, in father
vullist = p21(portdic)+p23(portdic)+p22(portdic)+p80(portdic)+p110(portdic)+p143(portdic)+p443(portdic)+p445(portdic)+p873(portdic)+p1433(portdic)+p3306(portdic)+p6379(portdic)+p8080(portdic)+p9200(portdic)+p11211(portdic)+p27017(portdic)+p1521(portdic)+p2601(portdic)+vulnall(portdic)+p4848(portdic)+p2181(portdic)+p389(portdic)+p5432(portdic)+p3389(portdic)+poolmana(portdic)
File "/Users/Clear/AssetScan/vuln/vuln445.py", line 18, in p445
p445list.append(do_nmap(ip[0]))
File "/Users/Clear/AssetScan/vuln/vuln445.py", line 23, in do_nmap
a = nm.scan(hosts=host_list, arguments='-Pn -sC -p 445 -max-hostgroup 3 -open -script smb-vuln-ms17-010.nse,smb-vuln-ms08-067.nse')
File "/usr/local/lib/python3.9/site-packages/nmap/nmap.py", line 262, in scan
return self.analyse_nmap_xml_scan(
File "/usr/local/lib/python3.9/site-packages/nmap/nmap.py", line 325, in analyse_nmap_xml_scan
raise PortScannerError(nmap_err)
nmap.nmap.PortScannerError: 'Assertion failed: (res > 7), function nsock_library_initialize, file nsock_pool.c, line 307.\n'

扫描不work

sevck@MacBook-Pro  ~/git-project/AssetScan   master  python3 AssetScan.py -i 114.55.253.62
_ _ ____
/ \ ___ ___ | |/ | ___ __ _ _ __
/ _ \ / / |/ _ \ _ \ / / ` | '
/ ___ \
_
\ / | ) | (| (| | | | |
/
/ __
/
/_
|_
|
/ ____,|| |_|

			Power by JE2Se   V1.2

~请输入 -h 获取命令帮助~

正在对目标地址进行存活检测~~
_ _ ____
/ \ ___ ___ | |/ | ___ __ _ _ __
/ _ \ / / |/ _ \ _ \ / / ` | '
/ ___ \
_
\ / | ) | (| (| | | | |
/
/ __
/
/_
|_
|
/ ____,|| |_|

请选择存活探测的方式~
(1)Ping探测~(适用于内网内没有禁用Ping)
(2)ARP探测~(适用于内网内禁用Pin探测,不能跨网段)

任意键退出程序~

请选择探测存活方式->1
存活地址已成功写入alive.txt中

_                 _   ____

/ \ ___ ___ | |/ | ___ __ _ _ __
/ _ \ / / |/ _ \ _ \ / / ` | '
/ ___ \
_
\ / | ) | (| (| | | | |
/
/ __
/
/_
|_
|
/ ____,|| |_|

请选择端口扫描的方式~
(1)风险端口探测 (Socket方式,适用于少IP)
(2)风险端口探测 (Masscan方式,适用于多IP)
(3)常规端口探测 (Nmap方式,Nmap的top1000端口)
(4)全端口探测 (Socket方式,适用于少IP,准确率高)
(5)全端口探测 (Masscan方式,适用于多IP,存在误报率)

任意键退出程序,并生成当前进度报告~

请填写扫描方式->3
正在目标常用端口进行探测扫描~~

_                 _   ____

/ \ ___ ___ | |/ | ___ __ _ _ __
/ _ \ / / |/ _ \ _ \ / / ` | '
/ ___ \
_
\ / | ) | (| (| | | | |
/
/ __
/
/_
|_
|
/ ____,|| |_|

是否进行风险端口漏洞探测~
(1)探测风险端口

任意键退出程序,并生成当前进度报告~

请选择是否进行漏洞探测->1
正在生成报告~
生成报告成功~
报告地址:./report/AssetScan_201912416494.docx
扫描结束~
sevck@MacBook-Pro  ~/git-project/AssetScan   master 

扫描器在扫描自定义网段时,存在i/o上的错误

python3 AssetScan.py -i 192.168.0.1-192.168.0.255

Traceback (most recent call last):
File "AssetScan.py", line 177, in
father(iplist)
File "AssetScan.py", line 80, in father
scancase = input(Vcolors.YELLOW+u"请填写扫描方式->"+Vcolors.ENDC)
ValueError: I/O operation on closed file.
QQ20191219-090244

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.