northernsec / cve-scan Goto Github PK
View Code? Open in Web Editor NEWScan systems with NMap and parse the output to a list of CVE's, CWE's and DPE's
License: BSD 4-Clause "Original" or "Old" License
Scan systems with NMap and parse the output to a list of CVE's, CWE's and DPE's
License: BSD 4-Clause "Original" or "Old" License
I hit the following error while running analyzer, here is the running script. any ideas?
su@ubuntu:~/CVE-Scan/bin$ python3 analyzer.py -h
usage: analyzer.py [-h] [-j json] [-x xml] output
Read input from NMap and use the information from cve-search to find potential
vulnerabilities in the recognized systems and their services
positional arguments:
output Output file
optional arguments:
-h, --help show this help message and exit
-j json Read Json file in Nmap2CVE format
-x xml Read NMap XML file
su@ubuntu:/CVE-Scan/bin$ python3 analyzer.py -x output.xml out/CVE-Scan/bin$
Traceback (most recent call last):
File "analyzer.py", line 64, in
if not args.xN and not args.jN and not args.sN: sys.exit("No input selected!")
AttributeError: 'Namespace' object has no attribute 'xN'
su@ubuntu:
thanks,
I get a Dependencies missing!
error when running the visualizer.
Seems to be caused by from lib.PDFParser import pdfify
⇒ uname -a
Darwin foo.local 15.3.0 Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64
⇒ python3 --version
Python 3.5.1
I first run "nmap -A -O 192.168.0.1 -oX output.xml" and then run "python3 Nmap2CVE-Search.py -xN output.xml" by following the instructions. However, it hangs there like forever
su@ubuntu:~/devstack/CVE-Scan/bin$ python3 Nmap2CVE-Search.py -xN output.xml
I then ctrl+c to terminate the process. However, I could not find any report generated. Should I do something to obtain the report?
Thanks,
Su
Hi,
looks like that cve-search configuration in the configuration.ini file is ignored.
roy@ubuntu:/Desktop/CVE-Scan-master/bin$ python3 Nmap2CVE-Search.py -xN test2.xml/Desktop/CVE-Scan-master/bin$ more ../etc/configuration.ini
Could not connect to the CVE-Search API on localhost:5000
roy@ubuntu:
[Webserver]
Host: 127.0.0.1
Port: 5050
Debug: True
[CVE-Search]
cve-searchHost: cve.circl.lu
cve-searchPort: 80
I've changed the default host in the Config.py file but I get "Could not connect to the CVE-Search API on cve.circl.lu:80"
The API is accessible from the same machine using CURL.
roy@ubuntu:/Desktop/CVE-Scan-master/bin$ python3 Nmap2CVE-Search.py -xN test2.xml/Desktop/CVE-Scan-master/bin$ curl http://cve.circl.lu/api/search/microsoft/office | more
Could not connect to the CVE-Search API on cve.circl.lu:80
roy@ubuntu:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 823k 0 3776 0 0 2875 0 0:04:53 0:00:01 0:04:52 2878[{"summary": "Microsoft Office 2007 SP3, Office for Mac 2011, Office for Mac 2016, and Word Viewer allow remote attackers to [..]
could you please let me know if i'm missing anything ?
Thanks,
python3.3 is not provided, so doesnt pip3.
anyway to automate the installation of dependencies ?
Hi,
thanks for providing this software and I really like its functionality. I realized that by default the scan report can be found on a web server on port 5050. This is suitable if the report consumer is a person. However, we want to utilize some policies to automate the patch management. Therefore we need a machine-readable report (e.g. xml formated). I could not find such info through README. Could someone please let me know what is the most convenient way to generate such report? if there is no such function yet, could someone let me know which class in the code gathered all report data before present them into web? In that case I can try to see if we can convert the report format there.
Thanks a lot in advance!
Su Zhang
Hello,
It seems like that I need to specify url and port for cve-search service within /etc/configuration.ini file. However, it appears to me that cve-search is only used to search through "./search.py". Is there a way to make cve-search as a constant process with a port open therefore the request from cve-scan can be received?
thanks,
Su
Possible weasyprint is missing in requirements.txt
needed from
PDFParser.py
(...from weasyprint)
I want to install a very light client at the target machine and handoff other tasks as much as I can to another server. I am just wondering can I first nmap scan the target machine and then send its report to another server? On the other server I then run Nmap2CVE-Search.py to obtain the vulnerability report of the initial target VM? Or Nmap2CVE-Search.py must be run within the target machine?
Thanks,
Could not connect to the CVE-Search API on cve.circl.lu:443
add:
parser.add_argument('-p', metavar='location', help='Parse to PDF to location')
I have this error message :
<urlopen error [Errno 101] Network is unreachable>
Any suggestion?
when i try Nmap2CVE-Search.py output.xml
Traceback (most recent call last):
File "Nmap2CVE-Search.py", line 20, in
from lib.Config import Configuration
ImportError: No module named Config
Hi,
Thanks for the great work. Looks like your website is not up. In order to support open source community, I would love to offer you our hosting so that we can make it live and don't let your precious work go. This way the community can benefit.
Thanks
root@ubuntu:/test/CVE-Scan/bin# python3.8 Nmap2CVE-Search.py output.xml
'list' object has no attribute 'get'
Couldn't fetch the info for cpe:/o:linux:linux_kernel:2.6.32
'list' object has no attribute 'get'
Couldn't fetch the info for cpe:/a:pureftpd:pure-ftpd
HTTP Error 404: NOT FOUND
HTTP Error 404: NOT FOUND
when run analyzer.py
When I run this command
sudo python3 bin/analyzer.py -x my.xml my.json
DPE might not be relevant if the DPE list does not cointain default passwords for services, or NMap scan does not detect specific systems.
However, if in the future we add a format that has CPE's for those, this will be very relevant.
See if there are feeds for metasploit modules based on CVE's or CPE's
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.