Example #1
0
        private void GetData(string sExecResultTmp, int ExitCode)
        {
            if (ExitCode != 0)
            {
                if (pl.m_RetErrorMsg != null && pl.m_RetErrorMsg.Length != 0)
                {
                    MessageBox.Show(pl.m_RetErrorMsg);
                }
                else
                {
                    MessageBox.Show("解密失败");
                }
                return;
            }
            GetUid(sExecResultTmp, ExitCode);
            if (FileLayer.Exists("data/" + Uid + ".dump") == false)
            {
                FileLayer.Copy("data/tmp.dump", "data/" + Uid + ".dump");
            }
            byte[] btBuf = FileLayer.Read("data/tmp.dump");
            if (btBuf == null)
            {
                if (pl.m_RetErrorMsg != null && pl.m_RetErrorMsg.Length != 0)
                {
                    MessageBox.Show(pl.m_RetErrorMsg);
                }
                else
                {
                    MessageBox.Show("解密失败");
                }
                return;
            }

            InvokeInsertItemDelegate iiid = new InvokeInsertItemDelegate(InvokeInsertItem);

            this.BeginInvoke(iiid, new object[] { btBuf });

            lb_source.Text = "读卡器直读";
        }
Example #2
0
        private void GetData(string sExecResultTmp, int ExitCode)
        {
            if (ExitCode != 0)
            {
                if (pl.m_RetErrorMsg != null && pl.m_RetErrorMsg.Length != 0)
                {
                    MessageBox.Show(pl.m_RetErrorMsg);
                }
                else
                {
                    MessageBox.Show("Crack Failed");
                }
                return;
            }
            GetUid(sExecResultTmp, ExitCode);

            byte[] btBuf = FileLayer.Read("key/" + Uid + ".dump");
            if (btBuf == null)
            {
                if (pl.m_RetErrorMsg != null && pl.m_RetErrorMsg.Length != 0)
                {
                    MessageBox.Show(pl.m_RetErrorMsg);
                }
                else
                {
                    MessageBox.Show("Crack Failed");
                }
                return;
            }

            InvokeInsertItemDelegate iiid = new InvokeInsertItemDelegate(InvokeInsertItem);

            this.BeginInvoke(iiid, new object[] { btBuf });

            lb_source.Text = "Card Reader";
        }
Example #3
0
        private void GetData(string sExecResultTmp, int ExitCode)
        {
            if (ExitCode != 0)
            {
                if (pl.m_RetErrorMsg != null && pl.m_RetErrorMsg.Length != 0)
                {
                    MessageBox.Show(pl.m_RetErrorMsg);
                }
                else
                {
                    MessageBox.Show("Crack Failed");
                }
                return;
            }
            GetUid(sExecResultTmp, ExitCode);

            byte[] btBuf = FileLayer.Read("key/" + Uid + ".dump");
            if (btBuf == null)
            {
                if (pl.m_RetErrorMsg != null && pl.m_RetErrorMsg.Length != 0)
                {
                    MessageBox.Show(pl.m_RetErrorMsg);
                }
                else
                {
                    MessageBox.Show("Crack Failed");
                }
                return;
            }

            InvokeInsertItemDelegate iiid = new InvokeInsertItemDelegate(InvokeInsertItem);
            this.BeginInvoke(iiid, new object[] {btBuf});
            
            lb_source.Text = "Card Reader";
        }