Skip to content

Addition of example plugin for library call detection and counting.#79

Open
joshualant wants to merge 5 commits intobeehive-lab:masterfrom
joshualant:master
Open

Addition of example plugin for library call detection and counting.#79
joshualant wants to merge 5 commits intobeehive-lab:masterfrom
joshualant:master

Conversation

@joshualant
Copy link
Copy Markdown

The pull request is for adding an example plugin, showing how you might begin to create an ltrace type tool using MAMBO. It uses libelf to scan the PLT of the application and adds them to a list, checking the untranslated address against the PLT entry. Instructions are added to increment counters in this list when these addresses are hit pre-basic-block. Also contains a placeholder function for scanning the mapped libraries once main is reached, which could be used in order to parse the PLT of the libraries and show library calls within the libraries themselves.

…imes they are called with one level of depth in an application.
…ded mambo_calloc function to plugin_support.c which uses simple memset() to initialize mambo_alloc'd memory to zero. Unsure if this is an acceptably performant solution or not...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant