public static void HandleGetRegistryKey(Paketler.ServerPaketleri.DoLoadRegistryKey packet, Client client)
        {
            try
            {
                Sikerxd = new RegistrySeeker();

                Paketler.ClientPaketleri.GetRegistryKeysResponse responsePacket = new Paketler.ClientPaketleri.GetRegistryKeysResponse();

                Sikerxd.SearchComplete += (object o, SearchCompletedEventArgs e) =>
                {
                    responsePacket.Matches = e.Matches.ToArray();
                    responsePacket.RootKey = packet.RootKeyName;

                    responsePacket.Execute(client);
                };
                if (packet.RootKeyName == null)
                {
                    Sikerxd.Start(new RegistrySeekerParams(null));
                }
                else
                {
                    Sikerxd.Start(packet.RootKeyName);
                }
            }
            catch
            { }
        }
Beispiel #2
0
        public static void HandleGetRegistryKey(xClient.Core.Packets.ServerPackets.DoLoadRegistryKey packet, Client client)
        {
            try
            {
                seeker = new RegistrySeeker();

                xClient.Core.Packets.ClientPackets.GetRegistryKeysResponse responsePacket = new Packets.ClientPackets.GetRegistryKeysResponse();

                seeker.SearchComplete += (object o, SearchCompletedEventArgs e) =>
                {
                    responsePacket.Matches = e.Matches.ToArray();
                    responsePacket.RootKey = packet.RootKeyName;

                    responsePacket.Execute(client);
                };

                // If the search parameters of the packet is null, the server is requesting to obtain the root keys.
                if (packet.RootKeyName == null)
                {
                    seeker.Start(new RegistrySeekerParams(null));
                }
                else
                {
                    seeker.Start(packet.RootKeyName);
                }
            }
            catch
            { }
        }