Skip to content

Commit

Permalink
send test file to virus total
Browse files Browse the repository at this point in the history
  • Loading branch information
syrk4web committed Feb 2, 2024
1 parent 5352f70 commit 5ac0911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virustotal/ui/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ <h5 class="mb-2 font-bold dark:text-white/90">TEST</h5>
new Blob([binary_content], { type: "text/plain" }),
"eicar.txt"
);
data.set("csrf_token", "{{ csrf_token() }}");

let xhr = new XMLHttpRequest();
xhr.open("POST", "{{ url_for('plugins') }}/clamav", true);
xrh.setRequestHeader("x-apikey", "{{ plugin['settings']['VIRUSTOTAL_API_KEY'] }}");
xhr.open("POST", " https://www.virustotal.com/api/v3/files", true);
xhr.send(data);

xhr.onload = function () {
Expand Down

0 comments on commit 5ac0911

Please sign in to comment.