andreafioraldi / andreafioraldi/cve_searchsploit

Encoding error when opening files_Exploits.csv

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
177
Forks
50
PR merge metrics
No merged PRs in 30d

Description

I encountered an encoding error when opening the files_exploits.csv. When opening the current up-to-date csv from the ExploitDB Repo (Commit [cbe784b0 ](https://gitlab.com/exploit-database/exploitdb/-/commit/cbe784b08721bfff9f64fbf8ae7401b9a6261666) from 09.09.2023), I got an UnicodeDecodeError `'charmap' codec can't decode byte 0x9d in position 3767: character maps to `.

Solution was to change main.py, line 33 to
`with open(pdir + "/exploitdb/files_exploits.csv", encoding="utf8") as files:`

If the encoding variable was not left out intentionally, maybe add this to the repo? If it was left out intentionally, you can close the issue :)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.