LibcSearcher-ng is an API for querying , which is a lot more convenient since the online version of Libc Database is alawys up to date.
Installing via pip:
pip3 install LibcSearcher
Usage:
from LibcSearcher import *
# Query a function name together with its address
obj = LibcSearcher("fgets", 0x7ff39014bd90)
# Add another constraint
obj.add_condition("atoi", 218528)
# Get the address of the target function in libc
obj.dump("printf")
New features:
# Return # of possible libc's
len(obj)
# Print info
print(obj)
# Print all possible libc's
for libc in obj :
print(libc)
# Print all possible libc's and let the user choose
obj.select_libc()
# Assign the 2nd libc as the correct libc
obj.select_libc(2)