io-no / libdebug

libdebug is a python library to automate the debugging of a binary executable.
Other
1 stars 1 forks source link

Pipe Management #1

Closed io-no closed 11 months ago

io-no commented 1 year ago

When the run method of Debugger is used repeatedly in, for example, a bruteforce, the error "too many files open" is encountered. It is hypothesized that this is due to incorrect management of the stdin and stdout PIPEs. The run uses os.execv(path, args) so it is necessary to test and verify if that is the problem. Furthermore, since it is necessary to manage the PIPEs, functions similar to recv and sendline should be implemented to interact directly with the binary.

MrIndeciso commented 1 year ago

image Con questo non viene throwato l'errore, quindi il problema sta proprio in run

MrIndeciso commented 1 year ago

Commit 21b833e9738e6fa690452a8e29c1ae033ce2a55e might have solved this issue, as a side-effect of correctly managing the spawned process on shutdown()

io-no commented 1 year ago

Commit 25688c5417a5035e08a0b04c12cba8fd1e6f6024 includes a first implementation of the following functions:

Working for interactive

io-no commented 11 months ago

Everything should work after the commit d4b27deab3ec91df5ba1faa39ee058ea5c4a8ddc