Rating:
DynELF from pwntools will tries to read build id from libc binary, and search it in some database with millions libc binary. And pwntools found it!
DynELF
)Notice that put "/bin/sh\0"
on the stack may not work, becase system(stack_buffer_bin_sh)
may use the same stack space where the "/bin/sh\0" is.