Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output file issue - TypeError: 'newline' #30

Closed
A2-Dev opened this issue Jul 25, 2019 · 1 comment
Closed

output file issue - TypeError: 'newline' #30

A2-Dev opened this issue Jul 25, 2019 · 1 comment

Comments

@A2-Dev
Copy link

A2-Dev commented Jul 25, 2019

Let me thank you for your work in making this tool.
I checked closed and open issues and could not find anything related to the error i have, so i apologize if this has already been covered somewhere else.

Python2.7

Z:\disco>python wes.py sysinf.txt qfe.txt -e -o z:\disco\wesout.txt
Windows Exploit Suggester 0.96 ( https://github.com/bitsadmin/wesng/ )
[+] Parsing systeminfo output
[+] Parsing quick fix engineering (qfe) output
[+] Operating System
- Name: Windows 10 Version 1803 for x64-based Systems
- Generation: 10
- Build: 17134
- Version: 1803
- Architecture: x64-based
- Installed hotfixes (12): <removed>
[+] Loading definitions
- Creation date of definitions: 20190723
[+] Determining missing patches
[+] Applying display filters
[+] Found vulnerabilities
[+] Writing 5 results to z:\disco\wesout.txt
Traceback (most recent call last):
File "wes.py", line 776, in
main()
File "wes.py", line 208, in main
store_results(args.outputfile, filtered)
File "wes.py", line 648, in store_results
with open(outputfile, 'w', newline='') as f:
TypeError: 'newline' is an invalid keyword argument for this function`

I've also tried the same command with:

-o wesout.txt
-o .\wesout.txt

@bitsadmin
Copy link
Owner

Thanks A2-Dev, for your bugreport! This bug indeed hadn't been found yet.

I just fixed the issue in commit 47ff43c in the dev branch.

Download the latest wes.py from the dev branch and the issue will be resolved. Later I will merge the dev to the main branch. In case meanwhile you encounter any other issues, let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants