|
|
@ -124,11 +124,12 @@ class SignatureDB(object): |
|
|
|
if text_sigs: |
|
|
|
if text_sigs: |
|
|
|
return [t[0] for t in text_sigs] |
|
|
|
return [t[0] for t in text_sigs] |
|
|
|
|
|
|
|
|
|
|
|
# otherwise try the online lookup if we're allowed to |
|
|
|
# abort if we're not allowed to check 4byte or we already missed |
|
|
|
if not ( |
|
|
|
# the signature, or we're on a timeout |
|
|
|
self.enable_online_lookup |
|
|
|
if ( |
|
|
|
and byte_sig not in self.online_lookup_miss |
|
|
|
not self.enable_online_lookup |
|
|
|
and time.time() > self.online_lookup_timeout, |
|
|
|
or byte_sig in self.online_lookup_miss |
|
|
|
|
|
|
|
or time.time() < self.online_lookup_timeout, |
|
|
|
): |
|
|
|
): |
|
|
|
return [] |
|
|
|
return [] |
|
|
|
|
|
|
|
|
|
|
|