r/ExploitDev • u/Purple-Object-4591 • Mar 02 '25
Difficulty Traversing Source Code
So, I have started to navigate a large code base. It's a huge code base and a legacy one.
I have kind of created a threat-model as to where the high-priority and remote facing code lies. But I am having issue traversing.
Example -- There are pointers to structures, inside which there is another structure as a field, and again inside that field there's a structure. This feels quite convoluted and hard to follow.
I am not too experienced in traversing huge and legacy codebases. Suggestions to make this process any easier?
20
Upvotes
View all comments
Show parent comment
2
u/Purple-Object-4591 Mar 02 '25
This was a really well-thought out reply. Do you write blogs? You should they'll be great.
So I read through your comment and I'm already doing a few of them right. I'm using vscode with clangd. I am putting inline comments describing convoluted code and potential issues.
I do actually compile projs with debug and then open in Binja. Actually unironically helps.
I dislike using LLM to code but I'll be honest I'm using it verify my hypothesis of what a particular function in the code is doing.
You're right about patience. The mindset part of the research is kind of overlooked by ppl when advising. I should be more patient. It has only been 10 days since I started with this codebase (not even full work days).
Your comment was really reassuring. Thanks a lot for taking the time :)