What I am looking to do is programmatically analyze the contents of each processes heap on a system I control. I've been searching for an easily scriptable way to do this with either gdb, or volatility under Linux, and have found no commands that just do this. The purpose is to parse the results for various corruptions / inadvisable practices.
Do any exist? It seems like something a lot of people might use.
So far I think I would need to chain what I learned from https://unix.stackexchange.com/questions/73627/how-to-find-heap-memory-of-a-running-process (using /maps to find the heap address) with either volatility of GDB, but I am very surprised that there isn't a command that does this out of the box.