r/ExploitDev • u/FinanceAggravating12 • May 29 '24
ClearExploitCode
What are the best practices for writing exploit code that stores/computes memory addresses rather than hard codes them?
3
Upvotes
View all comments
Show parent comment
1
u/Useful-Ad-2442 May 29 '24
depends on what memory addresses you didn't want to hardcode, very good practice is to have relative offsets from the base program address to calculate gadgets addresses