I think everyone should have heard about the software egg. For example, in Excel, you can get a racing game from OOXX in a cell compartment. This is a software egg, purely for entertainment. However, more "egg" are used as software backdoors. For example, if we provide a software to the customer, we usually cannot see some debugging windows and tools. When we are asked to provide on-site technical support to the customer, we often want to use some secret means to open the tools and Windows used by these entries. This is the backdoor. Among these backdoors, button-based backdoors are the most common. Next we will use an existing third-party function library Utilities. dll to build a backdoor system.
Create a project, and then reference the third-party library Utilities.
Open the Form1 code editing window, and add a next-class KeyboardIncantationMonitor-C # private KeyboardIncantationMonitor m_KeyBackDoor = new KeyboardIncantationMonitor () to the form class ();
Create a private member function and add two backdoors-C # private void AddBackDoor ()
{
//! First Backdoor
Do
{
//! Apply for a backdoor password
KeyboardIncantationMonitor. KeysIncantation tInc = m_KeyBackDoor.NewIncantation () as KeyboardIncantationMonitor. KeysIncantation;
//! Initialize this code: press <Esc> HELLO <Enter>
TInc. AddKey (Keys. Escape );
TInc. AddKey (Keys. H );
TInc. AddKey (Keys. E );
TInc. AddKey (Keys. L );
TInc. AddKey (Keys. L );
TInc. AddKey (Keys. O );
TInc. AddKey (Keys. Enter );
//! Processing procedures after the Upper and Lower signs
TInc. IncantationCantillatedReport + = new IncantationReport (BackdoorHandler_A );
//! Add this ID to the backdoor monitor.
M_KeyBackDoor.AddIncantation (tInc );
}
While (false );
//! Second Backdoor
Do
{
//! Apply for a backdoor password
KeyboardIncantationMonitor. KeysIncantation tInc = m_KeyBackDoor.NewIncantation () as KeyboardIncantationMonitor. KeysIncantation;
//! Initialize this code: press <Esc> Bye <Enter>
TInc. AddKey (Keys. Escape );
TInc. AddKey (Keys. B );
TInc. AddKey (Keys. Y );
TInc. AddKey (Keys. E );
TInc. AddKey (Keys. Enter );
//! Processing procedures after the Upper and Lower signs
TInc. IncantationCantillatedReport + = new IncantationReport (BackdoorHandler_ B );
//! Add this ID to the backdoor monitor.
M_KeyBackDoor.AddIncantation (tInc );
}
While (false );
}
//! The first backdoor Handler
Void BackdoorHandler_A (IIncantation tInc)
{
Button1.Visible = true;
}
//! The second backdoor Handler
Void BackdoorHandler_ B (IIncantation tInc)
{
Button1.Visible = false;
}
Add a call to the AddBackDoor method in the Form1 constructor, so that we can add the backdoor-C # public Form1 ()
{
InitializeComponent ();
//! Add Backdoor
AddBackDoor ();
}
Where can I install a backdoor? According to your personal preferences, but since it is a button backdoor, You must select a place where you can receive KeyDown or KeyUp events.
For example, we add a text box on Form1, set its ReadOnly attribute to True, and add the following text: "Copyright, review required ". Add a button on the form as the demo object: In normal circumstances, you cannot see this button. After opening the backdoor, the visible attribute of the button becomes true, and we can see it; we can also use another backdoor to set the visible attribute of the button to false and then hand it over to the customer. Pai_^
Select the text box control, select Event in the Property Window, double-click KeyDown, enter the code editing window, and add processing for the backdoor monitor in the KeyDown handler: that is, to tell the monitor the press Key:-C # private void textBox1_KeyDown (object sender, KeyEventArgs e)
{
//! Tell the backdoor monitor which key is pressed
M_KeyBackDoor.Append (e. KeyCode );
}
// Set the Visible attribute of the Button to True in backdoor handler;
//! The first backdoor Handler
Void BackdoorHandler_A (IIncantation tInc)
{
Button1.Visible = true;
}
// Set the Visible attribute of the Button to False in backdoor handler B;
//! The second backdoor Handler
Void BackdoorHandler_ B (IIncantation tInc)
{
Button1.Visible = false;
}
Finally, do not forget to set the visible attribute of the Button to False. Otherwise, how can we hide this Button from our customers?
Run the program. The Button is invisible and hidden.
Select the text box with "flip into", and press <Esc> <H> <E> <L> <O> <Enter>.
Press <Esc> <B> <Y> <E> <Enter>, and button1 disappears again.
Success.
You can enter backdoors from the beginning at any time without worrying about the last time. Of course, case-insensitive.
Have a good time.
Download test code