コード例 #1
0
        private void mnuDecryptStrings_Click(object sender, EventArgs e)
        {
            if (mnuMember.StringDecryptionMethod == null)
            {
                MessageBox.Show("There is no method set to use for the string decryption. Find the static method that is used to decrypt the strings in the code (usually just after the loaded encrypted string) and set it to use for decrypting strings (by right clicking on it)");
                return;
            }

            var decyptStringControl = new DecryptStrings(this, mnuMember.StringDecryptionMethod);

            rightTabs.AddTab(decyptStringControl, "Decrypt strings");
        }
コード例 #2
0
        private void decryptStringsInSelectedMethodToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var obj = Tag;

            if (obj is MethodBase)
            {
                var decryptionMethod = StringDecryptionMethod;
                if (decryptionMethod == null)
                {
                    MessageBox.Show("No string decryption method set!");
                    return;
                }

                var decyptStringControl = new DecryptStrings(browser, decryptionMethod, ((MethodBase)obj));
                browser.AddTab(decyptStringControl, "Decrypted strings in " + ((MethodBase)obj).GetName(true));
            }
            else
            {
                MessageBox.Show("The selected member is not a method or constructor");
            }
        }