Created
October 19, 2019 06:55
-
-
Save nickfox-taterli/d8604d6d350c3848f3f6de09b0d3ec02 to your computer and use it in GitHub Desktop.
Fuck360
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
using System.Runtime.InteropServices; | |
using System.Diagnostics; | |
using System.IO; | |
namespace Fuck360 | |
{ | |
public class IniFileReference | |
{ | |
//INI文件名 | |
private string path; | |
//声明读写INI文件的API函数 | |
[DllImport("kernel32")] | |
private static extern long WritePrivateProfileString(string section, string key, | |
string val, string filePath); | |
[DllImport("kernel32")] | |
private static extern int GetPrivateProfileString(string section, string key, string def, | |
StringBuilder retVal, int size, string filePath); | |
//类的构造函数,传递INI文件名 | |
public IniFileReference(string INIPath) | |
{ | |
path = INIPath; | |
} | |
//写INI文件 | |
public void IniWriteValue(string Section, string Key, string Value) | |
{ | |
WritePrivateProfileString(Section, Key, Value, this.path); | |
} | |
//读取INI文件指定 | |
public string IniReadValue(string Section, string Key) | |
{ | |
StringBuilder temp = new StringBuilder(255); | |
int i = GetPrivateProfileString(Section, Key, "", temp, 255, this.path); | |
return temp.ToString(); | |
} | |
} | |
public partial class Form1 : Form | |
{ | |
public Form1() | |
{ | |
InitializeComponent(); | |
string appPath = @"C:\Program Files (x86)\360\360Safe\safemon\360tray.exe"; | |
string appSec = @"C:\Program Files (x86)\360\360Safe\EntClient\conf\Entbase.dat"; | |
string appName = "360tray.exe"; | |
Process proc = new Process(); | |
proc.StartInfo.FileName = appName; | |
proc.StartInfo.WorkingDirectory = Path.GetDirectoryName(appPath); | |
proc.StartInfo.Arguments = "/disablesp 1"; | |
proc.Start(); | |
MessageBox.Show("点击确认退出360临时防护后再点我这个确认."); | |
IniFileReference _iniFile = new Fuck360.IniFileReference(appSec); | |
_iniFile.IniWriteValue("protect", "uipass", ""); | |
_iniFile.IniWriteValue("protect", "qtpass", ""); | |
_iniFile.IniReadValue("protect", "uipass"); | |
MessageBox.Show("已尝试修改360核心代码,请与5分钟内退出360并执行卸载,超时失效."); | |
System.Environment.Exit(0); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment