Skip to content

Commit

Permalink
Add additional PE file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
m417z committed Jan 12, 2022
1 parent ddc5898 commit 9a80b43
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion data/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def update_readme_stats():
files_with_link = files_by_status['file'] + files_by_status['vt']
files_without_link = files_by_status['novt'] + files_by_status['none']

stats = f'Total amount of exe, dll and sys files: {files_total:,} \n'
stats = f'Total amount of supported PE files: {files_total:,} \n'
stats += f'Files with a download link: {files_with_link:,} ({files_by_status["file"]:,} from the actual files, {files_by_status["vt"]:,} from VirusTotal) \n'
stats += f'Files without a download link: {files_without_link:,} ({files_by_status["novt"]:,} weren\'t uploaded to VirusTotal, {files_by_status["none"]:,} weren\'t checked yet) \n'
stats += f'% of files with a download link: {100 * files_with_link / (files_with_link + files_without_link):.1f} \n'
Expand Down
4 changes: 1 addition & 3 deletions data/extract_data_from_iso_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,7 @@ def main(folder, windows_version, iso_sha256, release_date):
result_files.add(hashabledict(result_item))

name = filename.split('\\')[-1].lower()
if (name.endswith('.exe') or
name.endswith('.dll') or
name.endswith('.sys')):
if (re.search(r'\.(exe|dll|sys|winmd|cpl|ax|node|ocx|efi|acm|scr|com|tsp|drv)$', name)):
file_hashes.setdefault(name, set()).add(item['SHA256'].lower())

result = {
Expand Down
2 changes: 1 addition & 1 deletion data/info_sources.json

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions data/upd03_parse_manifests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from pathlib import Path
import base64
import json
import re

import config

Expand Down Expand Up @@ -54,9 +55,7 @@ def parse_manifest_file(file_el):

if algorithm == 'sha256':
filename = file_el.attrib['name'].split('\\')[-1].lower()
if (filename.endswith('.exe') or
filename.endswith('.dll') or
filename.endswith('.sys')):
if (re.search(r'\.(exe|dll|sys|winmd|cpl|ax|node|ocx|efi|acm|scr|com|tsp|drv)$', filename)):
file_hashes.setdefault(filename, set()).add(hash)

result = {
Expand Down
2 changes: 1 addition & 1 deletion winbindex.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ var globalFunctions = {};
sortable: false,
render: function (data) {
if (!data.timestamp || !data.virtualSize) {
if (/\.(exe|dll|sys)$/.test(fileToLoad)) {
if (/\.(exe|dll|sys|winmd|cpl|ax|node|ocx|efi|acm|scr|com|tsp|drv)$/.test(fileToLoad)) {
var msg = 'Download is not available since the file isn\'t available on VirusTotal';
} else {
var msg = 'Download is only available for executables such as exe, dll, and sys files';
Expand Down

0 comments on commit 9a80b43

Please sign in to comment.