在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
大概一年多了,瑞星一直都没更改其序列号保存方式。这还是偶在学校时无聊研究的。
1 string risingpath;
2 int i, j = 0; long snoffset, idoffset; 3 4 //以下读取 5 //HKEY_LOCAL_MACHINE\SOFTWARE\rising\Rav,并存在risingpath 6 RegistryKey hklm = Registry.LocalMachine; 7 RegistryKey software = hklm.OpenSubKey("SOFTWARE", true); 8 RegistryKey rising = software.OpenSubKey("rising"); 9 RegistryKey rav = rising.OpenSubKey("Rav"); 10 risingpath = rav.GetValue("installpath").ToString() + "\\RsConfig.cfg"; 11 12 //以下操作RsConfig.cfg 13 File.Copy(risingpath, "C:\\RsConfig.cfg", true); 14 15 FileStream bf = new FileStream("C:\\RsConfig.cfg", FileMode.Open, FileAccess.ReadWrite); 16 17 byte[] key = new byte[8]; 18 byte[] data = new byte[bf.Length]; 19 byte[] newdata = new byte[bf.Length]; 20); |
请发表评论