diff --git a/LibcSearcher.py b/LibcSearcher.py index 341f29c..0896cce 100755 --- a/LibcSearcher.py +++ b/LibcSearcher.py @@ -47,9 +47,12 @@ def decided(self): for ff in files: fd = open(db + ff, "rb") data = fd.read().decode(errors='ignore').split("\n") + not_match = False for x in res: - if any(map(lambda line: x.match(line), data)): - result.append(ff) + if not any(map(lambda line: x.match(line), data)): + not_match = True + if not not_match: + result.append(ff) fd.close() if len(result) == 0: