├── mwp-ver.txt ├── assets ├── after.png └── disallow.png ├── src ├── MalwarePatch │ ├── Ace.dll │ ├── MalwarePatch.ico │ ├── Certificates │ │ ├── 2345.cer │ │ ├── 360.cer │ │ ├── 6789.cer │ │ ├── kuwo.cer │ │ ├── pptv.cer │ │ ├── qiyi.cer │ │ ├── sohu.cer │ │ ├── yy.cer │ │ ├── 360 sd.cer │ │ ├── baidu.cer │ │ ├── kugou.cer │ │ ├── leshi.cer │ │ ├── pplive.cer │ │ ├── rising.cer │ │ ├── sogou.cer │ │ ├── taobao.cer │ │ ├── youku.cer │ │ ├── yy 256.cer │ │ ├── 2345 256.cer │ │ ├── 360 256.cer │ │ ├── 6789 256.cer │ │ ├── 7654 note.cer │ │ ├── baidusp.cer │ │ ├── baofeng.cer │ │ ├── funshion.cer │ │ ├── kingsoft.cer │ │ ├── kuaizip.cer │ │ ├── leshi 256.cer │ │ ├── netease.cer │ │ ├── pptv 256.cer │ │ ├── qiyi 256.cer │ │ ├── ruanmei.cer │ │ ├── sogou 256.cer │ │ ├── tencent.cer │ │ ├── thunder.cer │ │ ├── youku 256.cer │ │ ├── yy 2020.1.cer │ │ ├── 2345 2019.6.cer │ │ ├── baofeng 256.cer │ │ ├── kingsoft ws.cer │ │ ├── kuaizip 256.cer │ │ ├── netease 256.cer │ │ ├── pplive 256.cer │ │ ├── pptv 2019.1.cer │ │ ├── rising 256.cer │ │ ├── riyue (at).cer │ │ ├── ruanmei 256.cer │ │ ├── taobao 256.cer │ │ ├── tencent 256.cer │ │ ├── thunder 256.cer │ │ ├── yy 2018.12.cer │ │ ├── yy browser.cer │ │ ├── 2345 browser.cer │ │ ├── 7654 note 256.cer │ │ ├── baidu browser.cer │ │ ├── baidu download.cer │ │ ├── baidu netdisk.cer │ │ ├── driveTheLife.cer │ │ ├── kingsoft 256.cer │ │ ├── kingsoft wps.cer │ │ ├── kugou 2021.08.cer │ │ ├── kugou 2022.01.cer │ │ ├── kugou 2024.02.cer │ │ ├── kuwo 2020.02.cer │ │ ├── netease youdao.cer │ │ ├── pptv 2022.07.cer │ │ ├── pptv 2023.08.cer │ │ ├── qiyi 2020.02.cer │ │ ├── rising 2018.9.cer │ │ ├── rising 2019.8.cer │ │ ├── rising 2022.07.cer │ │ ├── riyue (at) 256.cer │ │ ├── shaji 2022.04.cer │ │ ├── sogou 2019.10.cer │ │ ├── sogou 2019.8.cer │ │ ├── sogou 2020.10.cer │ │ ├── sogou 2021.08.cer │ │ ├── sohu 2018.12.cer │ │ ├── sohu 2021.04.cer │ │ ├── sohu 2021.06.cer │ │ ├── sohu 2024.06.cer │ │ ├── thunder 2018.9.cer │ │ ├── thunder 2020.1.cer │ │ ├── thunder accel.cer │ │ ├── thunder game.cer │ │ ├── thunder player.cer │ │ ├── xingcheng (at).cer │ │ ├── youku 2018.8.cer │ │ ├── yy 256.2018.12.cer │ │ ├── yy 256.2020.1.cer │ │ ├── yy 256.2021.02.cer │ │ ├── yy 256.2022.04.cer │ │ ├── yy 256.2023.02.cer │ │ ├── yy 256.2023.08.cer │ │ ├── yy 256.2024.06.cer │ │ ├── 2345 256.2019.6.cer │ │ ├── 2345 browser 256.cer │ │ ├── 6789 256.2019.4.cer │ │ ├── baofeng 2020.10.cer │ │ ├── baofeng 2022.01.cer │ │ ├── baofeng 2023.02.cer │ │ ├── donfang toutiao.cer │ │ ├── driveTheLife 256.cer │ │ ├── higeshi 2022.04.cer │ │ ├── huya 256.2022.04.cer │ │ ├── kingsoft 2019.6.cer │ │ ├── kingsoft 2020.02.cer │ │ ├── kingsoft 2020.06.cer │ │ ├── kingsoft 2022.01.cer │ │ ├── kingsoft 2024.10.cer │ │ ├── kingsoft browser.cer │ │ ├── kingsoft wps 256.cer │ │ ├── kuwo 256.2020.02.cer │ │ ├── kuwo 256.2023.08.cer │ │ ├── pptv 256.2019.1.cer │ │ ├── pptv 256.2022.07.cer │ │ ├── pptv 256.2023.08.cer │ │ ├── qiyi 256.2020.02.cer │ │ ├── qiyi 256.2021.02.cer │ │ ├── qiyi 256.2023.08.cer │ │ ├── sogou 256.2019.8.cer │ │ ├── sohu 256.2024.06.cer │ │ ├── tencent 2018.11.cer │ │ ├── tencent 2020.02.cer │ │ ├── tencent 2021.02.cer │ │ ├── thunder game 256.cer │ │ ├── youku 256.2018.8.cer │ │ ├── yunbiao 2022.04.cer │ │ ├── 360 browser 2018.11.cer │ │ ├── 360 browser 2020.02.cer │ │ ├── 360 browser 2021.08.cer │ │ ├── 360 browser 2022.01.cer │ │ ├── 360 ludashi 2022.04.cer │ │ ├── 7654 note 2019.10.cer │ │ ├── 7654 note 2021.10.cer │ │ ├── aliwangwang 2018.8.cer │ │ ├── aogewei 256.2022.04.cer │ │ ├── baidu netdisk 256.cer │ │ ├── donfang toutiao 256.cer │ │ ├── driveTheLife 2019.6.cer │ │ ├── fengqi (at) 2022.01.cer │ │ ├── higeshi 256.2022.04.cer │ │ ├── kingsoft 256.2019.6.cer │ │ ├── kugou 256.2021.08.cer │ │ ├── kugou 256.2022.01.cer │ │ ├── kugou 256.2024.02.cer │ │ ├── qidian 256.2023.02.cer │ │ ├── rising 256.2018.9.cer │ │ ├── rising 256.2019.8.cer │ │ ├── rising 256.2022.07.cer │ │ ├── ruanmei 256.2019.1.cer │ │ ├── shabake 256.2021.10.cer │ │ ├── shaji 256.2022.04.cer │ │ ├── sogou 256.2019.10.cer │ │ ├── sogou 256.2020.10.cer │ │ ├── sogou 256.2021.08.cer │ │ ├── sogou 256.2021.10.cer │ │ ├── sogou 256.2024.10.cer │ │ ├── tencent 256.2018.11.cer │ │ ├── tencent 256.2020.02.cer │ │ ├── tencent 256.2021.02.cer │ │ ├── tencent 256.2024.02.cer │ │ ├── tencent 256.2024.10.cer │ │ ├── thunder 256.2018.9.cer │ │ ├── thunder 256.2020.1.cer │ │ ├── thunder 256.2023.02.cer │ │ ├── thunder accel 256.cer │ │ ├── thunder player 256.cer │ │ ├── xingcheng (at) 256.cer │ │ ├── xundu 256.2022.04.cer │ │ ├── yunbiao 256.2022.04.cer │ │ ├── 2345 browser 2020.06.cer │ │ ├── 2345 browser 2020.10.cer │ │ ├── 2345 browser 2023.08.cer │ │ ├── 360 wallpaper 2020.02.cer │ │ ├── 360 wallpaper 2022.01.cer │ │ ├── 7654 note 256.2019.10.cer │ │ ├── 7654 note 256.2021.10.cer │ │ ├── baidu netdisk 2024.05.cer │ │ ├── baishengtong 2022.04.cer │ │ ├── baishengtong 2023.08.cer │ │ ├── driveTheLife 2020.06.cer │ │ ├── kingsoft 256.2020.02.cer │ │ ├── kingsoft 256.2020.06.cer │ │ ├── kingsoft 256.2021.06.cer │ │ ├── kingsoft 256.2022.01.cer │ │ ├── kingsoft 256.2022.07.cer │ │ ├── kingsoft 256.2024.06.cer │ │ ├── kingsoft 256.2024.10.cer │ │ ├── kingsoft browser 256.cer │ │ ├── thunder game.2018.7.8.cer │ │ ├── windsoul 256.2024.06.cer │ │ ├── 2345 browser 256.2020.06.cer │ │ ├── 2345 browser 256.2020.10.cer │ │ ├── 2345 browser 256.2023.08.cer │ │ ├── 360 browser 256.2018.11.cer │ │ ├── 360 browser 256.2020.02.cer │ │ ├── 360 browser 256.2022.04.cer │ │ ├── 360 browser 256.2023.08.cer │ │ ├── 360 ludashi 256.2022.04.cer │ │ ├── aliwangwang 256.2018.8.cer │ │ ├── baidu browser.2018.7.8.cer │ │ ├── baishengtong 256.2022.04.cer │ │ ├── baishengtong 256.2023.08.cer │ │ ├── donfang toutiao 2020.1.cer │ │ ├── driveTheLife 256.2019.6.cer │ │ ├── driveTheLife 256.2020.06.cer │ │ ├── driveTheLife 256.2023.08.cer │ │ ├── driveTheLife 256.2024.10.cer │ │ ├── fengqi (at) 256.2022.01.cer │ │ ├── thunder player 2018.12.cer │ │ ├── tuling times 256.2022.04.cer │ │ ├── 360 wallpaper 256.2020.02.cer │ │ ├── 360 wallpaper 256.2022.01.cer │ │ ├── baidu browser 256.2018.7.8.cer │ │ ├── baidu netdisk 256.2024.05.cer │ │ ├── donfang toutiao 256.2020.1.cer │ │ ├── thunder game 256.2018.7.8.cer │ │ ├── thunder player 256.2018.12.cer │ │ ├── grid verse (format factory).cer │ │ ├── kingsoft browser 256.2021.06.cer │ │ ├── tingfengyu (at) 256.2022.04.cer │ │ ├── grid verse (format factory) 256.cer │ │ ├── zhongcheng (flash cn) 256.2022.01.cer │ │ ├── grid verse (format factory) 2018.12.cer │ │ ├── grid verse (format factory) 2020.02.cer │ │ ├── grid verse (format factory) 256.2020.02.cer │ │ ├── grid verse (format factory) 256.2020.08.cer │ │ ├── grid verse (format factory) 256.2022.07.cer │ │ └── @Target.txt │ ├── BuildTools │ │ └── InsertIcons.exe │ ├── AppIcons │ │ ├── 02-allow-small.ico │ │ └── 01-disallow-small.ico │ ├── App.config │ ├── Properties │ │ ├── Settings.settings │ │ ├── Settings.cs │ │ ├── Settings.Designer.cs │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── app.manifest │ │ └── Resources.resx │ ├── Models │ │ ├── BuildConfig.cs │ │ ├── Certificates.cs │ │ ├── VersionChecker.cs │ │ ├── CertificateAdapter.cs │ │ ├── UIElementToImageConverter.cs │ │ ├── BuiltInCertificates.cs │ │ ├── UserCertificate.cs │ │ └── Updater.cs │ ├── UpdateID.txt │ ├── Commands │ │ ├── DirectCommand.cs │ │ ├── BatchCheckCommand.cs │ │ ├── UserCertificateCommand.cs │ │ └── SaveChangesCommand.cs │ ├── Windows │ │ ├── Main │ │ │ ├── MainWindow.xaml.cs │ │ │ ├── MainViewModel.Commands.cs │ │ │ └── MainViewModel.cs │ │ ├── CheckWindow.xaml.cs │ │ ├── DialogWindow.xaml.cs │ │ ├── Update │ │ │ ├── UpdateWindow.xaml.cs │ │ │ ├── UpdateViewModel.Commands.cs │ │ │ └── UpdateViewModel.cs │ │ ├── CheckWindow.xaml │ │ └── DialogWindow.xaml │ ├── AppJumpList.cs │ ├── App.xaml │ ├── CliTools │ │ ├── UserCertificateCli.cs │ │ ├── SilentUpdater.cs │ │ └── MalwareChecker.cs │ ├── App.xaml.cs │ ├── Languages │ │ ├── UserCertificateLanguage.cs │ │ ├── MainLanguage.cs │ │ └── UpdateLanguage.cs │ ├── Assets │ │ ├── display-names.json │ │ ├── Icons.UserCertificates.xaml │ │ ├── Icons.xaml │ │ ├── malware-remote-info.json │ │ └── certificate-map.json │ └── Styles │ │ ├── LightScrollViewer.xaml │ │ └── LightButton.xaml └── MalwarePatch.sln ├── README.md ├── LICENSE ├── README.en-US.md ├── .gitattributes └── .gitignore /mwp-ver.txt: -------------------------------------------------------------------------------- 1 | 2.18.0.0 -------------------------------------------------------------------------------- /assets/after.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/assets/after.png -------------------------------------------------------------------------------- /assets/disallow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/assets/disallow.png -------------------------------------------------------------------------------- /src/MalwarePatch/Ace.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Ace.dll -------------------------------------------------------------------------------- /src/MalwarePatch/MalwarePatch.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/MalwarePatch.ico -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/2345.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/2345.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/360.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/360.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/6789.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/6789.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kuwo.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kuwo.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/pptv.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/pptv.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/qiyi.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/qiyi.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/sohu.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/sohu.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/yy.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/yy.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/360 sd.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/360 sd.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baidu.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baidu.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kugou.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kugou.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/leshi.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/leshi.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/pplive.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/pplive.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/rising.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/rising.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/sogou.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/sogou.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/taobao.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/taobao.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/youku.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/youku.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/yy 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/yy 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/BuildTools/InsertIcons.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/BuildTools/InsertIcons.exe -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/2345 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/2345 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/360 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/360 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/6789 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/6789 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/7654 note.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/7654 note.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baidusp.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baidusp.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baofeng.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baofeng.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/funshion.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/funshion.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kuaizip.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kuaizip.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/leshi 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/leshi 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/netease.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/netease.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/pptv 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/pptv 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/qiyi 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/qiyi 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/ruanmei.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/ruanmei.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/sogou 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/sogou 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/tencent.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/tencent.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/thunder.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/thunder.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/youku 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/youku 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/yy 2020.1.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/yy 2020.1.cer -------------------------------------------------------------------------------- /src/MalwarePatch/AppIcons/02-allow-small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/AppIcons/02-allow-small.ico -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/2345 2019.6.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/2345 2019.6.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baofeng 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baofeng 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft ws.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft ws.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kuaizip 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kuaizip 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/netease 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/netease 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/pplive 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/pplive 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/pptv 2019.1.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/pptv 2019.1.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/rising 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/rising 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/riyue (at).cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/riyue (at).cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/ruanmei 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/ruanmei 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/taobao 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/taobao 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/tencent 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/tencent 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/thunder 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/thunder 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/yy 2018.12.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/yy 2018.12.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/yy browser.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/yy browser.cer -------------------------------------------------------------------------------- /src/MalwarePatch/AppIcons/01-disallow-small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/AppIcons/01-disallow-small.ico -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/2345 browser.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/2345 browser.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/7654 note 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/7654 note 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baidu browser.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baidu browser.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baidu download.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baidu download.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baidu netdisk.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baidu netdisk.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/driveTheLife.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/driveTheLife.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft wps.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft wps.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kugou 2021.08.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kugou 2021.08.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kugou 2022.01.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kugou 2022.01.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kugou 2024.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kugou 2024.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kuwo 2020.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kuwo 2020.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/netease youdao.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/netease youdao.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/pptv 2022.07.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/pptv 2022.07.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/pptv 2023.08.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/pptv 2023.08.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/qiyi 2020.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/qiyi 2020.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/rising 2018.9.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/rising 2018.9.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/rising 2019.8.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/rising 2019.8.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/rising 2022.07.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/rising 2022.07.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/riyue (at) 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/riyue (at) 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/shaji 2022.04.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/shaji 2022.04.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/sogou 2019.10.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/sogou 2019.10.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/sogou 2019.8.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/sogou 2019.8.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/sogou 2020.10.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/sogou 2020.10.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/sogou 2021.08.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/sogou 2021.08.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/sohu 2018.12.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/sohu 2018.12.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/sohu 2021.04.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/sohu 2021.04.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/sohu 2021.06.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/sohu 2021.06.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/sohu 2024.06.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/sohu 2024.06.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/thunder 2018.9.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/thunder 2018.9.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/thunder 2020.1.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/thunder 2020.1.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/thunder accel.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/thunder accel.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/thunder game.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/thunder game.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/thunder player.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/thunder player.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/xingcheng (at).cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/xingcheng (at).cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/youku 2018.8.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/youku 2018.8.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/yy 256.2018.12.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/yy 256.2018.12.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/yy 256.2020.1.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/yy 256.2020.1.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/yy 256.2021.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/yy 256.2021.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/yy 256.2022.04.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/yy 256.2022.04.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/yy 256.2023.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/yy 256.2023.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/yy 256.2023.08.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/yy 256.2023.08.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/yy 256.2024.06.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/yy 256.2024.06.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/2345 256.2019.6.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/2345 256.2019.6.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/2345 browser 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/2345 browser 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/6789 256.2019.4.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/6789 256.2019.4.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baofeng 2020.10.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baofeng 2020.10.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baofeng 2022.01.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baofeng 2022.01.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baofeng 2023.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baofeng 2023.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/donfang toutiao.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/donfang toutiao.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/driveTheLife 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/driveTheLife 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/higeshi 2022.04.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/higeshi 2022.04.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/huya 256.2022.04.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/huya 256.2022.04.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft 2019.6.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft 2019.6.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft 2020.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft 2020.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft 2020.06.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft 2020.06.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft 2022.01.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft 2022.01.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft 2024.10.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft 2024.10.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft browser.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft browser.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft wps 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft wps 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kuwo 256.2020.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kuwo 256.2020.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kuwo 256.2023.08.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kuwo 256.2023.08.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/pptv 256.2019.1.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/pptv 256.2019.1.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/pptv 256.2022.07.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/pptv 256.2022.07.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/pptv 256.2023.08.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/pptv 256.2023.08.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/qiyi 256.2020.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/qiyi 256.2020.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/qiyi 256.2021.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/qiyi 256.2021.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/qiyi 256.2023.08.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/qiyi 256.2023.08.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/sogou 256.2019.8.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/sogou 256.2019.8.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/sohu 256.2024.06.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/sohu 256.2024.06.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/tencent 2018.11.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/tencent 2018.11.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/tencent 2020.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/tencent 2020.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/tencent 2021.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/tencent 2021.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/thunder game 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/thunder game 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/youku 256.2018.8.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/youku 256.2018.8.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/yunbiao 2022.04.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/yunbiao 2022.04.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/360 browser 2018.11.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/360 browser 2018.11.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/360 browser 2020.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/360 browser 2020.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/360 browser 2021.08.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/360 browser 2021.08.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/360 browser 2022.01.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/360 browser 2022.01.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/360 ludashi 2022.04.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/360 ludashi 2022.04.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/7654 note 2019.10.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/7654 note 2019.10.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/7654 note 2021.10.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/7654 note 2021.10.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/aliwangwang 2018.8.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/aliwangwang 2018.8.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/aogewei 256.2022.04.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/aogewei 256.2022.04.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baidu netdisk 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baidu netdisk 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/donfang toutiao 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/donfang toutiao 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/driveTheLife 2019.6.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/driveTheLife 2019.6.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/fengqi (at) 2022.01.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/fengqi (at) 2022.01.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/higeshi 256.2022.04.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/higeshi 256.2022.04.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft 256.2019.6.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft 256.2019.6.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kugou 256.2021.08.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kugou 256.2021.08.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kugou 256.2022.01.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kugou 256.2022.01.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kugou 256.2024.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kugou 256.2024.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/qidian 256.2023.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/qidian 256.2023.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/rising 256.2018.9.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/rising 256.2018.9.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/rising 256.2019.8.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/rising 256.2019.8.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/rising 256.2022.07.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/rising 256.2022.07.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/ruanmei 256.2019.1.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/ruanmei 256.2019.1.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/shabake 256.2021.10.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/shabake 256.2021.10.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/shaji 256.2022.04.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/shaji 256.2022.04.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/sogou 256.2019.10.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/sogou 256.2019.10.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/sogou 256.2020.10.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/sogou 256.2020.10.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/sogou 256.2021.08.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/sogou 256.2021.08.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/sogou 256.2021.10.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/sogou 256.2021.10.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/sogou 256.2024.10.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/sogou 256.2024.10.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/tencent 256.2018.11.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/tencent 256.2018.11.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/tencent 256.2020.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/tencent 256.2020.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/tencent 256.2021.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/tencent 256.2021.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/tencent 256.2024.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/tencent 256.2024.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/tencent 256.2024.10.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/tencent 256.2024.10.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/thunder 256.2018.9.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/thunder 256.2018.9.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/thunder 256.2020.1.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/thunder 256.2020.1.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/thunder 256.2023.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/thunder 256.2023.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/thunder accel 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/thunder accel 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/thunder player 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/thunder player 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/xingcheng (at) 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/xingcheng (at) 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/xundu 256.2022.04.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/xundu 256.2022.04.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/yunbiao 256.2022.04.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/yunbiao 256.2022.04.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/2345 browser 2020.06.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/2345 browser 2020.06.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/2345 browser 2020.10.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/2345 browser 2020.10.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/2345 browser 2023.08.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/2345 browser 2023.08.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/360 wallpaper 2020.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/360 wallpaper 2020.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/360 wallpaper 2022.01.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/360 wallpaper 2022.01.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/7654 note 256.2019.10.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/7654 note 256.2019.10.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/7654 note 256.2021.10.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/7654 note 256.2021.10.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baidu netdisk 2024.05.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baidu netdisk 2024.05.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baishengtong 2022.04.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baishengtong 2022.04.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baishengtong 2023.08.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baishengtong 2023.08.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/driveTheLife 2020.06.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/driveTheLife 2020.06.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft 256.2020.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft 256.2020.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft 256.2020.06.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft 256.2020.06.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft 256.2021.06.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft 256.2021.06.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft 256.2022.01.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft 256.2022.01.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft 256.2022.07.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft 256.2022.07.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft 256.2024.06.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft 256.2024.06.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft 256.2024.10.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft 256.2024.10.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft browser 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft browser 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/thunder game.2018.7.8.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/thunder game.2018.7.8.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/windsoul 256.2024.06.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/windsoul 256.2024.06.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/2345 browser 256.2020.06.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/2345 browser 256.2020.06.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/2345 browser 256.2020.10.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/2345 browser 256.2020.10.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/2345 browser 256.2023.08.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/2345 browser 256.2023.08.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/360 browser 256.2018.11.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/360 browser 256.2018.11.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/360 browser 256.2020.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/360 browser 256.2020.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/360 browser 256.2022.04.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/360 browser 256.2022.04.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/360 browser 256.2023.08.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/360 browser 256.2023.08.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/360 ludashi 256.2022.04.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/360 ludashi 256.2022.04.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/aliwangwang 256.2018.8.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/aliwangwang 256.2018.8.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baidu browser.2018.7.8.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baidu browser.2018.7.8.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baishengtong 256.2022.04.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baishengtong 256.2022.04.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baishengtong 256.2023.08.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baishengtong 256.2023.08.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/donfang toutiao 2020.1.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/donfang toutiao 2020.1.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/driveTheLife 256.2019.6.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/driveTheLife 256.2019.6.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/driveTheLife 256.2020.06.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/driveTheLife 256.2020.06.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/driveTheLife 256.2023.08.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/driveTheLife 256.2023.08.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/driveTheLife 256.2024.10.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/driveTheLife 256.2024.10.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/fengqi (at) 256.2022.01.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/fengqi (at) 256.2022.01.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/thunder player 2018.12.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/thunder player 2018.12.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/tuling times 256.2022.04.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/tuling times 256.2022.04.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/360 wallpaper 256.2020.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/360 wallpaper 256.2020.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/360 wallpaper 256.2022.01.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/360 wallpaper 256.2022.01.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baidu browser 256.2018.7.8.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baidu browser 256.2018.7.8.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/baidu netdisk 256.2024.05.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/baidu netdisk 256.2024.05.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/donfang toutiao 256.2020.1.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/donfang toutiao 256.2020.1.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/thunder game 256.2018.7.8.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/thunder game 256.2018.7.8.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/thunder player 256.2018.12.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/thunder player 256.2018.12.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/grid verse (format factory).cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/grid verse (format factory).cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/kingsoft browser 256.2021.06.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/kingsoft browser 256.2021.06.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/tingfengyu (at) 256.2022.04.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/tingfengyu (at) 256.2022.04.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/grid verse (format factory) 256.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/grid verse (format factory) 256.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/zhongcheng (flash cn) 256.2022.01.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/zhongcheng (flash cn) 256.2022.01.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/grid verse (format factory) 2018.12.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/grid verse (format factory) 2018.12.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/grid verse (format factory) 2020.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/grid verse (format factory) 2020.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/grid verse (format factory) 256.2020.02.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/grid verse (format factory) 256.2020.02.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/grid verse (format factory) 256.2020.08.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/grid verse (format factory) 256.2020.08.cer -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/grid verse (format factory) 256.2022.07.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the1812/Malware-Patch/HEAD/src/MalwarePatch/Certificates/grid verse (format factory) 256.2022.07.cer -------------------------------------------------------------------------------- /src/MalwarePatch/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/MalwarePatch/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/MalwarePatch/Models/BuildConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace MalwarePatch.Models 8 | { 9 | internal static class BuildConfig 10 | { 11 | #if UNBUNDLED 12 | public static bool IsUnbundled { get; } = true; 13 | #else 14 | public static bool IsUnbundled { get; } = false; 15 | #endif 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/MalwarePatch/UpdateID.txt: -------------------------------------------------------------------------------- 1 | Verison = 0B4uebmDoSFx-Tnp2R1V3RE9nRGs 2 | Program = 0B4uebmDoSFx-c0kzcG5yVlZVMlE 3 | // Deprecated: DebugProgram = 0B4uebmDoSFx-VXFLTnUzOXRha1E 4 | 5 | Version Github = https://github.com/the1812/malware-patch/raw/preview/mwp-ver.txt 6 | Program Github = https://github.com/the1812/malware-patch/raw/preview/mwp.exe 7 | 8 | Version jsDelivr = https://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/mwp-ver.txt 9 | Program jsDelivr = https://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/mwp.pkg -------------------------------------------------------------------------------- /src/MalwarePatch/Models/Certificates.cs: -------------------------------------------------------------------------------- 1 | using Ace.Files; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace MalwarePatch.Models 9 | { 10 | public abstract class Certificates 11 | { 12 | protected List certificateFiles = new List(); 13 | public string DisplayName { get; protected set; } 14 | public void Allow() => certificateFiles.ForEach(file => file.Allow()); 15 | public void Disallow() => certificateFiles.ForEach(file => file.Disallow()); 16 | public bool IsDisallowed => certificateFiles.TrueForAll(file => file.IsDisallowed); 17 | public bool IsEmpty => !certificateFiles.Any(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/MalwarePatch/Commands/DirectCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows.Input; 7 | 8 | namespace MalwarePatch.Commands 9 | { 10 | class DirectCommand : ICommand 11 | { 12 | public event EventHandler CanExecuteChanged; 13 | private void onCanExecuteChanged() => CanExecuteChanged?.Invoke(this, EventArgs.Empty); 14 | public Func CanExecuteFunc { get; set; } 15 | public bool CanExecute(object parameter) => CanExecuteFunc?.Invoke(parameter) ?? true; 16 | public Action ExcuteAction { get; set; } 17 | public void Execute(object parameter) => ExcuteAction?.Invoke(parameter); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/MalwarePatch/Certificates/@Target.txt: -------------------------------------------------------------------------------- 1 | 360... 2 | 2345explorer/pcsafe 3 | 6789zip 4 | aliwangwang 5 | BaiduSd/BaiduAn/browser/netdisk 6 | Baofeng 7 | leTV 8 | Donfang Video 9 | driveTheLife 10 | FormatFactory 11 | Funshion 12 | HeiNote 13 | iQiYi 14 | KuaiZip 15 | Kingsoft Antivirus/Browser 16 | Kugou 17 | Kuwo 18 | NetEase 19 | PCMaster 20 | PPTV 21 | QQ/QQPCMgr/TIM 22 | RisingSD 23 | SogouPinyin/Explorer 24 | SohuVA 25 | Thunder player/game 26 | YoukuClient 27 | YouDao 28 | YY 29 | 30 | Updated 08/13/2018 31 | 32 | // Manual 33 | Youku 34 | Riyue 35 | 36 | [NEW]03/18/2020 37 | 快速软件助手 38 | 灭神 39 | 旋风PDF 40 | 小鲁温度监控 41 | 麻花日历 42 | 火萤视频桌面 43 | 蒲公英WiFi 2.0 44 | 快压 45 | 鲁大师 46 | 好看壁纸 47 | 极速输入法 48 | 智能云输入法 1.5 49 | 软件管家 - 2345 50 | 光速搜索(2.2.3.2) 51 | 电脑管家 52 | 飞速PDF 53 | 风行视频加速器 54 | 布丁桌面 1.4 55 | 加速浏览器 - 2345 56 | 爱奇艺看图 57 | 酷我音乐 58 | 酷狗音乐 59 | ABC看图 60 | iDesk助手 61 | 迅读PDF大师 62 | 真龙主宰 63 | 小鱼便签 64 | -------------------------------------------------------------------------------- /src/MalwarePatch/Properties/Settings.cs: -------------------------------------------------------------------------------- 1 | namespace MalwarePatch.Properties { 2 | 3 | 4 | // 通过此类可以处理设置类的特定事件: 5 | // 在更改某个设置的值之前将引发 SettingChanging 事件。 6 | // 在更改某个设置的值之后将引发 PropertyChanged 事件。 7 | // 在加载设置值之后将引发 SettingsLoaded 事件。 8 | // 在保存设置值之前将引发 SettingsSaving 事件。 9 | internal sealed partial class Settings { 10 | 11 | public Settings() { 12 | // // 若要为保存和更改设置添加事件处理程序,请取消注释下列行: 13 | // 14 | // this.SettingChanging += this.SettingChangingEventHandler; 15 | // 16 | // this.SettingsSaving += this.SettingsSavingEventHandler; 17 | // 18 | } 19 | 20 | private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) { 21 | // 在此处添加用于处理 SettingChangingEvent 事件的代码。 22 | } 23 | 24 | private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) { 25 | // 在此处添加用于处理 SettingsSaving 事件的代码。 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/MalwarePatch/Models/VersionChecker.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Reflection; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using Ace.Web; 8 | using Ace; 9 | using System.Windows; 10 | 11 | namespace MalwarePatch.Models 12 | { 13 | sealed class VersionChecker 14 | { 15 | public Version NewVersion { get; private set; } 16 | private Version CurrentVersion => Assembly.GetEntryAssembly().GetName().Version; 17 | public string Proxy { get; set; } 18 | 19 | public bool HasNewVersion 20 | { 21 | get 22 | { 23 | var downloadLink = "https://github.com/the1812/malware-patch/raw/master/mwp-ver.txt"; 24 | var info = new DownloadInfo(downloadLink) 25 | { 26 | Proxy = Proxy, 27 | }; 28 | var newVersionString = info.DownloadString(); 29 | NewVersion = new Version(newVersionString); 30 | 31 | //#if DEBUG 32 | // return true; 33 | //#endif 34 | return NewVersion > CurrentVersion; 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/MalwarePatch/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.42000 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace MalwarePatch.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/MalwarePatch/Windows/Main/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using Ace; 2 | using Ace.Wpf; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | using System.Windows; 9 | using System.Windows.Controls; 10 | using System.Windows.Controls.Primitives; 11 | using System.Windows.Data; 12 | using System.Windows.Documents; 13 | using System.Windows.Input; 14 | using System.Windows.Media; 15 | using System.Windows.Media.Effects; 16 | using System.Windows.Media.Imaging; 17 | using System.Windows.Navigation; 18 | using System.Windows.Shapes; 19 | 20 | namespace MalwarePatch.Windows.Main 21 | { 22 | public partial class MainWindow : Window 23 | { 24 | public MainWindow() 25 | { 26 | InitializeComponent(); 27 | DataContext = new MainViewModel(this); 28 | buttonMinimize.Click += (s, e) => WindowState = WindowState.Minimized; 29 | buttonClose.Click += (s, e) => Close(); 30 | 31 | this.DragMove(borderHeader); 32 | this.DragMove(textTitle); 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 软件屏蔽器 2 | 3 | [English version](README.en-US.md) 4 | 5 | 阻止指定软件的管理员授权, 无需后台运行. 6 | 7 | 项目灵感来源: [Windows apps that amaze us](https://amazing-apps.gitbook.io/windows-apps-that-amaze-us/zh-cn/blacklist). 8 | 9 | ## 下载 10 | 11 | https://github.com/the1812/Malware-Patch/releases/latest 12 | 13 | > [!Note] 14 | > 有两种可供选择的版本, `mwp.bundled.zip` 是单文件程序, 但容易被杀毒软件报毒; `mwp.unbundled.zip` 是证书和程序分离的包. 15 | 16 | ## 命令行参数 17 | 18 | - 无参数 : 启动图形界面. 19 | - `--silent-update` : 在后台进行更新. (仅单文件版可用) 20 | - `--disallow-all` : 屏蔽所有支持的软件. 21 | - `--allow-all` : 允许所有支持的软件. 22 | - `--remove` : 清理更新的缓存文件. 23 | - `--allow`: (从"打开文件"对话框)选择并允许程序. 24 | 25 | > 程序必须拥有数字签名,因为本功能使用其数字签名实现,下同 26 | 27 | - `--disallow`: 选择并屏蔽程序. 28 | - `--allow=file`: 允许传入的 `file`. 29 | - `--disallow=file`: 屏蔽传入的 `file`. 30 | 31 | ## 系统支持 32 | 33 | 需要 .NET Framework 4.7.2 34 | 35 | - Windows 10 36 | - Windows 8.1 37 | - Windows 7 38 | 39 | ## 语言支持 40 | 41 | - 简体中文 42 | - English 43 | 44 | ## 例子 45 | 46 | ### 屏蔽并保存 47 | 48 | 屏蔽并保存 49 | 50 | ### 屏蔽后 51 | 52 | 屏蔽后 53 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Grant Howard 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/MalwarePatch/Commands/BatchCheckCommand.cs: -------------------------------------------------------------------------------- 1 | using MalwarePatch.Models; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using System.Windows.Controls; 8 | using System.Windows.Controls.Primitives; 9 | using System.Windows.Input; 10 | 11 | namespace MalwarePatch.Commands 12 | { 13 | sealed class BatchCheckCommand : ICommand 14 | { 15 | private readonly bool checkValue; 16 | private readonly IEnumerable certificates; 17 | public BatchCheckCommand(bool checkValue, IEnumerable certificates) 18 | { 19 | this.checkValue = checkValue; 20 | this.certificates = certificates; 21 | } 22 | 23 | public event EventHandler CanExecuteChanged; 24 | private void invokeCanExecuteChanged() => CanExecuteChanged?.Invoke(this, EventArgs.Empty); 25 | 26 | public bool CanExecute(object parameter) => certificates.Count() != 0; 27 | public void Execute(object parameter) 28 | { 29 | foreach (var certificate in certificates) 30 | { 31 | certificate.IsAllowed = checkValue; 32 | } 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/MalwarePatch/Windows/CheckWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using Ace.Wpf; 2 | using MalwarePatch.CliTools; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | using System.Windows; 9 | using System.Windows.Controls; 10 | using System.Windows.Data; 11 | using System.Windows.Documents; 12 | using System.Windows.Input; 13 | using System.Windows.Media; 14 | using System.Windows.Media.Imaging; 15 | using System.Windows.Shapes; 16 | 17 | namespace MalwarePatch.Windows.Check 18 | { 19 | public partial class CheckWindow : Window 20 | { 21 | private readonly MalwareChecker checker; 22 | public CheckWindow(bool clean = false) 23 | { 24 | InitializeComponent(); 25 | checker = new MalwareChecker(clean); 26 | buttonStop.Click += (s, e) => 27 | { 28 | checker.Stop(); 29 | Close(); 30 | }; 31 | Loaded += async (s, e) => 32 | { 33 | this.DragMove(this); 34 | DataContext = checker.Model; 35 | checker.Debug = false; 36 | await checker.Start(); 37 | Close(); 38 | }; 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/MalwarePatch/AppJumpList.cs: -------------------------------------------------------------------------------- 1 | using MalwarePatch.Languages; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | using System.Windows.Shell; 9 | 10 | namespace MalwarePatch 11 | { 12 | static class AppJumpList 13 | { 14 | public static void CreateJumpList() 15 | { 16 | var jumpList = new JumpList(); 17 | var language = new MainLanguage(); 18 | jumpList.JumpItems.Add(new JumpTask 19 | { 20 | Title = language[MainLanguage.Keys.DisallowProgram], 21 | Arguments = "--disallow", 22 | Description = language[MainLanguage.Keys.DisallowProgramDescription], 23 | IconResourceIndex = 1, 24 | }); 25 | jumpList.JumpItems.Add(new JumpTask 26 | { 27 | Title = language[MainLanguage.Keys.AllowProgram], 28 | Arguments = "--allow", 29 | Description = language[MainLanguage.Keys.AllowProgramDescription], 30 | IconResourceIndex = 2, 31 | }); 32 | jumpList.ShowFrequentCategory = false; 33 | jumpList.ShowRecentCategory = false; 34 | JumpList.SetJumpList(Application.Current, jumpList); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/MalwarePatch/Models/CertificateAdapter.cs: -------------------------------------------------------------------------------- 1 | using Ace.Wpf.Mvvm; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace MalwarePatch.Models 9 | { 10 | sealed class CertificateAdapter : NotificationObject 11 | { 12 | private readonly Certificates certificates; 13 | public CertificateAdapter(Certificates certificates) 14 | { 15 | this.certificates = certificates; 16 | UpdateState(); 17 | } 18 | 19 | public string Name => certificates.DisplayName; 20 | 21 | private bool isAllowed; 22 | public bool IsAllowed 23 | { 24 | get => isAllowed; 25 | set 26 | { 27 | isAllowed = value; 28 | OnPropertyChanged(nameof(IsAllowed)); 29 | } 30 | } 31 | public void UpdateState() => IsAllowed = !certificates.IsDisallowed; 32 | 33 | public void Allow() 34 | { 35 | if (IsAllowed && certificates.IsDisallowed) 36 | { 37 | certificates.Allow(); 38 | } 39 | } 40 | 41 | public void Disallow() 42 | { 43 | if (!IsAllowed && !certificates.IsDisallowed) 44 | { 45 | certificates.Disallow(); 46 | } 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/MalwarePatch/Windows/DialogWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using Ace.Wpf; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | using System.Windows.Controls; 9 | using System.Windows.Data; 10 | using System.Windows.Documents; 11 | using System.Windows.Input; 12 | using System.Windows.Media; 13 | using System.Windows.Media.Imaging; 14 | using System.Windows.Shapes; 15 | 16 | namespace MalwarePatch.Windows.Dialog 17 | { 18 | public partial class DialogWindow : Window 19 | { 20 | public DialogWindow() 21 | { 22 | InitializeComponent(); 23 | buttonOK.Click += (s, e) => Close(); 24 | this.DragMove(this); 25 | } 26 | public static bool? Show(string message, string title) 27 | { 28 | var window = Application.Current.Windows.OfType().SingleOrDefault(x => x.IsActive); 29 | return new DialogWindow() 30 | { 31 | Owner = window ?? null, 32 | WindowStartupLocation = window is null ? 33 | WindowStartupLocation.CenterScreen : 34 | WindowStartupLocation.CenterOwner, 35 | DataContext = new 36 | { 37 | Title = title, 38 | Message = message 39 | } 40 | }.ShowDialog(); 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /README.en-US.md: -------------------------------------------------------------------------------- 1 | # Malware Patch 2 | 3 | [中文版](README.md) 4 | 5 | Prevent UAC authorization of Chinese malware, no need to run in background. 6 | 7 | Project inspired by [Windows apps that amaze us](https://amazing-apps.gitbook.io/windows-apps-that-amaze-us/en/blacklist). 8 | 9 | ## Download 10 | 11 | https://github.com/the1812/Malware-Patch/releases/latest 12 | 13 | ## CLI Usage 14 | 15 | - No parameter : Open GUI. 16 | - `--silent-update` : Silently check and download update. (Bundled version only) 17 | - `--disallow-all` : Disallow all UAC authorizations of malware programs. 18 | - `--allow-all` : Allow all UAC authorizations of malware programs. 19 | - `--remove` : Clean up temp files used for update. 20 | - `--allow` : Select a program (from "Open File" dialog) and allow UAC authorization of it. 21 | 22 | > The selected program must be signed because this app uses its digital signature to identify the program, the same below 23 | 24 | - `--disallow` : Select a program and disallow UAC authorization of it. 25 | - `--allow=file`: Allow UAC authorization of `file`. 26 | - `--disallow=file`: Disallow UAC authorization of `file`. 27 | 28 | ## System Support 29 | 30 | - Windows 10 31 | - Windows 8.1 32 | - *Windows 7* (**Not tested yet**) 33 | 34 | ## Language Support 35 | 36 | - English 37 | - 简体中文 38 | 39 | ## Example 40 | 41 | ### Disallow and save 42 | 43 | Disallow it and save 44 | 45 | ### Blocked by UAC 46 | 47 | Blocked 48 | -------------------------------------------------------------------------------- /src/MalwarePatch/Models/UIElementToImageConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Globalization; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | using System.Windows.Data; 9 | using System.Windows.Media; 10 | using System.Windows.Media.Imaging; 11 | 12 | namespace MalwarePatch.Models 13 | { 14 | class UIElementToImageConverter : IValueConverter 15 | { 16 | // https://stackoverflow.com/questions/6676072/get-system-drawing-bitmap-of-a-wpf-area-using-visualbrush 17 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 18 | { 19 | if (value is UIElement element) 20 | { 21 | var target = new RenderTargetBitmap(96, 96, 96, 96, PixelFormats.Pbgra32); 22 | var brush = new VisualBrush(element); 23 | 24 | var visual = new DrawingVisual(); 25 | var drawingContext = visual.RenderOpen(); 26 | 27 | 28 | drawingContext.DrawRectangle(brush, null, new Rect(new Point(0, 0), 29 | new Point(96, 96))); 30 | 31 | drawingContext.Close(); 32 | 33 | target.Render(visual); 34 | 35 | return target; 36 | } 37 | return null; 38 | } 39 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => throw new NotImplementedException(); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/MalwarePatch/App.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 12 | 14 | 15 | 18 | 21 | 24 | 27 | 30 | 33 | 36 | 39 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /src/MalwarePatch/Commands/UserCertificateCommand.cs: -------------------------------------------------------------------------------- 1 | using Ace; 2 | using Ace.Wpf.Mvvm; 3 | using MalwarePatch.Models; 4 | using Microsoft.Win32; 5 | using System; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using System.Text; 9 | using System.Threading.Tasks; 10 | using System.Windows.Input; 11 | 12 | namespace MalwarePatch.Commands 13 | { 14 | class UserCertificateCommand : Ace.Wpf.Mvvm.Command 15 | { 16 | private readonly bool allow = true; 17 | private readonly IEnumerable certificates; 18 | public UserCertificateCommand(bool allow, IEnumerable certificates) 19 | { 20 | this.allow = allow; 21 | this.certificates = certificates; 22 | } 23 | 24 | protected override void ExecuteCommand(object parameter) 25 | { 26 | var dialog = new OpenFileDialog 27 | { 28 | AddExtension = true, 29 | DefaultExt = ".exe", 30 | Multiselect = false, 31 | }; 32 | if (dialog.ShowDialog() ?? false) 33 | { 34 | var filename = dialog.FileName; 35 | var certificate = new UserCertificate(filename); 36 | if (allow) 37 | { 38 | certificate.Allow(); 39 | } 40 | else 41 | { 42 | certificate.Disallow(); 43 | } 44 | certificates?.ForEach(c => c.UpdateState()); 45 | } 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/MalwarePatch/Commands/SaveChangesCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows.Controls; 7 | using System.Windows.Controls.Primitives; 8 | using System.Windows.Input; 9 | using Ace; 10 | using MalwarePatch.Models; 11 | 12 | namespace MalwarePatch.Commands 13 | { 14 | sealed class SaveChangesCommand : ICommand 15 | { 16 | public event EventHandler CanExecuteChanged; 17 | private void invokeCanExecuteChanged() => CanExecuteChanged?.Invoke(this, EventArgs.Empty); 18 | private readonly IEnumerable certificates; 19 | 20 | public Action BeforeExecute { get; set; } 21 | public Action AfterExecute { get; set; } 22 | public SaveChangesCommand(IEnumerable certificates) 23 | { 24 | this.certificates = certificates; 25 | } 26 | public bool CanExecute(object parameter) 27 | { 28 | return Utils.IsAdministratorProcess; 29 | } 30 | public async void Execute(object parameter) 31 | { 32 | BeforeExecute?.Invoke(); 33 | await Task.Run(() => 34 | { 35 | foreach (var certificate in certificates) 36 | { 37 | if (certificate.IsAllowed) 38 | { 39 | certificate.Allow(); 40 | } 41 | else 42 | { 43 | certificate.Disallow(); 44 | } 45 | } 46 | }); 47 | AfterExecute?.Invoke(); 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/MalwarePatch/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.CompilerServices; 4 | using System.Runtime.InteropServices; 5 | using System.Windows; 6 | 7 | // 有关程序集的一般信息由以下 8 | // 控制。更改这些特性值可修改 9 | // 与程序集关联的信息。 10 | [assembly: AssemblyTitle("Malware Patch")] 11 | [assembly: AssemblyDescription("Malware Patch")] 12 | [assembly: AssemblyConfiguration("")] 13 | [assembly: AssemblyCompany("Ace Studio")] 14 | [assembly: AssemblyProduct("Malware Patch")] 15 | [assembly: AssemblyCopyright("Copyright © Ace Studio 2024")] 16 | [assembly: AssemblyTrademark("")] 17 | [assembly: AssemblyCulture("")] 18 | 19 | // 将 ComVisible 设置为 false 会使此程序集中的类型 20 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 21 | //请将此类型的 ComVisible 特性设置为 true。 22 | [assembly: ComVisible(false)] 23 | 24 | //若要开始生成可本地化的应用程序,请设置 25 | //.csproj 文件中的 CultureYouAreCodingWith 26 | //例如,如果您在源文件中使用的是美国英语, 27 | //使用的是美国英语,请将 设置为 en-US。 然后取消 28 | //对以下 NeutralResourceLanguage 特性的注释。 更新 29 | //以下行中的“en-US”以匹配项目文件中的 UICulture 设置。 30 | 31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] 32 | 33 | 34 | [assembly: ThemeInfo( 35 | ResourceDictionaryLocation.None, //主题特定资源词典所处位置 36 | //(未在页面中找到资源时使用, 37 | //或应用程序资源字典中找到时使用) 38 | ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置 39 | //(未在页面中找到资源时使用, 40 | //、应用程序或任何主题专用资源字典中找到时使用) 41 | )] 42 | 43 | 44 | // 程序集的版本信息由下列四个值组成: 45 | // 46 | // 主版本 47 | // 次版本 48 | // 生成号 49 | // 修订号 50 | // 51 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 52 | // 方法是按如下所示使用“*”: : 53 | // [assembly: AssemblyVersion("1.0.*")] 54 | [assembly: AssemblyVersion("2.18.0.0")] 55 | [assembly: AssemblyFileVersion("2.18.0.0")] 56 | -------------------------------------------------------------------------------- /src/MalwarePatch/CliTools/UserCertificateCli.cs: -------------------------------------------------------------------------------- 1 | using Ace; 2 | using Ace.Files; 3 | using MalwarePatch.Commands; 4 | using MalwarePatch.Models; 5 | using System; 6 | using System.Collections.Generic; 7 | using System.IO; 8 | using System.Linq; 9 | using System.Security.Cryptography; 10 | using System.Security.Cryptography.X509Certificates; 11 | using System.Text; 12 | using System.Threading.Tasks; 13 | using System.Windows; 14 | 15 | namespace MalwarePatch.CliTools 16 | { 17 | static class UserCertificateCli 18 | { 19 | private const string disallowKey = "--disallow", allowKey = "--allow"; 20 | public static bool TryParse(string[] args) 21 | { 22 | if (args.Length == 0) 23 | { 24 | return false; 25 | } 26 | var dict = string.Join(",", args).ToLowerInvariant().SplitToDictionary(",", "=", true); 27 | if (dict.ContainsKey(disallowKey)) 28 | { 29 | var filename = dict[disallowKey]?.NoQuotes(); 30 | if (filename is null) 31 | { 32 | new UserCertificateCommand(allow: false, null).Execute(); 33 | } 34 | else 35 | { 36 | new UserCertificate(filename).Disallow(); 37 | } 38 | return true; 39 | } 40 | if (dict.ContainsKey(allowKey)) 41 | { 42 | var filename = dict[allowKey]?.NoQuotes(); 43 | if (filename is null) 44 | { 45 | new UserCertificateCommand(allow: true, null).Execute(); 46 | } 47 | else 48 | { 49 | new UserCertificate(filename).Allow(); 50 | } 51 | return true; 52 | } 53 | return false; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/MalwarePatch.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.4.33213.308 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MalwarePatch", "MalwarePatch\MalwarePatch.csproj", "{769D2F79-D71B-4F5F-A61F-B1EF3A4C7414}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | Remote-Fetch|Any CPU = Remote-Fetch|Any CPU 13 | Unbundled|Any CPU = Unbundled|Any CPU 14 | Unbundled-Release|Any CPU = Unbundled-Release|Any CPU 15 | EndGlobalSection 16 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 17 | {769D2F79-D71B-4F5F-A61F-B1EF3A4C7414}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 18 | {769D2F79-D71B-4F5F-A61F-B1EF3A4C7414}.Debug|Any CPU.Build.0 = Debug|Any CPU 19 | {769D2F79-D71B-4F5F-A61F-B1EF3A4C7414}.Release|Any CPU.ActiveCfg = Release|Any CPU 20 | {769D2F79-D71B-4F5F-A61F-B1EF3A4C7414}.Release|Any CPU.Build.0 = Release|Any CPU 21 | {769D2F79-D71B-4F5F-A61F-B1EF3A4C7414}.Remote-Fetch|Any CPU.ActiveCfg = Remote-Fetch|Any CPU 22 | {769D2F79-D71B-4F5F-A61F-B1EF3A4C7414}.Remote-Fetch|Any CPU.Build.0 = Remote-Fetch|Any CPU 23 | {769D2F79-D71B-4F5F-A61F-B1EF3A4C7414}.Unbundled|Any CPU.ActiveCfg = Unbundled|Any CPU 24 | {769D2F79-D71B-4F5F-A61F-B1EF3A4C7414}.Unbundled|Any CPU.Build.0 = Unbundled|Any CPU 25 | {769D2F79-D71B-4F5F-A61F-B1EF3A4C7414}.Unbundled-Release|Any CPU.ActiveCfg = Unbundled-Release|Any CPU 26 | {769D2F79-D71B-4F5F-A61F-B1EF3A4C7414}.Unbundled-Release|Any CPU.Build.0 = Unbundled-Release|Any CPU 27 | EndGlobalSection 28 | GlobalSection(SolutionProperties) = preSolution 29 | HideSolutionNode = FALSE 30 | EndGlobalSection 31 | GlobalSection(ExtensibilityGlobals) = postSolution 32 | SolutionGuid = {FB28D50D-B8B7-48D8-86DB-0F47598E0128} 33 | EndGlobalSection 34 | EndGlobal 35 | -------------------------------------------------------------------------------- /src/MalwarePatch/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using MalwarePatch.CliTools; 2 | using MalwarePatch.Languages; 3 | using MalwarePatch.Models; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Configuration; 7 | using System.Data; 8 | using System.Diagnostics; 9 | using System.Globalization; 10 | using System.IO; 11 | using System.Linq; 12 | using System.Reflection; 13 | using System.Threading; 14 | using System.Threading.Tasks; 15 | using System.Windows; 16 | using System.Windows.Shell; 17 | 18 | namespace MalwarePatch 19 | { 20 | public partial class App : Application 21 | { 22 | protected override void OnStartup(StartupEventArgs e) 23 | { 24 | AppDomain.CurrentDomain.AssemblyResolve += assemblyResolveHandler; 25 | // StartupUri = new Uri("MainWindow.xaml", UriKind.RelativeOrAbsolute); 26 | base.OnStartup(e); 27 | // CultureInfo.CurrentUICulture = new CultureInfo("en-US"); 28 | AppJumpList.CreateJumpList(); 29 | #if DEBUG 30 | File.AppendAllText($"args.txt", string.Join(" ", e.Args)); 31 | #endif 32 | if (SilentUpdater.TryParse(e.Args) || 33 | UserCertificateCli.TryParse(e.Args) || 34 | MalwareChecker.TryParse(e.Args)) 35 | { 36 | Shutdown(); 37 | } 38 | else 39 | { 40 | Updater.InstallUpdateAndRun(this, e.Args); 41 | } 42 | } 43 | static Assembly assemblyResolveHandler(object s, ResolveEventArgs e) 44 | { 45 | var dllName = new AssemblyName(e.Name).Name + ".dll"; 46 | var assembly = Assembly.GetExecutingAssembly(); 47 | var resourceName = assembly.GetManifestResourceNames().FirstOrDefault(name => name.EndsWith(dllName)); 48 | if (resourceName == null) 49 | { 50 | return null; 51 | } 52 | using (var stream = assembly.GetManifestResourceStream(resourceName)) 53 | { 54 | var assemblyData = new byte[stream.Length]; 55 | stream.Read(assemblyData, 0, assemblyData.Length); 56 | return Assembly.Load(assemblyData); 57 | } 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/MalwarePatch/Languages/UserCertificateLanguage.cs: -------------------------------------------------------------------------------- 1 | using Ace.Wpf.Mvvm; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace MalwarePatch.Languages 9 | { 10 | sealed class UserCertificateLanguage : Language 11 | { 12 | public enum Keys 13 | { 14 | Error, 15 | Tip, 16 | Complete, 17 | TipMessage, 18 | FileNotFound, 19 | FileNotSigned, 20 | Allowed, 21 | Disallowed, 22 | UnknownPublisher, 23 | } 24 | public UserCertificateLanguage() 25 | { 26 | translations.Add(new Translation 27 | { 28 | Culture = new System.Globalization.CultureInfo("en-US"), 29 | Texts = new List 30 | { 31 | "Error", 32 | "Tip", 33 | "Complete", 34 | "Usage: --allow/--disallow=", 35 | "Input file \"{0}\" not found.", 36 | "Input file \"{0}\" is not signed.", 37 | "Allowed programs from \"{0}\".", 38 | "Disallowed programs from \"{0}\".", 39 | "Unknown Publisher", 40 | } 41 | }); 42 | translations.Add(new Translation 43 | { 44 | Culture = new System.Globalization.CultureInfo("zh-CN"), 45 | Texts = new List 46 | { 47 | "错误", 48 | "提示", 49 | "完成", 50 | "用法: --allow/--disallow=<文件名>", 51 | "输入的文件 \"{0}\" 不存在.", 52 | "输入的文件 \"{0}\" 未签名.", 53 | "已允许来自 \"{0}\" 的程序.", 54 | "已屏蔽来自 \"{0}\" 的程序.", 55 | "未知发布者", 56 | } 57 | }); 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/MalwarePatch/Windows/Main/MainViewModel.Commands.cs: -------------------------------------------------------------------------------- 1 | using MalwarePatch.Models; 2 | using MalwarePatch.Commands; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Collections.ObjectModel; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Controls; 10 | using System.Windows.Controls.Primitives; 11 | using System.Windows.Input; 12 | using MalwarePatch.Windows.Update; 13 | using System.Diagnostics; 14 | 15 | namespace MalwarePatch.Windows.Main 16 | { 17 | partial class MainViewModel 18 | { 19 | private bool isNotBusy = true; 20 | public bool IsNotBusy 21 | { 22 | get => isNotBusy; 23 | set 24 | { 25 | isNotBusy = value; 26 | OnPropertyChanged(nameof(IsNotBusy)); 27 | } 28 | } 29 | public SaveChangesCommand ButtonSaveCommand => new SaveChangesCommand(Certificates) 30 | { 31 | BeforeExecute = () => IsNotBusy = false, 32 | AfterExecute = () => 33 | { 34 | IsNotBusy = true; 35 | ShowSavedPopup = true; 36 | } 37 | }; 38 | 39 | public ICommand ButtonCheckAllCommand => new BatchCheckCommand(true, Certificates); 40 | public ICommand ButtonUncheckAllCommand => new BatchCheckCommand(false, Certificates); 41 | public ICommand AllowFileCommand => new UserCertificateCommand(true, Certificates); 42 | public ICommand DisallowFileCommand => new UserCertificateCommand(false, Certificates); 43 | 44 | public DirectCommand ButtonUpdateCommand => new DirectCommand 45 | { 46 | ExcuteAction = o => 47 | { 48 | var updateWindow = new UpdateWindow() 49 | { 50 | Owner = View 51 | }; 52 | ShowNewVersionPopup = false; 53 | ShowSavedPopup = false; 54 | updateWindow.ShowDialog(); 55 | } 56 | }; 57 | 58 | public DirectCommand ButtonGetUpdateCommand => new DirectCommand 59 | { 60 | ExcuteAction = o => 61 | { 62 | Process.Start(Updater.UpdateUrl); 63 | } 64 | }; 65 | 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/MalwarePatch/Assets/display-names.json: -------------------------------------------------------------------------------- 1 | { 2 | "en-US": { 3 | "360": "360", 4 | "2345": "2345", 5 | "6789": "6789", 6 | "Aogewei": "Aogewei", 7 | "Baidu": "Baidu", 8 | "Baishengtong": "Baishengtong", 9 | "Baofeng": "Baofeng Video", 10 | "DongfangToutiao": "Toutiao Video", 11 | "DriverLife": "Driver Life", 12 | "Funshion": "Funshion", 13 | "FormatFactory": "Format Factory", 14 | "HeiNote": "Hei Note", 15 | "Higeshi": "Hi Ge Shi", 16 | "Huya": "Huya", 17 | "KuaiZip": "Kuai Zip", 18 | "Kingsoft": "Kingsoft", 19 | "Kugou": "Kugou", 20 | "Kuwo": "Kuwo", 21 | "LeTV": "LeTV", 22 | "PPTV": "PPTV", 23 | "iQIYI": "iQIYI", 24 | "Rising": "Rising", 25 | "Qidian": "Qidian", 26 | "Riyue": "P2P Adware", 27 | "Ruanmei": "Ruanmei", 28 | "Shaji": "Yongchu", 29 | "Sogou": "Sogou", 30 | "Sohu": "Sohu", 31 | "Taobao": "UC", 32 | "Tencent": "Tencent", 33 | "Thunder": "Thunder", 34 | "WindSoul": "WindSoul", 35 | "Xundu": "Xundu", 36 | "Youku": "Youku", 37 | "Yunbiao": "Yunbiao", 38 | "YY": "YY", 39 | "ZhongCheng": "FlashCN" 40 | }, 41 | "zh-CN": { 42 | "360": "360", 43 | "2345": "2345", 44 | "6789": "6789", 45 | "Aogewei": "奥格威", 46 | "Baidu": "百度", 47 | "Baishengtong": "百胜通", 48 | "Baofeng": "暴风影音", 49 | "DongfangToutiao": "头条视频", 50 | "DriverLife": "驱动人生", 51 | "Funshion": "风行", 52 | "FormatFactory": "格式工厂", 53 | "HeiNote": "小黑记事本", 54 | "Higeshi": "嗨格式", 55 | "Huya": "虎牙", 56 | "KuaiZip": "快压", 57 | "Kingsoft": "金山", 58 | "Kugou": "酷狗", 59 | "Kuwo": "酷我", 60 | "LeTV": "乐视", 61 | "PPTV": "PPTV", 62 | "iQIYI": "爱奇艺", 63 | "Rising": "瑞星", 64 | "Qidian": "起点", 65 | "Riyue": "P2P下载器", 66 | "Ruanmei": "软媒", 67 | "Shaji": "永楚", 68 | "Sogou": "搜狗", 69 | "Sohu": "搜狐", 70 | "Taobao": "UC", 71 | "Tencent": "腾讯", 72 | "Thunder": "迅雷", 73 | "WindSoul": "WindSoul", 74 | "Xundu": "迅读", 75 | "Youku": "优酷", 76 | "Yunbiao": "云表", 77 | "YY": "YY", 78 | "ZhongCheng": "国内版Flash" 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /src/MalwarePatch/Windows/Update/UpdateWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Shapes; 14 | using Ace.Wpf; 15 | using Ace; 16 | using System.Windows.Media.Animation; 17 | using System.Windows.Controls.Primitives; 18 | 19 | namespace MalwarePatch.Windows.Update 20 | { 21 | /// 22 | /// UpdateWindow.xaml 的交互逻辑 23 | /// 24 | public partial class UpdateWindow : Window 25 | { 26 | public UpdateWindow() 27 | { 28 | InitializeComponent(); 29 | viewModel = new UpdateViewModel(this); 30 | DataContext = viewModel; 31 | 32 | #if DEBUG 33 | //viewModel.TextProxy = "127.0.0.1:8580"; 34 | buttonDebug.Visibility = Visibility.Visible; 35 | buttonDebug.Click += (s, e) => 36 | { 37 | viewModel.ShowProgressBar = true; 38 | viewModel.ProgressValue = 50.0; 39 | }; 40 | #endif 41 | buttonMinimize.Click += (s, e) => WindowState = WindowState.Minimized; 42 | buttonClose.Click += (s, e) => Close(); 43 | 44 | Loaded += (s, e) => 45 | { 46 | buttonRetry.Command.Execute(null); 47 | }; 48 | this.DragMove(borderHeader); 49 | this.DragMove(textWindowTitle); 50 | } 51 | private UpdateViewModel viewModel; 52 | internal void SetProgress(double value) 53 | { 54 | Dispatcher.Invoke(() => 55 | { 56 | var animation = new DoubleAnimation 57 | { 58 | Duration = TimeSpan.FromMilliseconds(300), 59 | To = value, 60 | EasingFunction = new CircleEase { EasingMode = EasingMode.EaseOut }, 61 | }; 62 | progress.BeginAnimation(RangeBase.ValueProperty, animation); 63 | }); 64 | } 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /src/MalwarePatch/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.42000 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace MalwarePatch.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// 一个强类型的资源类,用于查找本地化的字符串等。 17 | /// 18 | // 此类是由 StronglyTypedResourceBuilder 19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen 21 | // (以 /str 作为命令选项),或重新生成 VS 项目。 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// 返回此类使用的缓存的 ResourceManager 实例。 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MalwarePatch.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// 重写当前线程的 CurrentUICulture 属性 51 | /// 重写当前线程的 CurrentUICulture 属性。 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/MalwarePatch/Windows/CheckWindow.xaml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 21 | 22 | 23 | 27 | 28 | 29 | 30 | 31 | 33 | 34 | 35 | 36 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 52 | 65 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /src/MalwarePatch/Languages/MainLanguage.cs: -------------------------------------------------------------------------------- 1 | using Ace; 2 | using Ace.Files.Json; 3 | using Ace.Wpf.Mvvm; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Diagnostics; 7 | using System.IO; 8 | using System.Linq; 9 | using System.Reflection; 10 | using System.Text; 11 | using System.Threading.Tasks; 12 | 13 | namespace MalwarePatch.Languages 14 | { 15 | sealed class MainLanguage : Language 16 | { 17 | public enum Keys 18 | { 19 | Title, 20 | TextAvailablePatches, 21 | ButtonSave, 22 | ToggleUncheckedHelp, 23 | ToggleCheckedHelp, 24 | ButtonAdd, 25 | ButtonRemove, 26 | ButtonCheckAll, 27 | ButtonUncheckAll, 28 | ButtonUpdate, 29 | ButtonGetUpdate, 30 | TextSaved, 31 | TextNewVersion, 32 | DisallowProgram, 33 | AllowProgram, 34 | DisallowProgramDescription, 35 | AllowProgramDescription, 36 | } 37 | internal static DateTime LastModifiedTime => File.GetLastWriteTime(Process.GetCurrentProcess().MainModule.FileName); 38 | internal const int UpdateMonth = 10; 39 | internal static string UpdateTime 40 | { 41 | get 42 | { 43 | var now = new DateTime(); 44 | return new DateTime(now.Year, UpdateMonth, now.Day).ToString("MMMM"); 45 | } 46 | } 47 | public MainLanguage() 48 | { 49 | translations.Add(new Translation 50 | { 51 | Culture = new System.Globalization.CultureInfo("en-US"), 52 | Texts = new List 53 | { 54 | $"{UpdateTime} Update - v{Assembly.GetExecutingAssembly().GetName().Version}", 55 | "Malware Patch", 56 | "Save", 57 | "Uncheck to disallow", 58 | "Check to allow", 59 | "Add", 60 | "Remove", 61 | "Allow All", 62 | "Disallow All", 63 | "Update", 64 | "Get Update", 65 | "Saved", 66 | "New Version Available", 67 | "Disallow program", 68 | "Allow program", 69 | "Select and disallow program.", 70 | "Select and Allow program.", 71 | } 72 | }); 73 | translations.Add(new Translation 74 | { 75 | Culture = new System.Globalization.CultureInfo("zh-CN"), 76 | Texts = new List 77 | { 78 | $"{UpdateTime}更新 - v{Assembly.GetExecutingAssembly().GetName().Version}", 79 | "软件屏蔽器", 80 | "保存更改", 81 | "打叉以屏蔽", 82 | "打勾以允许", 83 | "添加", 84 | "移除", 85 | "全部允许", 86 | "全部屏蔽", 87 | "检查更新", 88 | "查看更新", 89 | "已保存", 90 | "新版本可用", 91 | "屏蔽选定程序", 92 | "允许选定程序", 93 | "选择并屏蔽一个程序.", 94 | "选择并允许一个程序.", 95 | } 96 | }); 97 | } 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /src/MalwarePatch/Properties/app.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 47 | 54 | 55 | 56 | 57 | 58 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /src/MalwarePatch/Assets/Icons.UserCertificates.xaml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 11 | 16 | 18 | 19 | 20 | 21 | 24 | 25 | 26 | 29 | 30 | 31 | 32 | 36 | 37 | 38 | 39 | 40 | 46 | 51 | 53 | 54 | 55 | 56 | 59 | 60 | 61 | 64 | 65 | 66 | 67 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/MalwarePatch/Styles/LightScrollViewer.xaml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 33 | -------------------------------------------------------------------------------- /src/MalwarePatch/Models/BuiltInCertificates.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using Ace.Files; 7 | using Ace; 8 | using System.Windows; 9 | using System.IO; 10 | using System.Windows.Controls.Primitives; 11 | using System.Windows.Media; 12 | using Ace.Files.Json; 13 | using MalwarePatch.Languages; 14 | using System.Globalization; 15 | using System.Diagnostics; 16 | 17 | namespace MalwarePatch.Models 18 | { 19 | sealed class BuiltInCertificates : Certificates 20 | { 21 | private BuiltInCertificates(params string[] names) 22 | { 23 | foreach (var name in names) 24 | { 25 | var data = getCertificateData(name); 26 | if (data != null) 27 | { 28 | certificateFiles.Add(new CertificateFile(data)); 29 | } 30 | else 31 | { 32 | Debug.WriteLine($"Missing certificate data for {name}"); 33 | } 34 | } 35 | } 36 | 37 | private static readonly List all = new List(); 38 | private static BinaryData getCertificateData(string name) 39 | { 40 | if (BuildConfig.IsUnbundled) 41 | { 42 | var path = Path.Combine("Certificates", name); 43 | if (!File.Exists(path)) 44 | { 45 | return null; 46 | } 47 | return File.ReadAllBytes(path); 48 | } 49 | else 50 | { 51 | var uri = new Uri("/Certificates/" + name, UriKind.Relative); 52 | return AppResource.GetResourceData(uri); 53 | } 54 | } 55 | private static void loadList() 56 | { 57 | all.Clear(); 58 | 59 | var certificateMap = JsonObject 60 | .Parse(AppResource 61 | .GetResourceData("assets/certificate-map.json") 62 | .ToString(true)); 63 | 64 | var displayNameMap = JsonObject 65 | .Parse(AppResource 66 | .GetResourceData("assets/display-names.json") 67 | .ToString(true)); 68 | 69 | const string fallbackLanguageTag = "en-US"; 70 | var languageTag = CultureInfo.CurrentUICulture.IetfLanguageTag; 71 | 72 | if (displayNameMap.ContainsName(languageTag)) 73 | { 74 | displayNameMap = displayNameMap[languageTag].ObjectValue; 75 | } 76 | else 77 | { 78 | displayNameMap = displayNameMap[fallbackLanguageTag].ObjectValue; 79 | } 80 | 81 | var maps = from key in certificateMap.Select(p => p.Name) 82 | join displayName in displayNameMap 83 | on key equals displayName.Name 84 | select ( 85 | certificates: certificateMap[key].ArrayValue.FilterString().ToArray(), 86 | displayName: displayName.StringValue 87 | ); 88 | foreach (var (certificates, displayName) in maps) 89 | { 90 | all.Add(new BuiltInCertificates(certificates) { DisplayName = displayName }); 91 | } 92 | } 93 | public static List All 94 | { 95 | get 96 | { 97 | if (all.Count == 0) 98 | { 99 | loadList(); 100 | } 101 | return all; 102 | } 103 | } 104 | } 105 | 106 | } -------------------------------------------------------------------------------- /src/MalwarePatch/Languages/UpdateLanguage.cs: -------------------------------------------------------------------------------- 1 | using Ace.Wpf.Mvvm; 2 | using MalwarePatch.Models; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | namespace MalwarePatch.Languages 10 | { 11 | sealed class UpdateLanguage : Language 12 | { 13 | public enum Keys 14 | { 15 | WindowTitle, 16 | ButtonDownload, 17 | ButtonRetry, 18 | ButtonRestart, 19 | TextProxyLabel, 20 | NewVerisonTitle, 21 | NewVerisonStatus, 22 | CheckingNewVersion, 23 | NoNewVerisonTitle, 24 | NoNewVerisonStatus, 25 | DownloadingStatus, 26 | DownloadCompleteStatus, 27 | CheckFailedStatus, 28 | CheckFailedTitle, 29 | DownloadFailedStatus, 30 | DownloadFailedTitle, 31 | UpdateFromPreupdateFile, 32 | Unknown, 33 | TextProxyPlaceholder, 34 | } 35 | public UpdateLanguage() 36 | { 37 | translations.Add(new Translation 38 | { 39 | Culture = new System.Globalization.CultureInfo("en-US"), 40 | Texts = new List 41 | { 42 | "Check for updates", 43 | "Download", 44 | "Check Again", 45 | "Restart App", 46 | "Proxy:", 47 | "New Verison Available", 48 | "Found new verison ({0}), click Download to update.", 49 | "Checking updates...", 50 | "Up to date", 51 | "You are on latest verison.", 52 | "Downloading...", 53 | "Download complete. Exit app to run update, or click \"Restart App\" to restart app after updating.", 54 | "Check update failed: {0}", 55 | "Check update failed", 56 | "Download failed: {0}", 57 | "Download failed", 58 | $"You cannot download update using a pre-update file ({Updater.UpdateFileName}).", 59 | "Unknown error.", 60 | "Default" 61 | } 62 | }); 63 | translations.Add(new Translation 64 | { 65 | Culture = new System.Globalization.CultureInfo("zh-CN"), 66 | Texts = new List 67 | { 68 | "检查更新", 69 | "下载更新", 70 | "重新检查", 71 | "重启程序", 72 | "代理:", 73 | "新版本可用", 74 | "已发现新版本({0}),点击下载以开始更新。", 75 | "正在检查新版本...", 76 | "已是最新版本", 77 | "没有发现更新的版本。", 78 | "正在下载...", 79 | "下载完成。关闭程序后将进行更新,或点击\"重启程序\"以在更新完成后再次启动。", 80 | "检查更新失败: {0}", 81 | "检查更新失败", 82 | "下载失败: {0}", 83 | "下载失败", 84 | $"你不能在预更新文件({Updater.UpdateFileName})上下载更新。", 85 | "未知错误。", 86 | "默认", 87 | } 88 | }); 89 | } 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /src/MalwarePatch/Models/UserCertificate.cs: -------------------------------------------------------------------------------- 1 | using Ace; 2 | using Ace.Files; 3 | using MalwarePatch.Languages; 4 | using MalwarePatch.Windows.Dialog; 5 | using System; 6 | using System.Collections.Generic; 7 | using System.IO; 8 | using System.Linq; 9 | using System.Security.Cryptography; 10 | using System.Security.Cryptography.X509Certificates; 11 | using System.Text; 12 | using System.Threading.Tasks; 13 | 14 | namespace MalwarePatch.Models 15 | { 16 | class UserCertificate 17 | { 18 | private readonly string filename; 19 | private readonly UserCertificateLanguage language = new UserCertificateLanguage(); 20 | private static void dialog(string message, string title) 21 | { 22 | // MessageBox.Show(message, title, MessageBoxButton.OK); 23 | DialogWindow.Show(message, title); 24 | } 25 | public UserCertificate(string filename) 26 | { 27 | this.filename = filename; 28 | } 29 | public void Allow() => processCertificate(allow: true, UserCertificateLanguage.Keys.Allowed); 30 | public void Disallow() => processCertificate(allow: false, UserCertificateLanguage.Keys.Disallowed); 31 | private bool Exists => File.Exists(filename); 32 | private CertificateFile Certificate 33 | { 34 | get 35 | { 36 | try 37 | { 38 | var certificate = new X509Certificate2(filename); 39 | return new CertificateFile(certificate); 40 | } 41 | catch (CryptographicException) 42 | { 43 | return null; 44 | } 45 | } 46 | } 47 | private void processCertificate(bool allow, UserCertificateLanguage.Keys messageKey) 48 | { 49 | if (check()) 50 | { 51 | var cert = Certificate; 52 | if (allow) 53 | { 54 | cert.Allow(); 55 | } 56 | else 57 | { 58 | cert.Disallow(); 59 | } 60 | var name = cert.Certificate.GetNameInfo(X509NameType.SimpleName, false); 61 | if (name.IsNullOrWhiteSpace()) 62 | { 63 | name = language[UserCertificateLanguage.Keys.UnknownPublisher]; 64 | } 65 | dialog(string.Format(language[messageKey], name), 66 | language[UserCertificateLanguage.Keys.Complete]); 67 | } 68 | } 69 | private bool check() 70 | { 71 | if (filename.IsNullOrWhiteSpace()) 72 | { 73 | dialog(language[UserCertificateLanguage.Keys.TipMessage], language[UserCertificateLanguage.Keys.Tip]); 74 | return false; 75 | } 76 | if (!Exists) 77 | { 78 | dialog(string.Format(language[UserCertificateLanguage.Keys.FileNotFound], filename), 79 | language[UserCertificateLanguage.Keys.Error]); 80 | return false; 81 | } 82 | if (Certificate is null) 83 | { 84 | dialog(string.Format(language[UserCertificateLanguage.Keys.FileNotSigned], filename), 85 | language[UserCertificateLanguage.Keys.Error]); 86 | return false; 87 | } 88 | return true; 89 | } 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /src/MalwarePatch/Windows/Main/MainViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Globalization; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using MalwarePatch.Languages; 8 | using System.ComponentModel; 9 | using System.Windows; 10 | using MalwarePatch.Commands; 11 | using System.Windows.Controls; 12 | using System.Threading; 13 | using MalwarePatch.Models; 14 | using Ace.Wpf.Mvvm; 15 | using System.Collections.ObjectModel; 16 | 17 | namespace MalwarePatch.Windows.Main 18 | { 19 | sealed partial class MainViewModel : ViewModel 20 | { 21 | public MainViewModel(MainWindow mainWindow) : base(mainWindow) 22 | { 23 | silentCheckUpdate(); 24 | certificates = new ObservableCollection(); 25 | BuiltInCertificates.All.ForEach(cert => 26 | { 27 | if (!cert.IsEmpty) 28 | { 29 | certificates.Add(new CertificateAdapter(cert)); 30 | } 31 | }); 32 | } 33 | private async void silentCheckUpdate() 34 | { 35 | #if DEBUG 36 | await Task.Run(() => 37 | { 38 | //ShowNewVersionPopup = true; 39 | var checker = new VersionChecker(); 40 | var hasNewVersion = false; 41 | try 42 | { 43 | hasNewVersion = checker.HasNewVersion; 44 | } 45 | catch 46 | { 47 | hasNewVersion = false; 48 | } 49 | if (hasNewVersion) 50 | { 51 | ShowNewVersionPopup = true; 52 | } 53 | }); 54 | #else 55 | await Task.Run(() => 56 | { 57 | //ShowNewVersionPopup = true; 58 | var checker = new VersionChecker(); 59 | var hasNewVersion = false; 60 | try 61 | { 62 | hasNewVersion = checker.HasNewVersion; 63 | } 64 | catch 65 | { 66 | hasNewVersion = false; 67 | } 68 | if (hasNewVersion) 69 | { 70 | ShowNewVersionPopup = true; 71 | } 72 | }); 73 | #endif 74 | 75 | } 76 | 77 | private ObservableCollection certificates; 78 | public ObservableCollection Certificates 79 | { 80 | get => certificates; 81 | set 82 | { 83 | certificates = value; 84 | OnPropertyChanged(nameof(Certificates)); 85 | } 86 | } 87 | 88 | private bool showSavedPopup = false; 89 | public bool ShowSavedPopup 90 | { 91 | get => showSavedPopup; 92 | set 93 | { 94 | showSavedPopup = value; 95 | OnPropertyChanged(nameof(ShowSavedPopup)); 96 | if (value) 97 | { 98 | Task.Run(() => 99 | { 100 | Thread.Sleep(2000); 101 | ShowSavedPopup = false; 102 | }); 103 | } 104 | } 105 | } 106 | private bool showNewVersionPopup = false; 107 | public bool ShowNewVersionPopup 108 | { 109 | get => showNewVersionPopup; 110 | set 111 | { 112 | showNewVersionPopup = value; 113 | OnPropertyChanged(nameof(ShowNewVersionPopup)); 114 | if (value) 115 | { 116 | Task.Run(() => 117 | { 118 | Thread.Sleep(5000); 119 | ShowNewVersionPopup = false; 120 | }); 121 | } 122 | } 123 | } 124 | 125 | public bool IsUnbundled => BuildConfig.IsUnbundled; 126 | public bool IsBundled => !BuildConfig.IsUnbundled; 127 | } 128 | } 129 | -------------------------------------------------------------------------------- /src/MalwarePatch/CliTools/SilentUpdater.cs: -------------------------------------------------------------------------------- 1 | using Ace; 2 | using MalwarePatch.Models; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Diagnostics; 6 | using System.IO; 7 | using System.Linq; 8 | using System.Text; 9 | using System.Threading.Tasks; 10 | 11 | namespace MalwarePatch.CliTools 12 | { 13 | internal class SilentUpdater 14 | { 15 | public const string 16 | SilentUpdateParameter = "--silent-update", 17 | DisallowAllParameter = "--disallow-all", 18 | AllowAllParameter = "--allow-all", 19 | ProxyParameter = "--proxy"; 20 | 21 | public static bool TryParse(string[] args) 22 | { 23 | var dictionary = string.Join(" ", args).SplitToDictionary(" ", "=", true); 24 | var proxy = null as string; 25 | //if (dictionary.ContainsKey(ProxyParameter)) 26 | //{ 27 | // proxy = dictionary[ProxyParameter]; 28 | //} 29 | 30 | try 31 | { 32 | if (dictionary.ContainsKey(SilentUpdateParameter) && !BuildConfig.IsUnbundled) 33 | { 34 | Update(dictionary, proxy)?.Wait(); 35 | } 36 | else if (dictionary.ContainsKey(DisallowAllParameter)) 37 | { 38 | DisallowAll().Wait(); 39 | } 40 | else if (dictionary.ContainsKey(AllowAllParameter)) 41 | { 42 | AllowAll().Wait(); 43 | } 44 | else 45 | { 46 | return false; 47 | } 48 | } 49 | catch 50 | { 51 | return false; 52 | } 53 | 54 | return true; 55 | } 56 | public static Task Update(Dictionary dictionary, string proxy = null) 57 | { 58 | var checker = new VersionChecker 59 | { 60 | Proxy = proxy 61 | }; 62 | if (checker.HasNewVersion) 63 | { 64 | return Task.Run(() => 65 | { 66 | var arguments = new Dictionary 67 | { 68 | { Updater.RestartParameter, null } 69 | }; 70 | arguments.AddRange(dictionary); 71 | arguments.Remove(SilentUpdateParameter); 72 | 73 | var finalArguments = string.Join(" ", arguments.Select(item => 74 | { 75 | if (item.Value is null) 76 | { 77 | return item.Key; 78 | } 79 | else 80 | { 81 | return $"{item.Key}={item.Value}"; 82 | } 83 | })); 84 | var updater = new Updater 85 | { 86 | Proxy = proxy, 87 | RestartParameters = finalArguments == Updater.RestartParameter ? "" : finalArguments 88 | }; 89 | updater.DownloadUpdate().Wait(); 90 | if (File.Exists(Updater.UpdateFileName)) 91 | { 92 | var startInfo = new ProcessStartInfo(Updater.UpdateFileName) 93 | { 94 | Arguments = $"{Updater.UpdateParameter}={(Process.GetCurrentProcess().MainModule.FileName.GetFileName()).Quotes()} {updater.RestartParameters}", 95 | WorkingDirectory = Environment.CurrentDirectory, 96 | UseShellExecute = false, 97 | }; 98 | Process.Start(startInfo); 99 | } 100 | }); 101 | } 102 | else 103 | { 104 | return null; 105 | } 106 | } 107 | public static Task DisallowAll() 108 | { 109 | return Task.Run(() => 110 | { 111 | BuiltInCertificates.All.ForEach(c => c.Disallow()); 112 | }); 113 | } 114 | public static Task AllowAll() 115 | { 116 | return Task.Run(() => 117 | { 118 | BuiltInCertificates.All.ForEach(c => c.Allow()); 119 | }); 120 | } 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /src/MalwarePatch/Windows/Update/UpdateViewModel.Commands.cs: -------------------------------------------------------------------------------- 1 | using MalwarePatch.Commands; 2 | using MalwarePatch.Languages; 3 | using MalwarePatch.Models; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Diagnostics; 7 | using System.Linq; 8 | using System.Net; 9 | using System.Text; 10 | using System.Threading.Tasks; 11 | using System.Windows; 12 | 13 | namespace MalwarePatch.Windows.Update 14 | { 15 | partial class UpdateViewModel 16 | { 17 | public DirectCommand CheckUpdateCommand 18 | => new DirectCommand 19 | { 20 | CanExecuteFunc = (o) => IsNotCheckingUpdate, 21 | ExcuteAction = async (o) => 22 | { 23 | IsNotCheckingUpdate = false; 24 | versionChecker.Proxy = getProxy(); 25 | TextStatus = Language[UpdateLanguage.Keys.CheckingNewVersion]; 26 | TextTitle = Language[UpdateLanguage.Keys.CheckingNewVersion]; 27 | await Task.Run(() => 28 | { 29 | try 30 | { 31 | CanDownload = false; 32 | if (versionChecker.HasNewVersion) 33 | { 34 | TextStatus = string.Format(Language[UpdateLanguage.Keys.NewVerisonStatus], versionChecker.NewVersion); 35 | TextTitle = Language[UpdateLanguage.Keys.NewVerisonTitle]; 36 | CanDownload = true; 37 | } 38 | else 39 | { 40 | TextStatus = string.Format(Language[UpdateLanguage.Keys.NoNewVerisonStatus], versionChecker.NewVersion); 41 | TextTitle = Language[UpdateLanguage.Keys.NoNewVerisonTitle]; 42 | } 43 | } 44 | catch (WebException we) 45 | { 46 | TextStatus = string.Format(Language[UpdateLanguage.Keys.CheckFailedStatus], we.Message); 47 | TextTitle = Language[UpdateLanguage.Keys.CheckFailedTitle]; 48 | } 49 | #if !DEBUG 50 | catch (Exception ex) 51 | { 52 | TextStatus = string.Format(Language[UpdateLanguage.Keys.CheckFailedStatus], ex.Message); 53 | TextTitle = Language[UpdateLanguage.Keys.CheckFailedTitle]; 54 | } 55 | #endif 56 | }); 57 | IsNotCheckingUpdate = true; 58 | } 59 | }; 60 | 61 | public DirectCommand DownloadCommand 62 | { 63 | get 64 | { 65 | return new DirectCommand 66 | { 67 | CanExecuteFunc = (o) => true, 68 | ExcuteAction = async (o) => 69 | { 70 | TextStatus = Language[UpdateLanguage.Keys.DownloadingStatus]; 71 | TextTitle = Language[UpdateLanguage.Keys.NewVerisonTitle]; 72 | ProgressValue = 0.0; 73 | CanDownload = false; 74 | IsNotDownloading = false; 75 | updater.ProgressChanged = (s, e) => 76 | { 77 | #if DEBUG 78 | Debug.WriteLine($"{e.BytesReceived}/{e.TotalBytesToReceive}"); 79 | #endif 80 | ProgressValue = e.ProgressPercentage; 81 | }; 82 | updater.Proxy = getProxy(); 83 | try 84 | { 85 | await updater.DownloadUpdate(); 86 | downloadCompleted(); 87 | } 88 | catch (Exception ex) 89 | when (ex is WebException || 90 | ex is InvalidOperationException) 91 | { 92 | downloadFailed(ex.Message); 93 | } 94 | #if !DEBUG 95 | catch (Exception ex) 96 | { 97 | downloadFailed(ex.Message); 98 | } 99 | #endif 100 | 101 | }, 102 | }; 103 | } 104 | } 105 | public DirectCommand RestartCommand 106 | => new DirectCommand 107 | { 108 | CanExecuteFunc = (o) => true, 109 | ExcuteAction = (o) => 110 | { 111 | updater.RestartParameters = Updater.RestartParameter; 112 | Application.Current.Shutdown(); 113 | }, 114 | }; 115 | } 116 | } 117 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | dist/ 5 | 6 | # User-specific files 7 | *.suo 8 | *.user 9 | *.userosscache 10 | *.sln.docstates 11 | 12 | # User-specific files (MonoDevelop/Xamarin Studio) 13 | *.userprefs 14 | 15 | # Build results 16 | [Dd]ebug/ 17 | [Dd]ebugPublic/ 18 | [Rr]elease/ 19 | [Rr]eleases/ 20 | x64/ 21 | x86/ 22 | bld/ 23 | [Bb]in/ 24 | [Oo]bj/ 25 | [Ll]og/ 26 | 27 | # Visual Studio 2015 cache/options directory 28 | .vs/ 29 | # Uncomment if you have tasks that create the project's static files in wwwroot 30 | #wwwroot/ 31 | 32 | # MSTest test Results 33 | [Tt]est[Rr]esult*/ 34 | [Bb]uild[Ll]og.* 35 | 36 | # NUNIT 37 | *.VisualState.xml 38 | TestResult.xml 39 | 40 | # Build Results of an ATL Project 41 | [Dd]ebugPS/ 42 | [Rr]eleasePS/ 43 | dlldata.c 44 | 45 | # DNX 46 | project.lock.json 47 | project.fragment.lock.json 48 | artifacts/ 49 | 50 | *_i.c 51 | *_p.c 52 | *_i.h 53 | *.ilk 54 | *.meta 55 | *.obj 56 | *.pch 57 | *.pdb 58 | *.pgc 59 | *.pgd 60 | *.rsp 61 | *.sbr 62 | *.tlb 63 | *.tli 64 | *.tlh 65 | *.tmp 66 | *.tmp_proj 67 | *.log 68 | *.vspscc 69 | *.vssscc 70 | .builds 71 | *.pidb 72 | *.svclog 73 | *.scc 74 | 75 | # Chutzpah Test files 76 | _Chutzpah* 77 | 78 | # Visual C++ cache files 79 | ipch/ 80 | *.aps 81 | *.ncb 82 | *.opendb 83 | *.opensdf 84 | *.sdf 85 | *.cachefile 86 | *.VC.db 87 | *.VC.VC.opendb 88 | 89 | # Visual Studio profiler 90 | *.psess 91 | *.vsp 92 | *.vspx 93 | *.sap 94 | 95 | # TFS 2012 Local Workspace 96 | $tf/ 97 | 98 | # Guidance Automation Toolkit 99 | *.gpState 100 | 101 | # ReSharper is a .NET coding add-in 102 | _ReSharper*/ 103 | *.[Rr]e[Ss]harper 104 | *.DotSettings.user 105 | 106 | # JustCode is a .NET coding add-in 107 | .JustCode 108 | 109 | # TeamCity is a build add-in 110 | _TeamCity* 111 | 112 | # DotCover is a Code Coverage Tool 113 | *.dotCover 114 | 115 | # NCrunch 116 | _NCrunch_* 117 | .*crunch*.local.xml 118 | nCrunchTemp_* 119 | 120 | # MightyMoose 121 | *.mm.* 122 | AutoTest.Net/ 123 | 124 | # Web workbench (sass) 125 | .sass-cache/ 126 | 127 | # Installshield output folder 128 | [Ee]xpress/ 129 | 130 | # DocProject is a documentation generator add-in 131 | DocProject/buildhelp/ 132 | DocProject/Help/*.HxT 133 | DocProject/Help/*.HxC 134 | DocProject/Help/*.hhc 135 | DocProject/Help/*.hhk 136 | DocProject/Help/*.hhp 137 | DocProject/Help/Html2 138 | DocProject/Help/html 139 | 140 | # Click-Once directory 141 | publish/ 142 | 143 | # Publish Web Output 144 | *.[Pp]ublish.xml 145 | *.azurePubxml 146 | # TODO: Comment the next line if you want to checkin your web deploy settings 147 | # but database connection strings (with potential passwords) will be unencrypted 148 | #*.pubxml 149 | *.publishproj 150 | 151 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 152 | # checkin your Azure Web App publish settings, but sensitive information contained 153 | # in these scripts will be unencrypted 154 | PublishScripts/ 155 | 156 | # NuGet Packages 157 | *.nupkg 158 | # The packages folder can be ignored because of Package Restore 159 | **/packages/* 160 | # except build/, which is used as an MSBuild target. 161 | !**/packages/build/ 162 | # Uncomment if necessary however generally it will be regenerated when needed 163 | #!**/packages/repositories.config 164 | # NuGet v3's project.json files produces more ignoreable files 165 | *.nuget.props 166 | *.nuget.targets 167 | 168 | # Microsoft Azure Build Output 169 | csx/ 170 | *.build.csdef 171 | 172 | # Microsoft Azure Emulator 173 | ecf/ 174 | rcf/ 175 | 176 | # Windows Store app package directories and files 177 | AppPackages/ 178 | BundleArtifacts/ 179 | Package.StoreAssociation.xml 180 | _pkginfo.txt 181 | 182 | # Visual Studio cache files 183 | # files ending in .cache can be ignored 184 | *.[Cc]ache 185 | # but keep track of directories ending in .cache 186 | !*.[Cc]ache/ 187 | 188 | # Others 189 | ClientBin/ 190 | ~$* 191 | *~ 192 | *.dbmdl 193 | *.dbproj.schemaview 194 | *.jfm 195 | *.pfx 196 | *.publishsettings 197 | node_modules/ 198 | orleans.codegen.cs 199 | 200 | # Since there are multiple workflows, uncomment next line to ignore bower_components 201 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 202 | #bower_components/ 203 | 204 | # RIA/Silverlight projects 205 | Generated_Code/ 206 | 207 | # Backup & report files from converting an old project file 208 | # to a newer Visual Studio version. Backup files are not needed, 209 | # because we have git ;-) 210 | _UpgradeReport_Files/ 211 | Backup*/ 212 | UpgradeLog*.XML 213 | UpgradeLog*.htm 214 | 215 | # SQL Server files 216 | *.mdf 217 | *.ldf 218 | 219 | # Business Intelligence projects 220 | *.rdl.data 221 | *.bim.layout 222 | *.bim_*.settings 223 | 224 | # Microsoft Fakes 225 | FakesAssemblies/ 226 | 227 | # GhostDoc plugin setting file 228 | *.GhostDoc.xml 229 | 230 | # Node.js Tools for Visual Studio 231 | .ntvs_analysis.dat 232 | 233 | # Visual Studio 6 build log 234 | *.plg 235 | 236 | # Visual Studio 6 workspace options file 237 | *.opt 238 | 239 | # Visual Studio LightSwitch build output 240 | **/*.HTMLClient/GeneratedArtifacts 241 | **/*.DesktopClient/GeneratedArtifacts 242 | **/*.DesktopClient/ModelManifest.xml 243 | **/*.Server/GeneratedArtifacts 244 | **/*.Server/ModelManifest.xml 245 | _Pvt_Extensions 246 | 247 | # Paket dependency manager 248 | .paket/paket.exe 249 | paket-files/ 250 | 251 | # FAKE - F# Make 252 | .fake/ 253 | 254 | # JetBrains Rider 255 | .idea/ 256 | *.sln.iml 257 | 258 | # CodeRush 259 | .cr/ 260 | 261 | # Python Tools for Visual Studio (PTVS) 262 | __pycache__/ 263 | *.pyc -------------------------------------------------------------------------------- /src/MalwarePatch/Assets/Icons.xaml: -------------------------------------------------------------------------------- 1 | 5 | 15 | 25 | 33 | 41 | 47 | 52 | 54 | 55 | 56 | 57 | 60 | 61 | 62 | 65 | 66 | 67 | 68 | 72 | 73 | 74 | 75 | 81 | 86 | 88 | 89 | 90 | 91 | 94 | 95 | 96 | 99 | 100 | 101 | 102 | 106 | 107 | 108 | 109 | 116 | 117 | 120 | 121 | 122 | 129 | 130 | 133 | 134 | 135 | 142 | 143 | 146 | 147 | 148 | -------------------------------------------------------------------------------- /src/MalwarePatch/Styles/LightButton.xaml: -------------------------------------------------------------------------------- 1 | 4 | 33 | 34 | 35 | 37 | 38 | 40 | 41 | 42 | 44 | 49 | 50 | 52 | 53 | 54 | 55 | 56 | 58 | 63 | 64 | 66 | 67 | 68 | 69 | 70 | 72 | 77 | 78 | 80 | 81 | 82 | 83 | 84 | 87 | 92 | 93 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 106 | 110 | 115 | 116 | 117 | 118 | 119 | 120 | 123 | 124 | 126 | 127 | 128 | 130 | 131 | 132 | 133 | 136 | 137 | 139 | 140 | 141 | 143 | 144 | 145 | 146 | 149 | 153 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | -------------------------------------------------------------------------------- /src/MalwarePatch/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /src/MalwarePatch/Assets/malware-remote-info.json: -------------------------------------------------------------------------------- 1 | { 2 | "360": { 3 | "fixed": [ 4 | "https://dl.360safe.com/inst.exe", 5 | "https://dl.360safe.com/se/360se_setup.exe", 6 | "https://dl.360safe.com/inst_safe_se.exe", 7 | "https://dl.360safe.com/360safe_cq.exe", 8 | "http://down.360safe.com/bizhi/360wallpaper_baidu.exe", 9 | "http://cdn-file-ssl-bizhi.ludashi.com/pc/appstore/huanliang/360wallpaper_360se.exe", 10 | "http://down.360safe.com/bizhi/360wallpaper_bird.exe" 11 | ], 12 | "match": [ 13 | { 14 | "url": "https://sd.360.cn/download_center.html", 15 | "regex": "href=\"(https://.+?.360safe.com/360sd/.+?.exe)", 16 | "group": 1 17 | } 18 | ] 19 | }, 20 | "2345": { 21 | "fixed": [], 22 | "match": [ 23 | { 24 | "url": "https://ie.2345.cc", 25 | "regex": "'href'\\s*:\\s*'(.*?[^beta]\\.exe)',", 26 | "group": 1 27 | } 28 | ] 29 | }, 30 | "Baidu": { 31 | "fixed": [], 32 | "match": [] 33 | }, 34 | "Baishengtong": { 35 | "fixed": [ "https://www.shiyide.com/download/RecoverSetup.exe" ], 36 | "match": [] 37 | }, 38 | "Baofeng": { 39 | "fixed": [ 40 | "http://dl.baofeng.com/baofeng5/bf5_new.exe" 41 | ], 42 | "match": [] 43 | }, 44 | "DongfangToutiao": { 45 | "fixed": [], 46 | "match": [ 47 | { 48 | "url": "https://www.tt.cn", 49 | "regex": "\"(https://www.tt.cn/down/[^\"]+?\\.exe)\"", 50 | "group": 1 51 | } 52 | ] 53 | }, 54 | "DriverLife": { 55 | "fixed": [], 56 | "match": [ 57 | { 58 | "url": "https://qd.160.com/", 59 | "regex": "href=\"(https://file1.updrv.com/.+?DriveTheLife.+?\\.exe)", 60 | "group": 1 61 | } 62 | ] 63 | }, 64 | "FormatFactory": { 65 | "fixed": [ 66 | "http://down.pcgeshi.com/FormatFactory_setup.exe" 67 | ], 68 | "match": [] 69 | }, 70 | "Higeshi": { 71 | "fixed": [], 72 | "match": [ 73 | { 74 | "url": "https://www.hgs.cn", 75 | "regex": "href=\"(https://dl-next.aunbox.cn/channel?.+?)\"", 76 | "group": 1 77 | } 78 | ] 79 | }, 80 | "KuaiZip": { 81 | "fixed": [], 82 | "match": [ 83 | { 84 | "url": "http://www.kuaizip.com/", 85 | "regex": "href=\"(http://dl\\.kkdownload\\.com/.*.exe)", 86 | "group": 1 87 | } 88 | ] 89 | }, 90 | "Kingsoft": { 91 | "fixed": [], 92 | "match": [ 93 | { 94 | "url": "https://www.ijinshan.com/", 95 | "regex": "//cd001.www.duba.net/duba/install/packages/ever/.+?.exe", 96 | "group": 0 97 | }, 98 | { 99 | "url": "https://www.liebao.cn/", 100 | "regex": "https://dl.liebao.cn/coop/KSbrowser.+?.exe", 101 | "group": 0 102 | }, 103 | { 104 | "url": "https://www.wps.cn/platformUrls", 105 | "regex": "productButtonUrl\":\\s*\"(.+)\",", 106 | "group": 1 107 | } 108 | ] 109 | }, 110 | "Kugou": { 111 | "fixed": [ 112 | "http://download.kugou.com/download/kugou_pc" 113 | ], 114 | "match": [] 115 | }, 116 | "Kuwo": { 117 | "fixed": [ 118 | "http://down.kuwo.cn/mbox/kwmusic_web_4.exe" 119 | ], 120 | "match": [] 121 | }, 122 | "PPTV": { 123 | "fixed": [ 124 | "http://app.aplus.pptv.com/minisite/download/" 125 | ], 126 | "match": [] 127 | }, 128 | "iQIYI": { 129 | "fixed": [ 130 | "http://dl.static.iqiyi.com/hz/IQIYIsetup_app.exe" 131 | ], 132 | "match": [] 133 | }, 134 | "Rising": { 135 | "fixed": [], 136 | "match": [ 137 | { 138 | "url": "http://www.rising.com.cn/service/javascript/RsDownProVer.js", 139 | "regex": "var RsPcV17Url=\"(.*)\"", 140 | "group": 1 141 | } 142 | ] 143 | }, 144 | "Shaji": { 145 | "fixed": [ "https://softdl.ahhxwavi.cn/pc/pdfconvert/PDFConverter_guanwang-1.exe" ], 146 | "match": [] 147 | }, 148 | "Sogou": { 149 | "fixed": [], 150 | "match": [ 151 | { 152 | "url": "https://pinyin.sogou.com/windows/?t=pinyin", 153 | "regex": "https://.+pc/dl/.+sogou_pinyin_.+\\.exe", 154 | "group": 0 155 | }, 156 | { 157 | "url": "https://sogou.browser.qq.com/", 158 | "regex": "href=\"([^\"]*?SogouExplorer_Setup[^\"]*?)\"", 159 | "group": 1 160 | } 161 | ] 162 | }, 163 | "Sohu": { 164 | "fixed": [], 165 | "match": [ 166 | { 167 | "url": "https://tv.sohu.com/down/index.shtml?downLoad=win", 168 | "regex": "href=\"(.*?)\".*donwbtn", 169 | "group": 1 170 | } 171 | ] 172 | }, 173 | "Taobao": { 174 | "fixed": [ 175 | "https://alimarket.taobao.com/markets/qnww/aliww-download?wh_from=win" 176 | ], 177 | "match": [] 178 | }, 179 | "Tencent": { 180 | "fixed": [], 181 | "match": [ 182 | { 183 | "url": "https://office.qq.com/download.html", 184 | "regex": "href=\"(.*?)\".*tim.downloads.windows", 185 | "group": 1 186 | }, 187 | { 188 | "url": "https://guanjia.qq.com/", 189 | "regex": "https://pm.myapp.com/invc/xfspeed/qqpcmgr/download/.+\\.exe", 190 | "group": 0 191 | } 192 | ] 193 | }, 194 | "Thunder": { 195 | "fixed": [ 196 | "https://down.sandai.net/XLNetAcc/XLNetAccSetup.exe" 197 | ], 198 | "match": [ 199 | { 200 | "url": "https://dl.xunlei.com/", 201 | "regex": "href=\"(https://down.sandai.net/thunder11/.+?.exe)", 202 | "group": 1 203 | }, 204 | { 205 | "url": "https://dl.xunlei.com/", 206 | "regex": "href=\"(https://xmp.down.sandai.net/xmp/.+?.exe)", 207 | "group": 1 208 | } 209 | ] 210 | }, 211 | "Xundu": { 212 | "fixed": [], 213 | "match": [ 214 | { 215 | "url": "http://yijirecovery.com/html/index/", 216 | "regex": "href=\"(http://archive.yijirecovery.com/.+?.exe)", 217 | "group": 1 218 | } 219 | ] 220 | } 221 | } 222 | -------------------------------------------------------------------------------- /src/MalwarePatch/Windows/Update/UpdateViewModel.cs: -------------------------------------------------------------------------------- 1 | using MalwarePatch.Commands; 2 | using MalwarePatch.Models; 3 | using Ace.Settings; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows; 10 | using System.Net; 11 | using System.ComponentModel; 12 | using System.Windows.Input; 13 | using System.Diagnostics; 14 | using System.Windows.Shell; 15 | using System.Net.Configuration; 16 | using MalwarePatch.Languages; 17 | using Ace.Wpf.Mvvm; 18 | 19 | namespace MalwarePatch.Windows.Update 20 | { 21 | sealed partial class UpdateViewModel : ViewModel 22 | { 23 | public UpdateViewModel(UpdateWindow view) : base(view) 24 | { 25 | versionChecker = new VersionChecker(); 26 | updater = new Updater(); 27 | } 28 | private VersionChecker versionChecker; 29 | private Updater updater; 30 | //I couldn't find any method to get system proxy...maybe null should work 31 | private string SystemProxy => null; 32 | private string getProxy() => String.IsNullOrWhiteSpace(TextProxy) ? SystemProxy : TextProxy; 33 | 34 | 35 | 36 | private string textTitle = ""; 37 | public string TextTitle 38 | { 39 | get => textTitle; 40 | set 41 | { 42 | textTitle = value; 43 | OnPropertyChanged(nameof(TextTitle)); 44 | } 45 | } 46 | private double progressValue = 0.0; 47 | public double ProgressValue 48 | { 49 | get => progressValue; 50 | set 51 | { 52 | progressValue = value; 53 | OnPropertyChanged(nameof(ProgressValue)); 54 | OnPropertyChanged(nameof(ProgressText)); 55 | OnPropertyChanged(nameof(TaskBarProgressValue)); 56 | View.SetProgress(value); 57 | } 58 | } 59 | public double TaskBarProgressValue => progressValue / 100.0; 60 | public string ProgressText => $"{progressValue:0.##}%"; 61 | private string textStatus = ""; 62 | public string TextStatus 63 | { 64 | get => textStatus; 65 | set 66 | { 67 | textStatus = value; 68 | OnPropertyChanged(nameof(TextStatus)); 69 | } 70 | } 71 | private string textProxy = ""; 72 | public string TextProxy 73 | { 74 | get => textProxy; 75 | set 76 | { 77 | textProxy = value; 78 | OnPropertyChanged(nameof(TextProxy)); 79 | } 80 | } 81 | private bool isNotCheckingUpdate = true; 82 | public bool IsNotCheckingUpdate 83 | { 84 | get => isNotCheckingUpdate; 85 | set 86 | { 87 | isNotCheckingUpdate = value; 88 | OnPropertyChanged(nameof(IsNotCheckingUpdate)); 89 | OnPropertyChanged(nameof(IsProxyEditable)); 90 | OnPropertyChanged(nameof(IsCheckUpdateEnabled)); 91 | } 92 | } 93 | public bool IsCheckUpdateEnabled => IsNotCheckingUpdate && IsNotDownloading && !IsDownloadComplete; 94 | 95 | private bool canDownload = false; 96 | public bool CanDownload 97 | { 98 | get => canDownload; 99 | set 100 | { 101 | canDownload = value; 102 | OnPropertyChanged(nameof(CanDownload)); 103 | OnPropertyChanged(nameof(IsDownloadEnabled)); 104 | } 105 | } 106 | private bool showProgressBar = false; 107 | public bool ShowProgressBar 108 | { 109 | get => showProgressBar; 110 | set 111 | { 112 | showProgressBar = value; 113 | OnPropertyChanged(nameof(ShowProgressBar)); 114 | } 115 | } 116 | private bool isNotDownloading = true; 117 | public bool IsNotDownloading 118 | { 119 | get => isNotDownloading; 120 | set 121 | { 122 | isNotDownloading = value; 123 | ShowProgressBar = !value; 124 | ProgressState = value ? TaskbarItemProgressState.None : TaskbarItemProgressState.Normal; 125 | OnPropertyChanged(nameof(IsNotDownloading)); 126 | OnPropertyChanged(nameof(IsProxyEditable)); 127 | OnPropertyChanged(nameof(IsDownloadEnabled)); 128 | OnPropertyChanged(nameof(IsCheckUpdateEnabled)); 129 | } 130 | } 131 | 132 | private TaskbarItemProgressState progressState; 133 | public TaskbarItemProgressState ProgressState 134 | { 135 | get => progressState; 136 | set 137 | { 138 | progressState = value; 139 | OnPropertyChanged(nameof(ProgressState)); 140 | } 141 | } 142 | 143 | 144 | public bool IsProxyEditable => IsNotDownloading && IsNotCheckingUpdate; 145 | public bool IsDownloadEnabled => CanDownload && IsNotDownloading && !IsDownloadComplete; 146 | private void downloadFailed(string message) 147 | { 148 | TextStatus = string.Format(Language[UpdateLanguage.Keys.DownloadFailedStatus], message ?? Language[UpdateLanguage.Keys.Unknown]); 149 | TextTitle = Language[UpdateLanguage.Keys.DownloadFailedTitle]; 150 | CanDownload = IsNotDownloading = true; 151 | } 152 | private void downloadCompleted() 153 | { 154 | TextStatus = Language[UpdateLanguage.Keys.DownloadCompleteStatus]; 155 | updater.SetUpdatePlan(); 156 | IsNotDownloading = true; 157 | IsDownloadComplete = true; 158 | } 159 | 160 | private bool isDownloadComplete = false; 161 | public bool IsDownloadComplete 162 | { 163 | get => isDownloadComplete; 164 | set 165 | { 166 | isDownloadComplete = value; 167 | OnPropertyChanged(nameof(IsDownloadComplete)); 168 | OnPropertyChanged(nameof(IsCheckUpdateEnabled)); 169 | OnPropertyChanged(nameof(IsDownloadEnabled)); 170 | } 171 | } 172 | 173 | } 174 | } 175 | -------------------------------------------------------------------------------- /src/MalwarePatch/Models/Updater.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using Ace; 7 | using Ace.Web; 8 | using System.Windows; 9 | using System.IO; 10 | using System.Diagnostics; 11 | using System.Net; 12 | using System.Reflection; 13 | using System.Threading; 14 | using MalwarePatch.Languages; 15 | using MalwarePatch.Windows.Main; 16 | 17 | namespace MalwarePatch.Models 18 | { 19 | sealed class Updater 20 | { 21 | /// 22 | /// 更新源的ID 23 | /// 24 | private const string UpdateId = "0B4uebmDoSFx-c0kzcG5yVlZVMlE"; 25 | public static readonly string UpdateUrl = "https://github.com/the1812/Malware-Patch/releases"; 26 | 27 | public string Proxy { get; set; } 28 | private UpdateLanguage Languages { get; } = new UpdateLanguage(); 29 | public DownloadProgressChangedEventHandler ProgressChanged { get; set; } 30 | 31 | public const string 32 | UpdateFileName = "__mwp.exe", 33 | UpdateParameter = "--update", 34 | RestartParameter = "--restart", 35 | RemoveOldFileParameter = "--remove"; 36 | public Task DownloadUpdate() 37 | { 38 | if (Process.GetCurrentProcess().MainModule.FileName.GetFileName() == UpdateFileName) 39 | { 40 | var message = Languages[UpdateLanguage.Keys.UpdateFromPreupdateFile]; 41 | throw new InvalidOperationException(message); 42 | } 43 | if (File.Exists(UpdateFileName)) 44 | { 45 | File.Delete(UpdateFileName); 46 | } 47 | var folderName = BuildConfig.IsUnbundled ? "unbundled" : "bundled"; 48 | var downloadLink = $"https://github.com/the1812/malware-patch/raw/master/dist/{folderName}/mwp.exe"; 49 | var info = new DownloadInfo(downloadLink) 50 | { 51 | Proxy = Proxy, 52 | ProgressChanged = ProgressChanged, 53 | }; 54 | return info.DownloadFileAsync(UpdateFileName); 55 | } 56 | public string RestartParameters { get; set; } = ""; 57 | public void SetUpdatePlan() 58 | { 59 | Application.Current.Exit += (s, e) => 60 | { 61 | if (File.Exists(UpdateFileName)) 62 | { 63 | var startInfo = new ProcessStartInfo(UpdateFileName) 64 | { 65 | Arguments = $"{UpdateParameter}={(Process.GetCurrentProcess().MainModule.FileName.GetFileName()).Quotes()} {RestartParameters}", 66 | WorkingDirectory = Environment.CurrentDirectory, 67 | UseShellExecute = false, 68 | }; 69 | Process.Start(startInfo); 70 | } 71 | }; 72 | } 73 | /// 74 | /// 安装更新(如果有)并启动应用 75 | /// 76 | /// 应用 77 | /// 命令行参数 78 | public static void InstallUpdateAndRun(App app, string[] args) 79 | { 80 | const int maxWaitTimes = 60; 81 | var waitTimes = 0; 82 | void removeUpdateFile() 83 | { 84 | var selfFileName = Process.GetCurrentProcess().MainModule.FileName.GetFileName(); 85 | var fileNameToRemove = UpdateFileName; 86 | if (selfFileName != fileNameToRemove 87 | && File.Exists(fileNameToRemove)) 88 | { 89 | //Ensure the old app has exited 90 | while (Utils.IsRunning(fileNameToRemove)) 91 | { 92 | Thread.Sleep(500); 93 | waitTimes++; 94 | if (waitTimes > maxWaitTimes) 95 | { 96 | app.Shutdown(); 97 | } 98 | } 99 | Thread.Sleep(500); 100 | File.Delete(fileNameToRemove); 101 | } 102 | } 103 | void copyUpdateFile(Dictionary dictionary) 104 | { 105 | var targetFileName = dictionary[UpdateParameter].NoQuotes(); 106 | var selfFileName = Process.GetCurrentProcess().MainModule.FileName.GetFileName(); 107 | #if DEBUG 108 | //MessageBox.Show(targetFileName, selfFileName); 109 | #endif 110 | if (!selfFileName.EqualsIgnoreCase(targetFileName)) 111 | { 112 | //Ensure the old app has exited 113 | while (Utils.IsRunning(targetFileName)) 114 | { 115 | Thread.Sleep(500); 116 | waitTimes++; 117 | if (waitTimes > maxWaitTimes) 118 | { 119 | app.Shutdown(); 120 | } 121 | } 122 | //Thread.Sleep(500); 123 | File.Copy(selfFileName, targetFileName, true); 124 | Process.Start(new ProcessStartInfo 125 | { 126 | FileName = targetFileName, 127 | WorkingDirectory = Environment.CurrentDirectory, 128 | Arguments = RemoveOldFileParameter, 129 | }); 130 | //Check if restart is required 131 | if (dictionary.ContainsKey(RestartParameter)) 132 | { 133 | var arguments = new Dictionary(dictionary); 134 | arguments.Remove(RestartParameter); 135 | arguments.Remove(UpdateParameter); 136 | Process.Start(new ProcessStartInfo 137 | { 138 | Arguments = string.Join(" ", arguments.Select(kv => 139 | { 140 | if (kv.Value is null) 141 | { 142 | return kv.Key; 143 | } 144 | else 145 | { 146 | return $"{kv.Key}={kv.Value}"; 147 | } 148 | })), 149 | FileName = targetFileName, 150 | WorkingDirectory = Environment.CurrentDirectory, 151 | }); 152 | } 153 | } 154 | } 155 | if ((args?.Length ?? -1) > 0) 156 | { 157 | var oldVersionParameter = $"{UpdateParameter}:"; 158 | var flattenedArgs = string.Join(" ", args); 159 | Dictionary dictionary = null; 160 | if (!flattenedArgs.Contains(oldVersionParameter)) 161 | { 162 | dictionary = flattenedArgs.SplitToDictionary(" ", "=", true); 163 | } 164 | else 165 | { 166 | dictionary = flattenedArgs.SplitToDictionary(" ", ":", true); 167 | } 168 | #if DEBUG 169 | File.AppendAllText("args.txt", Environment.NewLine + flattenedArgs); 170 | #endif 171 | 172 | if (dictionary.ContainsKey(UpdateParameter)) 173 | { 174 | copyUpdateFile(dictionary); 175 | } 176 | else if (dictionary.ContainsKey(RemoveOldFileParameter)) 177 | { 178 | removeUpdateFile(); 179 | } 180 | } 181 | else 182 | { 183 | new MainWindow().ShowDialog(); 184 | } 185 | app.Shutdown(); 186 | } 187 | } 188 | } 189 | -------------------------------------------------------------------------------- /src/MalwarePatch/Assets/certificate-map.json: -------------------------------------------------------------------------------- 1 | { 2 | "360": [ 3 | "360.cer", 4 | "360 256.cer", 5 | "360 sd.cer", 6 | "360 browser 2018.11.cer", 7 | "360 browser 256.2018.11.cer", 8 | "360 wallpaper 2020.02.cer", 9 | "360 wallpaper 256.2020.02.cer", 10 | "360 browser 2020.02.cer", 11 | "360 browser 256.2020.02.cer", 12 | "360 wallpaper 2022.01.cer", 13 | "360 wallpaper 256.2022.01.cer", 14 | "360 browser 2022.01.cer", 15 | "360 browser 256.2022.04.cer", 16 | "360 ludashi 2022.04.cer", 17 | "360 ludashi 256.2022.04.cer", 18 | "360 browser 256.2023.08.cer" 19 | ], 20 | "2345": [ 21 | "2345.cer", 22 | "2345 256.cer", 23 | "2345 browser.cer", 24 | "2345 browser 256.cer", 25 | "2345 2019.6.cer", 26 | "2345 256.2019.6.cer", 27 | "2345 browser 2020.06.cer", 28 | "2345 browser 256.2020.06.cer", 29 | "2345 browser 2020.10.cer", 30 | "2345 browser 256.2020.10.cer", 31 | "2345 browser 2023.08.cer", 32 | "2345 browser 256.2023.08.cer" 33 | ], 34 | "6789": [ 35 | "6789.cer", 36 | "6789 256.cer", 37 | "6789 256.2019.4.cer" 38 | ], 39 | "Aogewei": [ 40 | "aogewei 256.2022.04.cer" 41 | ], 42 | "Baidu": [ 43 | "baidu.cer", 44 | "baidusp.cer", 45 | "baidu browser.cer", 46 | "baidu download.cer", 47 | "baidu browser.2018.7.8.cer", 48 | "baidu browser 256.2018.7.8.cer", 49 | "baidu netdisk.cer", 50 | "baidu netdisk 256.cer", 51 | "baidu netdisk 2024.05.cer", 52 | "baidu netdisk 256.2024.05.cer" 53 | ], 54 | "Baishengtong": [ 55 | "baishengtong 2022.04.cer", 56 | "baishengtong 256.2022.04.cer", 57 | "baishengtong 2023.08.cer", 58 | "baishengtong 256.2023.08.cer" 59 | ], 60 | "Baofeng": [ 61 | "baofeng.cer", 62 | "baofeng 256.cer", 63 | "baofeng 2020.10.cer", 64 | "baofeng 2022.01.cer", 65 | "baofeng 2023.02.cer" 66 | ], 67 | "DongfangToutiao": [ 68 | "donfang toutiao.cer", 69 | "donfang toutiao 256.cer", 70 | "donfang toutiao 2020.1.cer", 71 | "donfang toutiao 256.2020.1.cer" 72 | ], 73 | "DriverLife": [ 74 | "driveTheLife.cer", 75 | "driveTheLife 256.cer", 76 | "driveTheLife 2019.6.cer", 77 | "driveTheLife 256.2019.6.cer", 78 | "driveTheLife 2020.06.cer", 79 | "driveTheLife 256.2020.06.cer", 80 | "driveTheLife 256.2023.08.cer", 81 | "driveTheLife 256.2024.10.cer" 82 | ], 83 | "Funshion": [ 84 | "funshion.cer" 85 | ], 86 | "FormatFactory": [ 87 | "grid verse (format factory).cer", 88 | "grid verse (format factory) 256.cer", 89 | "grid verse (format factory) 2018.12.cer", 90 | "grid verse (format factory) 2020.02.cer", 91 | "grid verse (format factory) 256.2020.02.cer", 92 | "grid verse (format factory) 256.2020.08.cer", 93 | "grid verse (format factory) 256.2022.07.cer" 94 | ], 95 | "HeiNote": [ 96 | "7654 note.cer", 97 | "7654 note 256.cer", 98 | "7654 note 2019.10.cer", 99 | "7654 note 256.2019.10.cer", 100 | "7654 note 2021.10.cer", 101 | "7654 note 256.2021.10.cer" 102 | ], 103 | "Higeshi": [ 104 | "higeshi 2022.04.cer", 105 | "higeshi 256.2022.04.cer" 106 | ], 107 | "Huya": [ 108 | "huya 256.2022.04.cer" 109 | ], 110 | "KuaiZip": [ 111 | "kuaizip.cer", 112 | "kuaizip 256.cer" 113 | ], 114 | "Kingsoft": [ 115 | "kingsoft.cer", 116 | "kingsoft 256.cer", 117 | "kingsoft ws.cer", 118 | "kingsoft browser.cer", 119 | "kingsoft browser 256.cer", 120 | "kingsoft wps.cer", 121 | "kingsoft wps 256.cer", 122 | "kingsoft 2019.6.cer", 123 | "kingsoft 256.2019.6.cer", 124 | "kingsoft 2020.02.cer", 125 | "kingsoft 256.2020.02.cer", 126 | "kingsoft 2020.06.cer", 127 | "kingsoft 256.2020.06.cer", 128 | "kingsoft browser 256.2021.06.cer", 129 | "kingsoft 256.2021.06.cer", 130 | "kingsoft 2022.01.cer", 131 | "kingsoft 256.2022.01.cer", 132 | "kingsoft 256.2022.07.cer", 133 | "kingsoft 256.2024.06.cer", 134 | "kingsoft 2024.10.cer", 135 | "kingsoft 256.2024.10.cer" 136 | ], 137 | "Kugou": [ 138 | "kugou.cer", 139 | "kugou 2022.01.cer", 140 | "kugou 256.2022.01.cer", 141 | "kugou 2024.02.cer", 142 | "kugou 256.2024.02.cer" 143 | ], 144 | "Kuwo": [ 145 | "kuwo.cer", 146 | "kuwo 2020.02.cer", 147 | "kuwo 256.2020.02.cer", 148 | "kuwo 256.2023.08.cer" 149 | ], 150 | "LeTV": [ 151 | "leshi.cer", 152 | "leshi 256.cer" 153 | ], 154 | "PPTV": [ 155 | "pptv.cer", 156 | "pptv 256.cer", 157 | "pptv 2019.1.cer", 158 | "pptv 256.2019.1.cer", 159 | "pplive.cer", 160 | "pplive 256.cer", 161 | "pptv 2022.07.cer", 162 | "pptv 256.2022.07.cer", 163 | "pptv 2023.08.cer", 164 | "pptv 256.2023.08.cer" 165 | ], 166 | "iQIYI": [ 167 | "qiyi.cer", 168 | "qiyi 256.cer", 169 | "qiyi 2020.02.cer", 170 | "qiyi 256.2020.02.cer", 171 | "qiyi 256.2021.02.cer", 172 | "qiyi 256.2023.08.cer" 173 | ], 174 | "Qidian": [ 175 | "qidian 256.2023.02.cer" 176 | ], 177 | "Rising": [ 178 | "rising.cer", 179 | "rising 256.cer", 180 | "rising 2018.9.cer", 181 | "rising 256.2018.9.cer", 182 | "rising 2019.8.cer", 183 | "rising 256.2019.8.cer", 184 | "rising 2022.07.cer", 185 | "rising 256.2022.07.cer" 186 | ], 187 | "Riyue": [ 188 | "riyue (at).cer", 189 | "riyue (at) 256.cer", 190 | "xingcheng (at).cer", 191 | "xingcheng (at) 256.cer", 192 | "shabake 256.2021.10.cer", 193 | "fengqi (at) 2022.01.cer", 194 | "fengqi (at) 256.2022.01.cer", 195 | "tingfengyu (at) 256.2022.04.cer", 196 | "tuling times 256.2022.04.cer" 197 | ], 198 | "Ruanmei": [ 199 | "ruanmei.cer", 200 | "ruanmei 256.cer", 201 | "ruanmei 256.2019.1.cer" 202 | ], 203 | "Shaji": [ 204 | "shaji 2022.04.cer", 205 | "shaji 256.2022.04.cer" 206 | ], 207 | "Sogou": [ 208 | "sogou.cer", 209 | "sogou 256.cer", 210 | "sogou 2019.8.cer", 211 | "sogou 256.2019.8.cer", 212 | "sogou 2019.10.cer", 213 | "sogou 256.2019.10.cer", 214 | "sogou 2020.10.cer", 215 | "sogou 256.2020.10.cer", 216 | "sogou 256.2021.10.cer", 217 | "sogou 256.2024.10.cer" 218 | ], 219 | "Sohu": [ 220 | "sohu.cer", 221 | "sohu 2018.12.cer", 222 | "sohu 2021.04.cer", 223 | "sohu 2021.06.cer", 224 | "sohu 2024.06.cer", 225 | "sohu 256.2024.06.cer" 226 | ], 227 | "Tencent": [ 228 | "tencent.cer", 229 | "tencent 256.cer", 230 | "tencent 2018.11.cer", 231 | "tencent 256.2018.11.cer", 232 | "tencent 2020.02.cer", 233 | "tencent 256.2020.02.cer", 234 | "tencent 2021.02.cer", 235 | "tencent 256.2021.02.cer", 236 | "tencent 256.2024.02.cer", 237 | "tencent 256.2024.10.cer" 238 | ], 239 | "Thunder": [ 240 | "thunder.cer", 241 | "thunder 256.cer", 242 | "thunder 2018.9.cer", 243 | "thunder 256.2018.9.cer", 244 | "thunder player.cer", 245 | "thunder player 256.cer", 246 | "thunder game.cer", 247 | "thunder game 256.cer", 248 | "thunder game.2018.7.8.cer", 249 | "thunder game 256.2018.7.8.cer", 250 | "thunder accel.cer", 251 | "thunder accel 256.cer", 252 | "thunder player 2018.12.cer", 253 | "thunder player 256.2018.12.cer", 254 | "thunder 2020.1.cer", 255 | "thunder 256.2020.1.cer", 256 | "thunder 256.2023.02.cer" 257 | ], 258 | "WindSoul": [ 259 | "windsoul 256.2024.06.cer" 260 | ], 261 | "Xundu": [ 262 | "xundu 256.2022.04.cer" 263 | ], 264 | "Youku": [ 265 | "youku.cer", 266 | "youku 256.cer", 267 | "youku 2018.8.cer", 268 | "youku 256.2018.8.cer" 269 | ], 270 | "Yunbiao": [ 271 | "yunbiao 2022.04.cer", 272 | "yunbiao 256.2022.04.cer" 273 | ], 274 | "YY": [ 275 | "yy.cer", 276 | "yy 256.cer", 277 | "yy browser.cer", 278 | "yy 2018.12.cer", 279 | "yy 256.2018.12.cer", 280 | "yy 2020.1.cer", 281 | "yy 256.2020.1.cer", 282 | "yy 256.2021.02.cer", 283 | "yy 256.2022.04.cer", 284 | "yy 256.2023.02.cer", 285 | "yy 256.2023.08.cer", 286 | "yy 256.2024.06.cer" 287 | ], 288 | "ZhongCheng": [ 289 | "zhongcheng (flash cn) 256.2022.01.cer" 290 | ] 291 | } 292 | -------------------------------------------------------------------------------- /src/MalwarePatch/CliTools/MalwareChecker.cs: -------------------------------------------------------------------------------- 1 | using Ace; 2 | using Ace.Files; 3 | using Ace.Files.Json; 4 | using Ace.Wpf.Mvvm; 5 | using MalwarePatch.Windows.Check; 6 | using System; 7 | using System.Collections.Generic; 8 | using System.IO; 9 | using System.Linq; 10 | using System.Net; 11 | using System.Net.Mime; 12 | using System.Security.Cryptography; 13 | using System.Security.Cryptography.X509Certificates; 14 | using System.Text; 15 | using System.Threading; 16 | using System.Threading.Tasks; 17 | using System.Windows.Shell; 18 | 19 | namespace MalwarePatch.CliTools 20 | { 21 | class MalwareCheckException : Exception 22 | { 23 | public MalwareCheckException(string message) : base(message) { } 24 | public MalwareCheckException() : base() { } 25 | } 26 | class MalwareChecker 27 | { 28 | private const string InfoPath = @"assets/malware-remote-info.json"; 29 | private const string UserAgent = @"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"; 30 | private readonly JsonObject infoObject; 31 | private readonly StringBuilder stringBuilder = new StringBuilder(); 32 | private readonly bool clean = false; 33 | private static readonly string CheckerOutput = "samples"; 34 | private static readonly string LogFileName = Path.Combine(CheckerOutput, "mwp-check.log"); 35 | private double downloadedCount = 0; 36 | 37 | public MalwareChecker(bool clean = false) 38 | { 39 | this.clean = clean; 40 | infoObject = JsonObject.Parse(AppResource.GetResourceData(InfoPath).ToString(true)); 41 | } 42 | public static bool TryParse(string[] args) 43 | { 44 | if (args.Length == 0) 45 | { 46 | return false; 47 | } 48 | if (args[0].EqualsIgnoreCase("--malware-check")) 49 | { 50 | new CheckWindow(args.Length > 1 && args[1] == "--clean").ShowDialog(); 51 | return true; 52 | } 53 | else 54 | { 55 | return false; 56 | } 57 | } 58 | public MalwareCheckerModel Model { get; } = new MalwareCheckerModel(); 59 | public bool Debug { get; set; } = false; 60 | public Task Start() 61 | { 62 | stringBuilder.Clear(); 63 | downloadedCount = 0; 64 | Model.ProgressState = TaskbarItemProgressState.Normal; 65 | log("Malware checker started"); 66 | return Task.Run(() => 67 | { 68 | if (!Directory.Exists(CheckerOutput)) 69 | { 70 | Directory.CreateDirectory(CheckerOutput); 71 | } 72 | Parallel.ForEach(infoObject, property => downloadCategory(property)); 73 | Stop(); 74 | }); 75 | } 76 | public void Stop() 77 | { 78 | log("Malware checker completed"); 79 | Model.ProgressState = TaskbarItemProgressState.None; 80 | lock (stringBuilder) 81 | { 82 | File.WriteAllText(LogFileName, stringBuilder.ToString()); 83 | } 84 | } 85 | private void log(string message) 86 | { 87 | lock (stringBuilder) 88 | { 89 | stringBuilder 90 | .Append($"[{DateTime.Now}] ") 91 | .Append(message) 92 | .Append(Environment.NewLine); 93 | System.Diagnostics.Debug.WriteLine(message); 94 | } 95 | } 96 | private void error(string message) 97 | { 98 | lock (stringBuilder) 99 | { 100 | stringBuilder 101 | .Append(Environment.NewLine) 102 | .Append($"[{DateTime.Now}] ") 103 | .Append(message) 104 | .Append(Environment.NewLine) 105 | .Append(Environment.NewLine); 106 | System.Diagnostics.Debug.WriteLine(message); 107 | } 108 | } 109 | private void downloadCategory(JsonProperty category) 110 | { 111 | try 112 | { 113 | Model.Message = $"Downloading: {category.Name}"; 114 | downloadFixedUrl(category.ObjectValue["fixed"].ArrayValue); 115 | // log($"Downloaded fixed urls of {category.Name}"); 116 | downloadRegexUrl(category.ObjectValue["match"].ArrayValue); 117 | // log($"Downloaded regex urls of {category.Name}"); 118 | downloadedCount++; 119 | Model.ProgressValue = downloadedCount / infoObject.Count; 120 | } 121 | catch (Exception ex) 122 | when (ex is MalwareCheckException || ex is WebException /*|| ex is CryptographicException*/) 123 | { 124 | error($"Error downloading {category.Name}: {ex.Message}"); 125 | } 126 | } 127 | private void downloadUrl(string url) 128 | { 129 | if (!Debug) 130 | { 131 | using (var webClient = new WebClient()) 132 | { 133 | if (url.StartsWith("//")) 134 | { 135 | url = "http:" + url; 136 | } 137 | webClient.Headers["user-agent"] = UserAgent; 138 | var filename = Path.Combine(CheckerOutput, md5(url) + ".exe"); 139 | if (!File.Exists(filename)) 140 | { 141 | var data = webClient.DownloadData(url); 142 | File.WriteAllBytes(filename, data); 143 | log($"Downloaded: {url}"); 144 | } 145 | else 146 | { 147 | log($"Already downloaded: {url}"); 148 | } 149 | verifyCertificate(filename); 150 | } 151 | } 152 | else 153 | { 154 | // Thread.Sleep(3000); 155 | log($"Debug download: {url}"); 156 | } 157 | } 158 | private void verifyCertificate(string path) 159 | { 160 | var disallowed = false; 161 | try 162 | { 163 | var certificate = new CertificateFile(new X509Certificate2(path)); 164 | disallowed = certificate.IsDisallowed; 165 | certificate.Dispose(); 166 | } 167 | catch (CryptographicException ex) 168 | { 169 | error($"Certificate error: {ex.Message}, path={path}"); 170 | } 171 | 172 | if (disallowed) 173 | { 174 | if (clean) 175 | { 176 | try 177 | { 178 | File.Delete(path); 179 | log($"Verified {path}: Disallowed and deleted."); 180 | } 181 | catch (Exception ex) 182 | { 183 | error($"Error deleting file {path}: {ex.Message}"); 184 | } 185 | } 186 | else 187 | { 188 | log($"Verified {path}: Disallowed."); 189 | } 190 | } 191 | else 192 | { 193 | log($"Verified {path}: NOT disallowed."); 194 | } 195 | } 196 | private void downloadFixedUrl(JsonArray array) 197 | { 198 | array.ToStringList().ForEach(url => downloadUrl(url)); 199 | } 200 | private void downloadRegexUrl(JsonArray array) 201 | { 202 | foreach (var matchInfo in array.ToObjectList()) 203 | { 204 | var url = matchInfo["url"].StringValue; 205 | var html = ""; 206 | try 207 | { 208 | using (var webClient = new WebClient()) 209 | { 210 | webClient.Headers["user-agent"] = UserAgent; 211 | webClient.Encoding = Encoding.UTF8; 212 | html = webClient.DownloadString(url); 213 | } 214 | var regex = matchInfo["regex"].StringValue; 215 | var match = html.Match(regex); 216 | var group = decimal.ToInt32(matchInfo["group"].NumberValue.Value); 217 | if (match.Success) 218 | { 219 | if (match.Groups.Count > group - 1) 220 | { 221 | var matchedUrl = match.Groups[group].Value; 222 | downloadUrl(matchedUrl); 223 | } 224 | else 225 | { 226 | throw new MalwareCheckException($"Regex group not found for {url}, group = {group}"); 227 | } 228 | } 229 | else 230 | { 231 | throw new MalwareCheckException($"Regex match for {url} failed, regex = {regex}"); 232 | } 233 | } 234 | catch (Exception ex) 235 | when (ex is MalwareCheckException || ex is WebException/* || ex is CryptographicException*/) 236 | { 237 | error($"Error fetching {url} {ex.Message}"); 238 | File.WriteAllText(Path.Combine(CheckerOutput, md5(url) + ".html"), html); 239 | } 240 | } 241 | 242 | } 243 | private string md5(string input) 244 | { 245 | using (var md5 = MD5.Create()) 246 | { 247 | var inputBytes = Encoding.UTF8.GetBytes(input); 248 | var hashBytes = md5.ComputeHash(inputBytes); 249 | return string.Join("", Enumerable.Range(0, hashBytes.Length).Select(i => hashBytes[i].ToString("x2"))); 250 | } 251 | } 252 | } 253 | class MalwareCheckerModel : NotificationObject 254 | { 255 | 256 | private string message = ""; 257 | public string Message 258 | { 259 | get => message; 260 | set 261 | { 262 | message = value; 263 | OnPropertyChanged(nameof(Message)); 264 | } 265 | } 266 | 267 | private double progressValue = 0.0; 268 | public double ProgressValue 269 | { 270 | get => progressValue; 271 | set 272 | { 273 | progressValue = value; 274 | OnPropertyChanged(nameof(ProgressValue)); 275 | } 276 | } 277 | 278 | private TaskbarItemProgressState progressState = TaskbarItemProgressState.None; 279 | public TaskbarItemProgressState ProgressState 280 | { 281 | get => progressState; 282 | set 283 | { 284 | progressState = value; 285 | OnPropertyChanged(nameof(ProgressState)); 286 | } 287 | } 288 | } 289 | } 290 | --------------------------------------------------------------------------------