frida-clr icon indicating copy to clipboard operation
frida-clr copied to clipboard

Why does frida-clr depend on WPF?

Open daddycocoaman opened this issue 2 years ago • 2 comments

Hi,

I was just wondering why frida-clr depends on WPF libraries to use (namely System.Windows.Threading)? With the advancement of .NET/.NET Core over the years, is this still necessary? The use of Forms seems like more than what's required for normal Frida usage and it makes using things like Script.Post really unintuitive.

daddycocoaman avatar Sep 21 '22 23:09 daddycocoaman

I tried to remove the dependency, so far it seems to work. Feel free to try it https://github.com/hostar/frida-clr/tree/dispatcher-removed

(You need to somehow incorporate it to your local build manually.)

hostar avatar Jan 14 '23 13:01 hostar

But still it requires WPF dll (PresentationCore) in Process.hpp, Marshal.hpp, Device.hpp and by quickly looking at the usage, it is mainly required for ImageSource and for icons. I wonder if we can just return Bitmap in order to use in other frameworks, such as Avalonia

Edit: Yeah the dispatcher is in WPF dll

ekologic avatar Sep 23 '23 16:09 ekologic