逆向1:bmp圖片修復c#
首先有一個坑,winhex搜索key就能找到一個key,不過固然falsewindows
下面就是解題思路:函數
094fce+36 = 094f98this
修改1:BM標識,在windows的標識spa
修改2:0xA處的大小爲固定值0x0036調試
private void btn_ok_Click(object sender, EventArgs e) { if (this.textBox_Pass.Text == "") { MessageBox.Show("請輸入密碼!"); } else { char[] array = this.textBox_Pass.Text.Replace(".", "-").Replace("7", "t").Replace("4", "a").Replace("1", "I").Replace("0", "o").Replace("O", "0").ToCharArray(); Array.Reverse(array); string s = new string(array); s.ToUpper(); char[] chArray2 = Convert.ToBase64String(Encoding.GetEncoding("UTF-8").GetBytes(s)).ToCharArray(); Array.Reverse(chArray2); string str2 = new string(chArray2); string str3 = new string(Convert.ToBase64String(Encoding.GetEncoding("UTF-8").GetBytes(str2)).ToCharArray()); if (str3 == "PTBpVGxSM1lqTWtVaE4yU0pOM1J2Qnph") { MessageBox.Show("密碼正確!密碼就是Key!", "成功"); } else { MessageBox.Show("密碼錯誤!", "失敗"); } } }
字符轉換:blog
小寫字母o換成數字0圖片