Skip to content

Instantly share code, notes, and snippets.

@etataurov
Created January 27, 2016 18:00
Show Gist options
  • Save etataurov/87f77f3f4cfe33f37f51 to your computer and use it in GitHub Desktop.
Save etataurov/87f77f3f4cfe33f37f51 to your computer and use it in GitHub Desktop.
if answer["response_code"] == 1 : # if we got a regular result
pos = answer["positives"] # number of checks that consider this part as a virus
tot = answer["total"] # total number of checks
if answer["positives"] >1 : # if there is any positive
result = True # set the result to malware
resultStringLong += "# "+ filename+":"+ str(pos) + "/" + str(tot) + " " # result 'en detail'
else :
resultStringLong += "# clean:"+filename+" " # no result, most likely that means: not a virus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment