Skip to content

Commit 9a80b43

Browse files
committed
Add additional PE file extensions
1 parent ddc5898 commit 9a80b43

5 files changed

Lines changed: 6 additions & 9 deletions

File tree

data/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def update_readme_stats():
252252
files_with_link = files_by_status['file'] + files_by_status['vt']
253253
files_without_link = files_by_status['novt'] + files_by_status['none']
254254

255-
stats = f'Total amount of exe, dll and sys files: {files_total:,} \n'
255+
stats = f'Total amount of supported PE files: {files_total:,} \n'
256256
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'
257257
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'
258258
stats += f'% of files with a download link: {100 * files_with_link / (files_with_link + files_without_link):.1f} \n'

data/extract_data_from_iso_files.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,7 @@ def main(folder, windows_version, iso_sha256, release_date):
251251
result_files.add(hashabledict(result_item))
252252

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

259257
result = {

data/info_sources.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

data/upd03_parse_manifests.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from pathlib import Path
33
import base64
44
import json
5+
import re
56

67
import config
78

@@ -54,9 +55,7 @@ def parse_manifest_file(file_el):
5455

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

6261
result = {

winbindex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ var globalFunctions = {};
363363
sortable: false,
364364
render: function (data) {
365365
if (!data.timestamp || !data.virtualSize) {
366-
if (/\.(exe|dll|sys)$/.test(fileToLoad)) {
366+
if (/\.(exe|dll|sys|winmd|cpl|ax|node|ocx|efi|acm|scr|com|tsp|drv)$/.test(fileToLoad)) {
367367
var msg = 'Download is not available since the file isn\'t available on VirusTotal';
368368
} else {
369369
var msg = 'Download is only available for executables such as exe, dll, and sys files';

0 commit comments

Comments
 (0)