View Single Post
  #1  
Old 08-31-2018, 15:47
TechLord TechLord is offline
Banned User
 
Join Date: Mar 2005
Location: 10 Steps Ahead of You
Posts: 761
Rept. Given: 384
Rept. Rcvd 247 Times in 112 Posts
Thanks Given: 789
Thanks Rcvd at 2,021 Times in 570 Posts
TechLord Reputation: 200-299 TechLord Reputation: 200-299 TechLord Reputation: 200-299
HexRaysAST Matcher - PoC of Modifying HexRays AST

This is simple PoC that allows you to define AST pattern you want to process and make some actions with them

Current code contains templates for:
  • Replacing inlined strlen called on global variable
  • Auto renaming globals in expressions like global_var = func(arg1, "newglobalname")
  • Auto renaming structure fields like glob_str.f0 = sub_cafebabe to glob_str.sub_cafebabe = sub_cafebabe


FULL REPO HERE:
Quote:
https://github.com/sibears/HRAST
Reply With Quote
The Following User Gave Reputation+1 to TechLord For This Useful Post:
progopis (09-08-2018)
The Following 3 Users Say Thank You to TechLord For This Useful Post:
Indigo (07-19-2019), Mendax47 (08-31-2018), p4r4d0x (08-31-2018)