反代理调试 WPF
Anti Proxy Debugging WPF
我知道一个 WPF 应用程序,每当我尝试打开任何代理调试工具时,例如Fiddler, Charles Proxy, Proxyman.io 等等...我明白了:
有谁知道如何在我的 WPF 应用程序中重新创建它。是否有第三方应用程序或 nuget 可以执行此操作。我知道我可以不断地寻找具有这些名称的文件,但有人可以重命名应用程序或使用另一个我不知道的文件。
首先想到的是定义设计模式并创建异常或更改其他行为。
请参阅 Is there a DesignMode property in WPF? 中的 DesignerProperties.GetIsInDesignMode 方法。
对于任何感兴趣的人,我确实找到了一个半解决方案。我的总体目标是阻止人们做 Man-in-the-middle attack with programs such as Fiddler and Charles which can decrypt HTTPS IF you accept their certificate on your device. I was able to achieve this using SSL Pinning, using the Public Key for the specific site certificate I wanted and comparing to whether it matches the one I have stored beforehand and during runtime. I won't post any code, as it can be found in a series of different Whosebug questions such as ,因为它没有直接回答我在上面发现的原始问题。虽然,我希望这个方法确实能帮助一些想知道如何解决这个问题的人。
我知道一个 WPF 应用程序,每当我尝试打开任何代理调试工具时,例如Fiddler, Charles Proxy, Proxyman.io 等等...我明白了:
有谁知道如何在我的 WPF 应用程序中重新创建它。是否有第三方应用程序或 nuget 可以执行此操作。我知道我可以不断地寻找具有这些名称的文件,但有人可以重命名应用程序或使用另一个我不知道的文件。
首先想到的是定义设计模式并创建异常或更改其他行为。 请参阅 Is there a DesignMode property in WPF? 中的 DesignerProperties.GetIsInDesignMode 方法。
对于任何感兴趣的人,我确实找到了一个半解决方案。我的总体目标是阻止人们做 Man-in-the-middle attack with programs such as Fiddler and Charles which can decrypt HTTPS IF you accept their certificate on your device. I was able to achieve this using SSL Pinning, using the Public Key for the specific site certificate I wanted and comparing to whether it matches the one I have stored beforehand and during runtime. I won't post any code, as it can be found in a series of different Whosebug questions such as