能力值:
( LV2,RANK:10 )
|
-
-
2 楼
private void Sign(string base64) { string text = "0"; if (!string.IsNullOrEmpty(this.checkimg)) { text = "1"; } string data = string.Concat(new string[] { "{\"DeviceID\":\"", Form1.MacString, "\",\"Sfz\":\"", this.cardNo, "\",\"SignType\":\"", (Form2.CurrentOP + 1).ToString(), "\",\"SFZType\":\"", text, "\",\"image\":\"", base64, "\",\"SFZImg\":\"", this.checkimg, "\"}" }); string text2 = MyPost.PostJxMethod("Sign/UpSign", "{\"Parameter\":\"" + DES.DESEncrypt(data) + "\"}");
直接解密不就行了吗? 没装VS测试 但反编译直接可以看到DES加密
|
能力值:
( LV1,RANK:10 )
|
-
-
3 楼
抓到的包,解密失败。。
|
能力值:
( LV2,RANK:10 )
|
-
-
4 楼
既然是 .net为啥不用https://github.com/icsharpcode/ILSpy/releases ILSpy比ida的F5好用多了,完美还原代码。
|
能力值:
( LV2,RANK:10 )
|
-
-
5 楼
|
能力值:
( LV3,RANK:37 )
|
-
-
6 楼
private static string desKey = "12345678"; private static string desIv = "12345678"; public static string DESDecrypt(string data, string key, string iv) { try { byte[] bytes = Encoding.UTF8.GetBytes(key); byte[] bytes2 = Encoding.UTF8.GetBytes(iv); DESCryptoServiceProvider descryptoServiceProvider = new DESCryptoServiceProvider(); using (MemoryStream memoryStream = new MemoryStream()) { byte[] array = Convert.FromBase64String(data); try { using (CryptoStream cryptoStream = new CryptoStream(memoryStream, descryptoServiceProvider.CreateDecryptor(bytes, bytes2), CryptoStreamMode.Write)) { cryptoStream.Write(array, 0, array.Length); cryptoStream.FlushFinalBlock(); } return Encoding.UTF8.GetString(memoryStream.ToArray()); } catch { return data; } } } catch (Exception ex) { //LogManager.AddError(ex.Message, ex.StackTrace, "DESDecrypt"); } return data; }
|
能力值:
( LV1,RANK:10 )
|
-
-
7 楼
搞错了,重新发了一次 Mxixihaha
|
能力值:
( LV2,RANK:10 )
|
-
-
8 楼
{"DeviceID":"V67PQGCN5XUVYXCW","Sfz":"320722********1255","Jiax":"10005897","SignType":"1","SFZType":"0","image":"/9j/4AAQSkZJRgABAQAA**************","SFZImg":""} sfz和image省略打码了,就是找到des key就行了,模式DES/CBC/PKCS5Padding
|
能力值:
( LV2,RANK:10 )
|
-
-
9 楼
。。。
最后于 2022-2-17 14:54
被chinarenjf编辑
,原因:
|
能力值:
( LV2,RANK:10 )
|
-
-
10 楼
mb_mezxqhjq
搞错了,重新发了一次
Mxixihaha 密码 sign1234
DeData = DESDecrypt(你的数据, "sign1234", "sign1234");
就可以成功解密了.
最后于 2022-2-17 15:33
被Mxixihaha编辑
,原因:
|
能力值:
( LV1,RANK:10 )
|
-
-
11 楼
问题解决,版主麻烦给删除贴子。谢谢
|
|
|