398 lines
18 KiB
C#
398 lines
18 KiB
C#
namespace AI_C2_Server
|
|
{
|
|
partial class MainForm
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
components = new System.ComponentModel.Container();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
|
btnRestart = new Button();
|
|
panelTop = new Panel();
|
|
notifyIcon = new NotifyIcon(components);
|
|
trayContextMenu = new ContextMenuStrip(components);
|
|
showServerToolStripMenuItem = new ToolStripMenuItem();
|
|
restartServerToolStripMenuItem = new ToolStripMenuItem();
|
|
exitShutdownToolStripMenuItem = new ToolStripMenuItem();
|
|
restartApplicationToolStripMenuItem = new ToolStripMenuItem();
|
|
tabControl1 = new TabControl();
|
|
tabPageConsole = new TabPage();
|
|
rtbConsole = new TextBox();
|
|
tabPageInstances = new TabPage();
|
|
listViewInstances = new ListView();
|
|
colPlatform = new ColumnHeader();
|
|
colInstanceId = new ColumnHeader();
|
|
colStatus = new ColumnHeader();
|
|
colLastSeen = new ColumnHeader();
|
|
instanceContextMenu = new ContextMenuStrip(components);
|
|
resetChatToolStripMenuItem = new ToolStripMenuItem();
|
|
shutdownHarnessToolStripMenuItem = new ToolStripMenuItem();
|
|
panelInstanceActions = new Panel();
|
|
btnShutdown = new Button();
|
|
btnResetChat = new Button();
|
|
tabPageOpenAI = new TabPage();
|
|
txtOpenAIKey = new TextBox();
|
|
lblKey = new Label();
|
|
txtOpenAIUrl = new TextBox();
|
|
lblUrl = new Label();
|
|
chkEnableOpenAI = new CheckBox();
|
|
timerUpdateInstances = new System.Windows.Forms.Timer(components);
|
|
panelTop.SuspendLayout();
|
|
trayContextMenu.SuspendLayout();
|
|
tabControl1.SuspendLayout();
|
|
tabPageConsole.SuspendLayout();
|
|
tabPageInstances.SuspendLayout();
|
|
instanceContextMenu.SuspendLayout();
|
|
panelInstanceActions.SuspendLayout();
|
|
tabPageOpenAI.SuspendLayout();
|
|
SuspendLayout();
|
|
//
|
|
// btnRestart
|
|
//
|
|
btnRestart.Location = new Point(12, 12);
|
|
btnRestart.Name = "btnRestart";
|
|
btnRestart.Size = new Size(120, 25);
|
|
btnRestart.TabIndex = 0;
|
|
btnRestart.Text = "Restart Server";
|
|
btnRestart.UseVisualStyleBackColor = true;
|
|
btnRestart.Click += btnRestart_Click;
|
|
//
|
|
// panelTop
|
|
//
|
|
panelTop.Controls.Add(btnRestart);
|
|
panelTop.Dock = DockStyle.Top;
|
|
panelTop.Location = new Point(0, 0);
|
|
panelTop.Name = "panelTop";
|
|
panelTop.Size = new Size(800, 50);
|
|
panelTop.TabIndex = 0;
|
|
//
|
|
// notifyIcon
|
|
//
|
|
notifyIcon.BalloonTipText = "Server Running...";
|
|
notifyIcon.BalloonTipTitle = "AI C2 Server";
|
|
notifyIcon.ContextMenuStrip = trayContextMenu;
|
|
notifyIcon.Icon = (Icon)resources.GetObject("notifyIcon.Icon");
|
|
notifyIcon.Text = "AI C2 Server";
|
|
notifyIcon.MouseClick += notifyIcon_Click;
|
|
notifyIcon.MouseDoubleClick += notifyIcon_MouseDoubleClick;
|
|
//
|
|
// trayContextMenu
|
|
//
|
|
trayContextMenu.Items.AddRange(new ToolStripItem[] { showServerToolStripMenuItem, restartServerToolStripMenuItem, restartApplicationToolStripMenuItem, exitShutdownToolStripMenuItem });
|
|
trayContextMenu.Name = "trayContextMenu";
|
|
trayContextMenu.RenderMode = ToolStripRenderMode.System;
|
|
trayContextMenu.Size = new Size(175, 92);
|
|
//
|
|
// showServerToolStripMenuItem
|
|
//
|
|
showServerToolStripMenuItem.Name = "showServerToolStripMenuItem";
|
|
showServerToolStripMenuItem.Size = new Size(174, 22);
|
|
showServerToolStripMenuItem.Text = "Show Server";
|
|
showServerToolStripMenuItem.Click += showServerToolStripMenuItem_Click;
|
|
//
|
|
// restartServerToolStripMenuItem
|
|
//
|
|
restartServerToolStripMenuItem.Name = "restartServerToolStripMenuItem";
|
|
restartServerToolStripMenuItem.Size = new Size(174, 22);
|
|
restartServerToolStripMenuItem.Text = "Restart Server";
|
|
restartServerToolStripMenuItem.Click += restartServerToolStripMenuItem_Click;
|
|
//
|
|
// exitShutdownToolStripMenuItem
|
|
//
|
|
exitShutdownToolStripMenuItem.Name = "exitShutdownToolStripMenuItem";
|
|
exitShutdownToolStripMenuItem.Size = new Size(174, 22);
|
|
exitShutdownToolStripMenuItem.Text = "Shutdown && Exit";
|
|
exitShutdownToolStripMenuItem.Click += exitShutdownToolStripMenuItem_Click;
|
|
//
|
|
// restartApplicationToolStripMenuItem
|
|
//
|
|
restartApplicationToolStripMenuItem.Name = "restartApplicationToolStripMenuItem";
|
|
restartApplicationToolStripMenuItem.Size = new Size(174, 22);
|
|
restartApplicationToolStripMenuItem.Text = "Restart Application";
|
|
restartApplicationToolStripMenuItem.Click += restartApplicationToolStripMenuItem_Click;
|
|
//
|
|
// tabControl1
|
|
//
|
|
tabControl1.Controls.Add(tabPageConsole);
|
|
tabControl1.Controls.Add(tabPageInstances);
|
|
tabControl1.Controls.Add(tabPageOpenAI);
|
|
tabControl1.Dock = DockStyle.Fill;
|
|
tabControl1.Location = new Point(0, 50);
|
|
tabControl1.Name = "tabControl1";
|
|
tabControl1.SelectedIndex = 0;
|
|
tabControl1.Size = new Size(800, 400);
|
|
tabControl1.TabIndex = 1;
|
|
//
|
|
// tabPageConsole
|
|
//
|
|
tabPageConsole.BackColor = SystemColors.Control;
|
|
tabPageConsole.Controls.Add(rtbConsole);
|
|
tabPageConsole.Location = new Point(4, 24);
|
|
tabPageConsole.Name = "tabPageConsole";
|
|
tabPageConsole.Padding = new Padding(3);
|
|
tabPageConsole.Size = new Size(792, 372);
|
|
tabPageConsole.TabIndex = 0;
|
|
tabPageConsole.Text = "Console";
|
|
//
|
|
// rtbConsole
|
|
//
|
|
rtbConsole.BackColor = Color.Black;
|
|
rtbConsole.BorderStyle = BorderStyle.FixedSingle;
|
|
rtbConsole.Dock = DockStyle.Fill;
|
|
rtbConsole.ForeColor = Color.LightGray;
|
|
rtbConsole.Location = new Point(3, 3);
|
|
rtbConsole.Multiline = true;
|
|
rtbConsole.Name = "rtbConsole";
|
|
rtbConsole.ReadOnly = true;
|
|
rtbConsole.ScrollBars = ScrollBars.Vertical;
|
|
rtbConsole.Size = new Size(786, 366);
|
|
rtbConsole.TabIndex = 2;
|
|
//
|
|
// tabPageInstances
|
|
//
|
|
tabPageInstances.BackColor = SystemColors.Control;
|
|
tabPageInstances.Controls.Add(listViewInstances);
|
|
tabPageInstances.Controls.Add(panelInstanceActions);
|
|
tabPageInstances.Location = new Point(4, 24);
|
|
tabPageInstances.Name = "tabPageInstances";
|
|
tabPageInstances.Padding = new Padding(3);
|
|
tabPageInstances.Size = new Size(792, 372);
|
|
tabPageInstances.TabIndex = 1;
|
|
tabPageInstances.Text = "Instance Management";
|
|
//
|
|
// listViewInstances
|
|
//
|
|
listViewInstances.BorderStyle = BorderStyle.FixedSingle;
|
|
listViewInstances.Columns.AddRange(new ColumnHeader[] { colPlatform, colInstanceId, colStatus, colLastSeen });
|
|
listViewInstances.ContextMenuStrip = instanceContextMenu;
|
|
listViewInstances.Dock = DockStyle.Fill;
|
|
listViewInstances.FullRowSelect = true;
|
|
listViewInstances.GridLines = true;
|
|
listViewInstances.Location = new Point(3, 3);
|
|
listViewInstances.MultiSelect = false;
|
|
listViewInstances.Name = "listViewInstances";
|
|
listViewInstances.Size = new Size(786, 326);
|
|
listViewInstances.TabIndex = 1;
|
|
listViewInstances.UseCompatibleStateImageBehavior = false;
|
|
listViewInstances.View = View.Details;
|
|
//
|
|
// colPlatform
|
|
//
|
|
colPlatform.Text = "Platform";
|
|
colPlatform.Width = 150;
|
|
//
|
|
// colInstanceId
|
|
//
|
|
colInstanceId.Text = "Instance ID";
|
|
colInstanceId.Width = 250;
|
|
//
|
|
// colStatus
|
|
//
|
|
colStatus.Text = "Status";
|
|
colStatus.Width = 100;
|
|
//
|
|
// colLastSeen
|
|
//
|
|
colLastSeen.Text = "Last Seen";
|
|
colLastSeen.Width = 150;
|
|
//
|
|
// instanceContextMenu
|
|
//
|
|
instanceContextMenu.Items.AddRange(new ToolStripItem[] { resetChatToolStripMenuItem, shutdownHarnessToolStripMenuItem });
|
|
instanceContextMenu.Name = "instanceContextMenu";
|
|
instanceContextMenu.Size = new Size(174, 48);
|
|
//
|
|
// resetChatToolStripMenuItem
|
|
//
|
|
resetChatToolStripMenuItem.Name = "resetChatToolStripMenuItem";
|
|
resetChatToolStripMenuItem.Size = new Size(173, 22);
|
|
resetChatToolStripMenuItem.Text = "Reset Chat";
|
|
resetChatToolStripMenuItem.Click += resetChatToolStripMenuItem_Click;
|
|
//
|
|
// shutdownHarnessToolStripMenuItem
|
|
//
|
|
shutdownHarnessToolStripMenuItem.Name = "shutdownHarnessToolStripMenuItem";
|
|
shutdownHarnessToolStripMenuItem.Size = new Size(173, 22);
|
|
shutdownHarnessToolStripMenuItem.Text = "Shutdown Harness";
|
|
shutdownHarnessToolStripMenuItem.Click += shutdownHarnessToolStripMenuItem_Click;
|
|
//
|
|
// panelInstanceActions
|
|
//
|
|
panelInstanceActions.Controls.Add(btnShutdown);
|
|
panelInstanceActions.Controls.Add(btnResetChat);
|
|
panelInstanceActions.Dock = DockStyle.Bottom;
|
|
panelInstanceActions.Location = new Point(3, 329);
|
|
panelInstanceActions.Name = "panelInstanceActions";
|
|
panelInstanceActions.Size = new Size(786, 40);
|
|
panelInstanceActions.TabIndex = 0;
|
|
//
|
|
// btnShutdown
|
|
//
|
|
btnShutdown.Location = new Point(111, 8);
|
|
btnShutdown.Name = "btnShutdown";
|
|
btnShutdown.Size = new Size(120, 25);
|
|
btnShutdown.TabIndex = 1;
|
|
btnShutdown.Text = "Shutdown Harness";
|
|
btnShutdown.UseVisualStyleBackColor = true;
|
|
btnShutdown.Click += btnShutdown_Click;
|
|
//
|
|
// btnResetChat
|
|
//
|
|
btnResetChat.Location = new Point(5, 8);
|
|
btnResetChat.Name = "btnResetChat";
|
|
btnResetChat.Size = new Size(100, 25);
|
|
btnResetChat.TabIndex = 0;
|
|
btnResetChat.Text = "Reset Chat";
|
|
btnResetChat.UseVisualStyleBackColor = true;
|
|
btnResetChat.Click += btnResetChat_Click;
|
|
//
|
|
// tabPageOpenAI
|
|
//
|
|
tabPageOpenAI.BackColor = SystemColors.Control;
|
|
tabPageOpenAI.Controls.Add(txtOpenAIKey);
|
|
tabPageOpenAI.Controls.Add(lblKey);
|
|
tabPageOpenAI.Controls.Add(txtOpenAIUrl);
|
|
tabPageOpenAI.Controls.Add(lblUrl);
|
|
tabPageOpenAI.Controls.Add(chkEnableOpenAI);
|
|
tabPageOpenAI.Location = new Point(4, 24);
|
|
tabPageOpenAI.Name = "tabPageOpenAI";
|
|
tabPageOpenAI.Padding = new Padding(3);
|
|
tabPageOpenAI.Size = new Size(792, 372);
|
|
tabPageOpenAI.TabIndex = 2;
|
|
tabPageOpenAI.Text = "OpenAI API";
|
|
//
|
|
// txtOpenAIKey
|
|
//
|
|
txtOpenAIKey.BorderStyle = BorderStyle.FixedSingle;
|
|
txtOpenAIKey.Location = new Point(100, 85);
|
|
txtOpenAIKey.Name = "txtOpenAIKey";
|
|
txtOpenAIKey.Size = new Size(400, 23);
|
|
txtOpenAIKey.TabIndex = 4;
|
|
txtOpenAIKey.TextChanged += txtOpenAIKey_TextChanged;
|
|
//
|
|
// lblKey
|
|
//
|
|
lblKey.AutoSize = true;
|
|
lblKey.Location = new Point(20, 88);
|
|
lblKey.Name = "lblKey";
|
|
lblKey.Size = new Size(50, 15);
|
|
lblKey.TabIndex = 3;
|
|
lblKey.Text = "API Key:";
|
|
//
|
|
// txtOpenAIUrl
|
|
//
|
|
txtOpenAIUrl.BorderStyle = BorderStyle.FixedSingle;
|
|
txtOpenAIUrl.Location = new Point(100, 50);
|
|
txtOpenAIUrl.Name = "txtOpenAIUrl";
|
|
txtOpenAIUrl.Size = new Size(400, 23);
|
|
txtOpenAIUrl.TabIndex = 2;
|
|
txtOpenAIUrl.TextChanged += txtOpenAIUrl_TextChanged;
|
|
//
|
|
// lblUrl
|
|
//
|
|
lblUrl.AutoSize = true;
|
|
lblUrl.Location = new Point(20, 53);
|
|
lblUrl.Name = "lblUrl";
|
|
lblUrl.Size = new Size(52, 15);
|
|
lblUrl.TabIndex = 1;
|
|
lblUrl.Text = "API URL:";
|
|
//
|
|
// chkEnableOpenAI
|
|
//
|
|
chkEnableOpenAI.AutoSize = true;
|
|
chkEnableOpenAI.Location = new Point(20, 20);
|
|
chkEnableOpenAI.Name = "chkEnableOpenAI";
|
|
chkEnableOpenAI.Size = new Size(159, 19);
|
|
chkEnableOpenAI.TabIndex = 0;
|
|
chkEnableOpenAI.Text = "Enable OpenAI API Mode";
|
|
chkEnableOpenAI.UseVisualStyleBackColor = true;
|
|
chkEnableOpenAI.CheckedChanged += chkEnableOpenAI_CheckedChanged;
|
|
//
|
|
// timerUpdateInstances
|
|
//
|
|
timerUpdateInstances.Interval = 2000;
|
|
timerUpdateInstances.Tick += timerUpdateInstances_Tick;
|
|
//
|
|
// MainForm
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(800, 450);
|
|
Controls.Add(tabControl1);
|
|
Controls.Add(panelTop);
|
|
Icon = (Icon)resources.GetObject("$this.Icon");
|
|
Name = "MainForm";
|
|
Text = "AI C2 Server Console";
|
|
FormClosing += MainForm_FormClosing;
|
|
Load += MainForm_Load;
|
|
Resize += MainForm_Resize;
|
|
panelTop.ResumeLayout(false);
|
|
trayContextMenu.ResumeLayout(false);
|
|
tabControl1.ResumeLayout(false);
|
|
tabPageConsole.ResumeLayout(false);
|
|
tabPageConsole.PerformLayout();
|
|
tabPageInstances.ResumeLayout(false);
|
|
instanceContextMenu.ResumeLayout(false);
|
|
panelInstanceActions.ResumeLayout(false);
|
|
tabPageOpenAI.ResumeLayout(false);
|
|
tabPageOpenAI.PerformLayout();
|
|
ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
private System.Windows.Forms.Button btnRestart;
|
|
private System.Windows.Forms.Panel panelTop;
|
|
private System.Windows.Forms.NotifyIcon notifyIcon;
|
|
private System.Windows.Forms.ContextMenuStrip trayContextMenu;
|
|
private System.Windows.Forms.ToolStripMenuItem showServerToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem restartServerToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem exitShutdownToolStripMenuItem;
|
|
private System.Windows.Forms.TabControl tabControl1;
|
|
private System.Windows.Forms.TabPage tabPageConsole;
|
|
private System.Windows.Forms.TextBox rtbConsole;
|
|
private System.Windows.Forms.TabPage tabPageInstances;
|
|
private System.Windows.Forms.TabPage tabPageOpenAI;
|
|
private System.Windows.Forms.ListView listViewInstances;
|
|
private System.Windows.Forms.ColumnHeader colPlatform;
|
|
private System.Windows.Forms.ColumnHeader colInstanceId;
|
|
private System.Windows.Forms.ColumnHeader colStatus;
|
|
private System.Windows.Forms.ColumnHeader colLastSeen;
|
|
private System.Windows.Forms.Panel panelInstanceActions;
|
|
private System.Windows.Forms.Button btnShutdown;
|
|
private System.Windows.Forms.Button btnResetChat;
|
|
private System.Windows.Forms.TextBox txtOpenAIKey;
|
|
private System.Windows.Forms.Label lblKey;
|
|
private System.Windows.Forms.TextBox txtOpenAIUrl;
|
|
private System.Windows.Forms.Label lblUrl;
|
|
private System.Windows.Forms.CheckBox chkEnableOpenAI;
|
|
private System.Windows.Forms.Timer timerUpdateInstances;
|
|
private System.Windows.Forms.ContextMenuStrip instanceContextMenu;
|
|
private System.Windows.Forms.ToolStripMenuItem resetChatToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem shutdownHarnessToolStripMenuItem;
|
|
private ToolStripMenuItem restartApplicationToolStripMenuItem;
|
|
}
|
|
} |