{"id":7333,"date":"2020-06-07T19:43:07","date_gmt":"2020-06-07T19:43:07","guid":{"rendered":"http:\/\/www.hexacorn.com\/blog\/?p=7333"},"modified":"2020-06-07T19:45:01","modified_gmt":"2020-06-07T19:45:01","slug":"fridatrace-quick-dirty-api-monitor-part-2","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2020\/06\/07\/fridatrace-quick-dirty-api-monitor-part-2\/","title":{"rendered":"FridaTrace++ \u2013 quick &#038; dirty API monitor, Part 2"},"content":{"rendered":"\n<p>In my previous post I described <a href=\"https:\/\/www.hexacorn.com\/blog\/2020\/05\/31\/fridatrace-quick-dirty-api-monitor\/\">my first encounter<\/a> with Frida. Since then I slowly incorporate new ideas into the monitor, including:<\/p>\n\n\n\n<ul><li>object to object name resolution for APIs that rely on handles<\/li><li>data dumps of buffers for common APIs e.g. Read File, Write File<\/li><li>generating a list of all objects in a  separate file (kinda like list of possible IOCs.)<\/li><\/ul>\n\n\n\n<p>Adding this functionality is trivial and I am still perplexed that it can be so quick.<\/p>\n\n\n\n<p>Here&#8217;s a little demo of how this looks like &#8211; list of all files accessed via CreateFile when I launch Notepad:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2020\/06\/objectslist.png\"><img decoding=\"async\" loading=\"lazy\" width=\"792\" height=\"650\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2020\/06\/objectslist.png\" alt=\"\" class=\"wp-image-7334\" srcset=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2020\/06\/objectslist.png 792w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2020\/06\/objectslist-300x246.png 300w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2020\/06\/objectslist-768x630.png 768w\" sizes=\"(max-width: 792px) 100vw, 792px\" \/><\/a><\/figure>\n\n\n\n<p>and buffers intercepted when I opened Python NEWS file, typed &#8216;a&#8217; and saved it in Notepad:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"610\" height=\"228\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2020\/06\/buffers.png\" alt=\"\" class=\"wp-image-7335\" srcset=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2020\/06\/buffers.png 610w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2020\/06\/buffers-300x112.png 300w\" sizes=\"(max-width: 610px) 100vw, 610px\" \/><\/figure>\n\n\n\n<p>More to come&#8230; stay tuned \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my previous post I described my first encounter with Frida. Since then I slowly incorporate new ideas into the monitor, including: object to object name resolution for APIs that rely on handles data dumps of buffers for common APIs &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2020\/06\/07\/fridatrace-quick-dirty-api-monitor-part-2\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[28,92,9,41],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/7333"}],"collection":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/comments?post=7333"}],"version-history":[{"count":3,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/7333\/revisions"}],"predecessor-version":[{"id":7339,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/7333\/revisions\/7339"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=7333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=7333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=7333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}