Merge pull request #10 from Inv0k3r/master

only read *.symbols file can search quicklier
This commit is contained in:
Yue Liu 2019-05-27 22:22:41 +08:00 committed by GitHub
commit 3448c8016f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -38,9 +38,11 @@ class LibcSearcher(object):
db = self.libc_database_path
files = []
# only read "*.symbols" file to find
for _, _, f in os.walk(db):
files += f
for i in f:
files += re.findall('^.*symbols$', i)
result = []
for ff in files:
fd = open(db + ff, "rb")