Update virustotal.js

This commit is contained in:
Namhyeon Go 2023-06-21 16:41:32 +09:00 committed by GitHub
parent c9b5cc7227
commit ae2f87962e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,15 +7,16 @@ var Chrome = require("lib/chrome");
var RAND = require("lib/rand"); var RAND = require("lib/rand");
function getHashes() { function getHashes() {
var lines = []; var rows = [];
var rows = splitLn(FILE.readFile("data\\hashes.txt", "utf-8")); var lines = splitLn(FILE.readFile("data\\hashes.txt", "utf-8"));
for (var i = 0; i < rows.length; i++) { for (var i = 0; i < lines.length; i++) {
var row = rows[i].split(','); var row = lines[i].split(',');
if (row.length == 2) lines.push(row); if (row.length == 2) rows.push(row);
if (row.length == 1) rows.push(['', row[0]]);
} }
return lines; return rows;
} }
function main(args) { function main(args) {