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