only read *.symbols file can search quicklier
when search the libc, only need read the "*.symbols" file to find
This commit is contained in:
parent
d8afd02c86
commit
1e27a32123
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue