mschiffm / cvrfparse Goto Github PK
View Code? Open in Web Editor NEWCVRF parsing/validation utility
License: MIT License
CVRF parsing/validation utility
License: MIT License
Hi,
I am running into a few errors when running with python 2.7.6 which is most certainly because the tool was developed using an earlier python version. Can you please share the version of python that was used to develop this tool?
More specifically, I am using Python 2.7.6. and I get the following error when I try to parse the cvrf elements:
./cvrfparse.py -f sample-xml/CVRF-1.1-cisco-sa-20110525-rvs4000.xml --vuln all
Traceback (most recent call last):
File "./cvrfparse.py", line 286, in <module>
main(progname)
File "./cvrfparse.py", line 281, in main
cvrf_dispatch(cvrf_doc, parsables, collate_vuln=args.collate_vuln, strip_ns=args.strip_ns)
File "./cvrfparse.py", line 151, in cvrf_dispatch
cvrf_dump(results, strip_ns)
File "./cvrfparse.py", line 130, in cvrf_dump
f = codecs.EncodedFile(sys.stdout, input="UTF-8")
TypeError: EncodedFile() got an unexpected keyword argument 'input'
cvrfparse.py: TypeError: EncodedFile() got an unexpected keyword argument 'input'
This can easily be fixed fixed by changing the keyword to 'data_encoding' (or having no keyword at all which would make the tool backwards compatible.).
I would be happy to create a pull request for this change.
Thanks,
Ahmad
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.