mirror of
https://github.com/cyberark/PipeViewer
synced 2026-06-06 15:34:28 +00:00
New Version
This commit is contained in:
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
|
||||
</startup>
|
||||
</configuration>
|
||||
</configuration>
|
||||
|
||||
Generated
+109
-73
@@ -29,6 +29,7 @@
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.groupBoxNamedPipe = new System.Windows.Forms.GroupBox();
|
||||
this.checkBoxHandle = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxReadMode = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxNumberOfLinks = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxPipeType = new System.Windows.Forms.CheckBox();
|
||||
@@ -57,7 +58,6 @@
|
||||
this.groupBoxAccess = new System.Windows.Forms.GroupBox();
|
||||
this.checkBoxGrantedAccess = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxGrantedAccessGeneric = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxHandle = new System.Windows.Forms.CheckBox();
|
||||
this.groupBoxNamedPipe.SuspendLayout();
|
||||
this.groupBoxTimeStamp.SuspendLayout();
|
||||
this.groupBoxSecurityDescriptor.SuspendLayout();
|
||||
@@ -75,21 +75,37 @@
|
||||
this.groupBoxNamedPipe.Controls.Add(this.checkBoxEndpointType);
|
||||
this.groupBoxNamedPipe.Controls.Add(this.checkBoxSddl);
|
||||
this.groupBoxNamedPipe.Controls.Add(this.checkBoxName);
|
||||
this.groupBoxNamedPipe.Location = new System.Drawing.Point(12, 47);
|
||||
this.groupBoxNamedPipe.Location = new System.Drawing.Point(16, 58);
|
||||
this.groupBoxNamedPipe.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.groupBoxNamedPipe.Name = "groupBoxNamedPipe";
|
||||
this.groupBoxNamedPipe.Size = new System.Drawing.Size(272, 145);
|
||||
this.groupBoxNamedPipe.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.groupBoxNamedPipe.Size = new System.Drawing.Size(363, 178);
|
||||
this.groupBoxNamedPipe.TabIndex = 0;
|
||||
this.groupBoxNamedPipe.TabStop = false;
|
||||
this.groupBoxNamedPipe.Text = "Named Pipe";
|
||||
//
|
||||
// checkBoxHandle
|
||||
//
|
||||
this.checkBoxHandle.AutoSize = true;
|
||||
this.checkBoxHandle.Checked = true;
|
||||
this.checkBoxHandle.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.checkBoxHandle.Location = new System.Drawing.Point(7, 150);
|
||||
this.checkBoxHandle.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxHandle.Name = "checkBoxHandle";
|
||||
this.checkBoxHandle.Size = new System.Drawing.Size(70, 20);
|
||||
this.checkBoxHandle.TabIndex = 8;
|
||||
this.checkBoxHandle.Text = "Handle";
|
||||
this.checkBoxHandle.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxReadMode
|
||||
//
|
||||
this.checkBoxReadMode.AutoSize = true;
|
||||
this.checkBoxReadMode.Checked = true;
|
||||
this.checkBoxReadMode.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.checkBoxReadMode.Location = new System.Drawing.Point(6, 99);
|
||||
this.checkBoxReadMode.Location = new System.Drawing.Point(8, 122);
|
||||
this.checkBoxReadMode.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxReadMode.Name = "checkBoxReadMode";
|
||||
this.checkBoxReadMode.Size = new System.Drawing.Size(82, 17);
|
||||
this.checkBoxReadMode.Size = new System.Drawing.Size(98, 20);
|
||||
this.checkBoxReadMode.TabIndex = 7;
|
||||
this.checkBoxReadMode.Text = "Read Mode";
|
||||
this.checkBoxReadMode.UseVisualStyleBackColor = true;
|
||||
@@ -99,9 +115,10 @@
|
||||
this.checkBoxNumberOfLinks.AutoSize = true;
|
||||
this.checkBoxNumberOfLinks.Checked = true;
|
||||
this.checkBoxNumberOfLinks.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.checkBoxNumberOfLinks.Location = new System.Drawing.Point(132, 99);
|
||||
this.checkBoxNumberOfLinks.Location = new System.Drawing.Point(176, 122);
|
||||
this.checkBoxNumberOfLinks.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxNumberOfLinks.Name = "checkBoxNumberOfLinks";
|
||||
this.checkBoxNumberOfLinks.Size = new System.Drawing.Size(103, 17);
|
||||
this.checkBoxNumberOfLinks.Size = new System.Drawing.Size(122, 20);
|
||||
this.checkBoxNumberOfLinks.TabIndex = 6;
|
||||
this.checkBoxNumberOfLinks.Text = "Number of Links";
|
||||
this.checkBoxNumberOfLinks.UseVisualStyleBackColor = true;
|
||||
@@ -111,9 +128,10 @@
|
||||
this.checkBoxPipeType.AutoSize = true;
|
||||
this.checkBoxPipeType.Checked = true;
|
||||
this.checkBoxPipeType.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.checkBoxPipeType.Location = new System.Drawing.Point(132, 76);
|
||||
this.checkBoxPipeType.Location = new System.Drawing.Point(176, 94);
|
||||
this.checkBoxPipeType.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxPipeType.Name = "checkBoxPipeType";
|
||||
this.checkBoxPipeType.Size = new System.Drawing.Size(74, 17);
|
||||
this.checkBoxPipeType.Size = new System.Drawing.Size(89, 20);
|
||||
this.checkBoxPipeType.TabIndex = 5;
|
||||
this.checkBoxPipeType.Text = "Pipe Type";
|
||||
this.checkBoxPipeType.UseVisualStyleBackColor = true;
|
||||
@@ -123,9 +141,10 @@
|
||||
this.checkBoxConfiguration.AutoSize = true;
|
||||
this.checkBoxConfiguration.Checked = true;
|
||||
this.checkBoxConfiguration.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.checkBoxConfiguration.Location = new System.Drawing.Point(6, 76);
|
||||
this.checkBoxConfiguration.Location = new System.Drawing.Point(8, 94);
|
||||
this.checkBoxConfiguration.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxConfiguration.Name = "checkBoxConfiguration";
|
||||
this.checkBoxConfiguration.Size = new System.Drawing.Size(88, 17);
|
||||
this.checkBoxConfiguration.Size = new System.Drawing.Size(104, 20);
|
||||
this.checkBoxConfiguration.TabIndex = 4;
|
||||
this.checkBoxConfiguration.Text = "Configuration";
|
||||
this.checkBoxConfiguration.UseVisualStyleBackColor = true;
|
||||
@@ -135,9 +154,10 @@
|
||||
this.checkBoxClientProcessId.AutoSize = true;
|
||||
this.checkBoxClientProcessId.Checked = true;
|
||||
this.checkBoxClientProcessId.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.checkBoxClientProcessId.Location = new System.Drawing.Point(132, 53);
|
||||
this.checkBoxClientProcessId.Location = new System.Drawing.Point(176, 65);
|
||||
this.checkBoxClientProcessId.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxClientProcessId.Name = "checkBoxClientProcessId";
|
||||
this.checkBoxClientProcessId.Size = new System.Drawing.Size(78, 17);
|
||||
this.checkBoxClientProcessId.Size = new System.Drawing.Size(91, 20);
|
||||
this.checkBoxClientProcessId.TabIndex = 3;
|
||||
this.checkBoxClientProcessId.Text = "Client PIDs";
|
||||
this.checkBoxClientProcessId.UseVisualStyleBackColor = true;
|
||||
@@ -147,9 +167,10 @@
|
||||
this.checkBoxEndpointType.AutoSize = true;
|
||||
this.checkBoxEndpointType.Checked = true;
|
||||
this.checkBoxEndpointType.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.checkBoxEndpointType.Location = new System.Drawing.Point(6, 53);
|
||||
this.checkBoxEndpointType.Location = new System.Drawing.Point(8, 65);
|
||||
this.checkBoxEndpointType.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxEndpointType.Name = "checkBoxEndpointType";
|
||||
this.checkBoxEndpointType.Size = new System.Drawing.Size(95, 17);
|
||||
this.checkBoxEndpointType.Size = new System.Drawing.Size(114, 20);
|
||||
this.checkBoxEndpointType.TabIndex = 2;
|
||||
this.checkBoxEndpointType.Text = "Endpoint Type";
|
||||
this.checkBoxEndpointType.UseVisualStyleBackColor = true;
|
||||
@@ -159,9 +180,10 @@
|
||||
this.checkBoxSddl.AutoSize = true;
|
||||
this.checkBoxSddl.Checked = true;
|
||||
this.checkBoxSddl.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.checkBoxSddl.Location = new System.Drawing.Point(132, 30);
|
||||
this.checkBoxSddl.Location = new System.Drawing.Point(176, 37);
|
||||
this.checkBoxSddl.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxSddl.Name = "checkBoxSddl";
|
||||
this.checkBoxSddl.Size = new System.Drawing.Size(47, 17);
|
||||
this.checkBoxSddl.Size = new System.Drawing.Size(54, 20);
|
||||
this.checkBoxSddl.TabIndex = 1;
|
||||
this.checkBoxSddl.Text = "Sddl";
|
||||
this.checkBoxSddl.UseVisualStyleBackColor = true;
|
||||
@@ -171,9 +193,10 @@
|
||||
this.checkBoxName.AutoSize = true;
|
||||
this.checkBoxName.Checked = true;
|
||||
this.checkBoxName.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.checkBoxName.Location = new System.Drawing.Point(7, 30);
|
||||
this.checkBoxName.Location = new System.Drawing.Point(9, 37);
|
||||
this.checkBoxName.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxName.Name = "checkBoxName";
|
||||
this.checkBoxName.Size = new System.Drawing.Size(54, 17);
|
||||
this.checkBoxName.Size = new System.Drawing.Size(63, 20);
|
||||
this.checkBoxName.TabIndex = 0;
|
||||
this.checkBoxName.Text = "Name";
|
||||
this.checkBoxName.UseVisualStyleBackColor = true;
|
||||
@@ -181,9 +204,10 @@
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(12, 19);
|
||||
this.label1.Location = new System.Drawing.Point(16, 23);
|
||||
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(243, 13);
|
||||
this.label1.Size = new System.Drawing.Size(300, 16);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "Select columns to appear in the Procnoid window:";
|
||||
//
|
||||
@@ -194,9 +218,11 @@
|
||||
this.groupBoxTimeStamp.Controls.Add(this.checkBoxLastWriteTime);
|
||||
this.groupBoxTimeStamp.Controls.Add(this.checkBoxLastAccessTime);
|
||||
this.groupBoxTimeStamp.Controls.Add(this.checkBoxFileCreationTime);
|
||||
this.groupBoxTimeStamp.Location = new System.Drawing.Point(12, 410);
|
||||
this.groupBoxTimeStamp.Location = new System.Drawing.Point(16, 505);
|
||||
this.groupBoxTimeStamp.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.groupBoxTimeStamp.Name = "groupBoxTimeStamp";
|
||||
this.groupBoxTimeStamp.Size = new System.Drawing.Size(272, 95);
|
||||
this.groupBoxTimeStamp.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.groupBoxTimeStamp.Size = new System.Drawing.Size(363, 117);
|
||||
this.groupBoxTimeStamp.TabIndex = 3;
|
||||
this.groupBoxTimeStamp.TabStop = false;
|
||||
this.groupBoxTimeStamp.Text = "Time Stamp";
|
||||
@@ -206,9 +232,10 @@
|
||||
this.checkBoxCreationTime.AutoSize = true;
|
||||
this.checkBoxCreationTime.Checked = true;
|
||||
this.checkBoxCreationTime.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.checkBoxCreationTime.Location = new System.Drawing.Point(7, 28);
|
||||
this.checkBoxCreationTime.Location = new System.Drawing.Point(9, 34);
|
||||
this.checkBoxCreationTime.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxCreationTime.Name = "checkBoxCreationTime";
|
||||
this.checkBoxCreationTime.Size = new System.Drawing.Size(91, 17);
|
||||
this.checkBoxCreationTime.Size = new System.Drawing.Size(110, 20);
|
||||
this.checkBoxCreationTime.TabIndex = 3;
|
||||
this.checkBoxCreationTime.Text = "Creation Time";
|
||||
this.checkBoxCreationTime.UseVisualStyleBackColor = true;
|
||||
@@ -216,9 +243,10 @@
|
||||
// checkBoxChangeTime
|
||||
//
|
||||
this.checkBoxChangeTime.AutoSize = true;
|
||||
this.checkBoxChangeTime.Location = new System.Drawing.Point(7, 72);
|
||||
this.checkBoxChangeTime.Location = new System.Drawing.Point(9, 89);
|
||||
this.checkBoxChangeTime.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxChangeTime.Name = "checkBoxChangeTime";
|
||||
this.checkBoxChangeTime.Size = new System.Drawing.Size(89, 17);
|
||||
this.checkBoxChangeTime.Size = new System.Drawing.Size(107, 20);
|
||||
this.checkBoxChangeTime.TabIndex = 6;
|
||||
this.checkBoxChangeTime.Text = "Change Time";
|
||||
this.checkBoxChangeTime.UseVisualStyleBackColor = true;
|
||||
@@ -226,9 +254,10 @@
|
||||
// checkBoxLastWriteTime
|
||||
//
|
||||
this.checkBoxLastWriteTime.AutoSize = true;
|
||||
this.checkBoxLastWriteTime.Location = new System.Drawing.Point(133, 51);
|
||||
this.checkBoxLastWriteTime.Location = new System.Drawing.Point(177, 63);
|
||||
this.checkBoxLastWriteTime.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxLastWriteTime.Name = "checkBoxLastWriteTime";
|
||||
this.checkBoxLastWriteTime.Size = new System.Drawing.Size(100, 17);
|
||||
this.checkBoxLastWriteTime.Size = new System.Drawing.Size(119, 20);
|
||||
this.checkBoxLastWriteTime.TabIndex = 5;
|
||||
this.checkBoxLastWriteTime.Text = "Last Write Time";
|
||||
this.checkBoxLastWriteTime.UseVisualStyleBackColor = true;
|
||||
@@ -236,9 +265,10 @@
|
||||
// checkBoxLastAccessTime
|
||||
//
|
||||
this.checkBoxLastAccessTime.AutoSize = true;
|
||||
this.checkBoxLastAccessTime.Location = new System.Drawing.Point(7, 51);
|
||||
this.checkBoxLastAccessTime.Location = new System.Drawing.Point(9, 63);
|
||||
this.checkBoxLastAccessTime.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxLastAccessTime.Name = "checkBoxLastAccessTime";
|
||||
this.checkBoxLastAccessTime.Size = new System.Drawing.Size(110, 17);
|
||||
this.checkBoxLastAccessTime.Size = new System.Drawing.Size(133, 20);
|
||||
this.checkBoxLastAccessTime.TabIndex = 4;
|
||||
this.checkBoxLastAccessTime.Text = "Last Access Time";
|
||||
this.checkBoxLastAccessTime.UseVisualStyleBackColor = true;
|
||||
@@ -246,9 +276,10 @@
|
||||
// checkBoxFileCreationTime
|
||||
//
|
||||
this.checkBoxFileCreationTime.AutoSize = true;
|
||||
this.checkBoxFileCreationTime.Location = new System.Drawing.Point(133, 28);
|
||||
this.checkBoxFileCreationTime.Location = new System.Drawing.Point(177, 34);
|
||||
this.checkBoxFileCreationTime.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxFileCreationTime.Name = "checkBoxFileCreationTime";
|
||||
this.checkBoxFileCreationTime.Size = new System.Drawing.Size(110, 17);
|
||||
this.checkBoxFileCreationTime.Size = new System.Drawing.Size(135, 20);
|
||||
this.checkBoxFileCreationTime.TabIndex = 3;
|
||||
this.checkBoxFileCreationTime.Text = "File Creation Time";
|
||||
this.checkBoxFileCreationTime.UseVisualStyleBackColor = true;
|
||||
@@ -258,9 +289,10 @@
|
||||
this.checkBoxIntegrityLevel.AutoSize = true;
|
||||
this.checkBoxIntegrityLevel.Checked = true;
|
||||
this.checkBoxIntegrityLevel.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.checkBoxIntegrityLevel.Location = new System.Drawing.Point(132, 76);
|
||||
this.checkBoxIntegrityLevel.Location = new System.Drawing.Point(176, 94);
|
||||
this.checkBoxIntegrityLevel.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxIntegrityLevel.Name = "checkBoxIntegrityLevel";
|
||||
this.checkBoxIntegrityLevel.Size = new System.Drawing.Size(92, 17);
|
||||
this.checkBoxIntegrityLevel.Size = new System.Drawing.Size(108, 20);
|
||||
this.checkBoxIntegrityLevel.TabIndex = 1;
|
||||
this.checkBoxIntegrityLevel.Text = "Integrity Level";
|
||||
this.checkBoxIntegrityLevel.UseVisualStyleBackColor = true;
|
||||
@@ -270,18 +302,20 @@
|
||||
this.checkBoxPermissions.AutoSize = true;
|
||||
this.checkBoxPermissions.Checked = true;
|
||||
this.checkBoxPermissions.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.checkBoxPermissions.Location = new System.Drawing.Point(6, 30);
|
||||
this.checkBoxPermissions.Location = new System.Drawing.Point(8, 37);
|
||||
this.checkBoxPermissions.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxPermissions.Name = "checkBoxPermissions";
|
||||
this.checkBoxPermissions.Size = new System.Drawing.Size(81, 17);
|
||||
this.checkBoxPermissions.Size = new System.Drawing.Size(100, 20);
|
||||
this.checkBoxPermissions.TabIndex = 0;
|
||||
this.checkBoxPermissions.Text = "Permissions";
|
||||
this.checkBoxPermissions.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// buttonOK
|
||||
//
|
||||
this.buttonOK.Location = new System.Drawing.Point(113, 521);
|
||||
this.buttonOK.Location = new System.Drawing.Point(151, 641);
|
||||
this.buttonOK.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.buttonOK.Name = "buttonOK";
|
||||
this.buttonOK.Size = new System.Drawing.Size(75, 23);
|
||||
this.buttonOK.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonOK.TabIndex = 4;
|
||||
this.buttonOK.Text = "OK";
|
||||
this.buttonOK.UseVisualStyleBackColor = true;
|
||||
@@ -289,9 +323,10 @@
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Location = new System.Drawing.Point(209, 521);
|
||||
this.buttonCancel.Location = new System.Drawing.Point(279, 641);
|
||||
this.buttonCancel.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(75, 23);
|
||||
this.buttonCancel.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonCancel.TabIndex = 5;
|
||||
this.buttonCancel.Text = "Cancel";
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
@@ -305,9 +340,11 @@
|
||||
this.groupBoxSecurityDescriptor.Controls.Add(this.checkBoxGroupName);
|
||||
this.groupBoxSecurityDescriptor.Controls.Add(this.checkBoxPermissions);
|
||||
this.groupBoxSecurityDescriptor.Controls.Add(this.checkBoxIntegrityLevel);
|
||||
this.groupBoxSecurityDescriptor.Location = new System.Drawing.Point(12, 294);
|
||||
this.groupBoxSecurityDescriptor.Location = new System.Drawing.Point(16, 362);
|
||||
this.groupBoxSecurityDescriptor.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.groupBoxSecurityDescriptor.Name = "groupBoxSecurityDescriptor";
|
||||
this.groupBoxSecurityDescriptor.Size = new System.Drawing.Size(272, 108);
|
||||
this.groupBoxSecurityDescriptor.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.groupBoxSecurityDescriptor.Size = new System.Drawing.Size(363, 133);
|
||||
this.groupBoxSecurityDescriptor.TabIndex = 3;
|
||||
this.groupBoxSecurityDescriptor.TabStop = false;
|
||||
this.groupBoxSecurityDescriptor.Text = "Security Descriptor";
|
||||
@@ -315,9 +352,10 @@
|
||||
// checkBoxGroupSid
|
||||
//
|
||||
this.checkBoxGroupSid.AutoSize = true;
|
||||
this.checkBoxGroupSid.Location = new System.Drawing.Point(7, 76);
|
||||
this.checkBoxGroupSid.Location = new System.Drawing.Point(9, 94);
|
||||
this.checkBoxGroupSid.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxGroupSid.Name = "checkBoxGroupSid";
|
||||
this.checkBoxGroupSid.Size = new System.Drawing.Size(73, 17);
|
||||
this.checkBoxGroupSid.Size = new System.Drawing.Size(86, 20);
|
||||
this.checkBoxGroupSid.TabIndex = 3;
|
||||
this.checkBoxGroupSid.Text = "Group Sid";
|
||||
this.checkBoxGroupSid.UseVisualStyleBackColor = true;
|
||||
@@ -325,9 +363,10 @@
|
||||
// checkBoxOwnerSid
|
||||
//
|
||||
this.checkBoxOwnerSid.AutoSize = true;
|
||||
this.checkBoxOwnerSid.Location = new System.Drawing.Point(6, 53);
|
||||
this.checkBoxOwnerSid.Location = new System.Drawing.Point(8, 65);
|
||||
this.checkBoxOwnerSid.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxOwnerSid.Name = "checkBoxOwnerSid";
|
||||
this.checkBoxOwnerSid.Size = new System.Drawing.Size(75, 17);
|
||||
this.checkBoxOwnerSid.Size = new System.Drawing.Size(87, 20);
|
||||
this.checkBoxOwnerSid.TabIndex = 2;
|
||||
this.checkBoxOwnerSid.Text = "Owner Sid";
|
||||
this.checkBoxOwnerSid.UseVisualStyleBackColor = true;
|
||||
@@ -337,9 +376,10 @@
|
||||
this.checkBoxOwnerName.AutoSize = true;
|
||||
this.checkBoxOwnerName.Checked = true;
|
||||
this.checkBoxOwnerName.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.checkBoxOwnerName.Location = new System.Drawing.Point(132, 30);
|
||||
this.checkBoxOwnerName.Location = new System.Drawing.Point(176, 37);
|
||||
this.checkBoxOwnerName.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxOwnerName.Name = "checkBoxOwnerName";
|
||||
this.checkBoxOwnerName.Size = new System.Drawing.Size(88, 17);
|
||||
this.checkBoxOwnerName.Size = new System.Drawing.Size(104, 20);
|
||||
this.checkBoxOwnerName.TabIndex = 1;
|
||||
this.checkBoxOwnerName.Text = "Owner Name";
|
||||
this.checkBoxOwnerName.UseVisualStyleBackColor = true;
|
||||
@@ -347,9 +387,10 @@
|
||||
// checkBoxGroupName
|
||||
//
|
||||
this.checkBoxGroupName.AutoSize = true;
|
||||
this.checkBoxGroupName.Location = new System.Drawing.Point(132, 53);
|
||||
this.checkBoxGroupName.Location = new System.Drawing.Point(176, 65);
|
||||
this.checkBoxGroupName.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxGroupName.Name = "checkBoxGroupName";
|
||||
this.checkBoxGroupName.Size = new System.Drawing.Size(86, 17);
|
||||
this.checkBoxGroupName.Size = new System.Drawing.Size(103, 20);
|
||||
this.checkBoxGroupName.TabIndex = 0;
|
||||
this.checkBoxGroupName.Text = "Group Name";
|
||||
this.checkBoxGroupName.UseVisualStyleBackColor = true;
|
||||
@@ -359,9 +400,10 @@
|
||||
this.checkBoxDirectoryGrantedAccess.AutoSize = true;
|
||||
this.checkBoxDirectoryGrantedAccess.Checked = true;
|
||||
this.checkBoxDirectoryGrantedAccess.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.checkBoxDirectoryGrantedAccess.Location = new System.Drawing.Point(11, 30);
|
||||
this.checkBoxDirectoryGrantedAccess.Location = new System.Drawing.Point(15, 37);
|
||||
this.checkBoxDirectoryGrantedAccess.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxDirectoryGrantedAccess.Name = "checkBoxDirectoryGrantedAccess";
|
||||
this.checkBoxDirectoryGrantedAccess.Size = new System.Drawing.Size(147, 17);
|
||||
this.checkBoxDirectoryGrantedAccess.Size = new System.Drawing.Size(179, 20);
|
||||
this.checkBoxDirectoryGrantedAccess.TabIndex = 8;
|
||||
this.checkBoxDirectoryGrantedAccess.Text = "Directory Granted Access";
|
||||
this.checkBoxDirectoryGrantedAccess.UseVisualStyleBackColor = true;
|
||||
@@ -371,9 +413,11 @@
|
||||
this.groupBoxAccess.Controls.Add(this.checkBoxGrantedAccess);
|
||||
this.groupBoxAccess.Controls.Add(this.checkBoxDirectoryGrantedAccess);
|
||||
this.groupBoxAccess.Controls.Add(this.checkBoxGrantedAccessGeneric);
|
||||
this.groupBoxAccess.Location = new System.Drawing.Point(12, 198);
|
||||
this.groupBoxAccess.Location = new System.Drawing.Point(16, 244);
|
||||
this.groupBoxAccess.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.groupBoxAccess.Name = "groupBoxAccess";
|
||||
this.groupBoxAccess.Size = new System.Drawing.Size(272, 91);
|
||||
this.groupBoxAccess.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.groupBoxAccess.Size = new System.Drawing.Size(363, 112);
|
||||
this.groupBoxAccess.TabIndex = 4;
|
||||
this.groupBoxAccess.TabStop = false;
|
||||
this.groupBoxAccess.Text = "Access";
|
||||
@@ -383,9 +427,10 @@
|
||||
this.checkBoxGrantedAccess.AutoSize = true;
|
||||
this.checkBoxGrantedAccess.Checked = true;
|
||||
this.checkBoxGrantedAccess.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.checkBoxGrantedAccess.Location = new System.Drawing.Point(164, 30);
|
||||
this.checkBoxGrantedAccess.Location = new System.Drawing.Point(219, 37);
|
||||
this.checkBoxGrantedAccess.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxGrantedAccess.Name = "checkBoxGrantedAccess";
|
||||
this.checkBoxGrantedAccess.Size = new System.Drawing.Size(102, 17);
|
||||
this.checkBoxGrantedAccess.Size = new System.Drawing.Size(122, 20);
|
||||
this.checkBoxGrantedAccess.TabIndex = 1;
|
||||
this.checkBoxGrantedAccess.Text = "Granted Access";
|
||||
this.checkBoxGrantedAccess.UseVisualStyleBackColor = true;
|
||||
@@ -395,30 +440,19 @@
|
||||
this.checkBoxGrantedAccessGeneric.AutoSize = true;
|
||||
this.checkBoxGrantedAccessGeneric.Checked = true;
|
||||
this.checkBoxGrantedAccessGeneric.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.checkBoxGrantedAccessGeneric.Location = new System.Drawing.Point(11, 53);
|
||||
this.checkBoxGrantedAccessGeneric.Location = new System.Drawing.Point(15, 65);
|
||||
this.checkBoxGrantedAccessGeneric.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.checkBoxGrantedAccessGeneric.Name = "checkBoxGrantedAccessGeneric";
|
||||
this.checkBoxGrantedAccessGeneric.Size = new System.Drawing.Size(142, 17);
|
||||
this.checkBoxGrantedAccessGeneric.Size = new System.Drawing.Size(172, 20);
|
||||
this.checkBoxGrantedAccessGeneric.TabIndex = 0;
|
||||
this.checkBoxGrantedAccessGeneric.Text = "Granted Access Generic";
|
||||
this.checkBoxGrantedAccessGeneric.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxHandle
|
||||
//
|
||||
this.checkBoxHandle.AutoSize = true;
|
||||
this.checkBoxHandle.Checked = true;
|
||||
this.checkBoxHandle.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.checkBoxHandle.Location = new System.Drawing.Point(5, 122);
|
||||
this.checkBoxHandle.Name = "checkBoxHandle";
|
||||
this.checkBoxHandle.Size = new System.Drawing.Size(60, 17);
|
||||
this.checkBoxHandle.TabIndex = 8;
|
||||
this.checkBoxHandle.Text = "Handle";
|
||||
this.checkBoxHandle.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// ColumnSelection
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(296, 557);
|
||||
this.ClientSize = new System.Drawing.Size(395, 686);
|
||||
this.Controls.Add(this.groupBoxAccess);
|
||||
this.Controls.Add(this.groupBoxSecurityDescriptor);
|
||||
this.Controls.Add(this.buttonCancel);
|
||||
@@ -426,11 +460,13 @@
|
||||
this.Controls.Add(this.groupBoxTimeStamp);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.groupBoxNamedPipe);
|
||||
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "ColumnSelection";
|
||||
this.ShowIcon = false;
|
||||
this.Text = "PipeViewer Column Selection";
|
||||
this.Load += new System.EventHandler(this.ColumnSelection_Load);
|
||||
this.groupBoxNamedPipe.ResumeLayout(false);
|
||||
this.groupBoxNamedPipe.PerformLayout();
|
||||
this.groupBoxTimeStamp.ResumeLayout(false);
|
||||
|
||||
@@ -73,5 +73,10 @@ namespace PipeViewer
|
||||
OnselectColumnsUpdate(groupBoxNamedPipe, groupBoxAccess, groupBoxSecurityDescriptor, groupBoxTimeStamp);
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void ColumnSelection_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,8 +12,6 @@ namespace PipeViewer.Control
|
||||
Client
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static NtNamedPipeFileBase GetNamedPipeObject(string i_NamedPipe, NamedPipeFunctionEndType e_EndType)
|
||||
{
|
||||
NtNamedPipeFileBase namedPipeFileObject = null;
|
||||
|
||||
Generated
+16
-12
@@ -112,10 +112,11 @@
|
||||
this.ColumnLastAccessTime,
|
||||
this.ColumnLastWriteTime,
|
||||
this.ColumnChangeTime});
|
||||
this.dataGridView1.Location = new System.Drawing.Point(3, 52);
|
||||
this.dataGridView1.Location = new System.Drawing.Point(4, 64);
|
||||
this.dataGridView1.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(951, 400);
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1268, 451);
|
||||
this.dataGridView1.TabIndex = 0;
|
||||
this.dataGridView1.CellMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dataGridView1_CellMouseClick);
|
||||
this.dataGridView1.ColumnHeaderMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dataGridView1_ColumnHeaderMouseClick);
|
||||
@@ -273,7 +274,8 @@
|
||||
this.helpToolStripMenuItem});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(955, 24);
|
||||
this.menuStrip1.Padding = new System.Windows.Forms.Padding(8, 2, 0, 2);
|
||||
this.menuStrip1.Size = new System.Drawing.Size(1273, 24);
|
||||
this.menuStrip1.TabIndex = 1;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
@@ -309,11 +311,12 @@
|
||||
//
|
||||
// statusStrip1
|
||||
//
|
||||
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.toolStripStatusLabelTotalNamedPipes});
|
||||
this.statusStrip1.Location = new System.Drawing.Point(0, 432);
|
||||
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[]
|
||||
{this.toolStripStatusLabelTotalNamedPipes});
|
||||
this.statusStrip1.Location = new System.Drawing.Point(0, 537);
|
||||
this.statusStrip1.Name = "statusStrip1";
|
||||
this.statusStrip1.Size = new System.Drawing.Size(955, 22);
|
||||
this.statusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 19, 0);
|
||||
this.statusStrip1.Size = new System.Drawing.Size(1273, 22);
|
||||
this.statusStrip1.TabIndex = 2;
|
||||
this.statusStrip1.Text = "statusStrip1";
|
||||
//
|
||||
@@ -335,7 +338,7 @@
|
||||
this.colorPermissionsButton});
|
||||
this.toolStrip1.Location = new System.Drawing.Point(0, 24);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new System.Drawing.Size(955, 25);
|
||||
this.toolStrip1.Size = new System.Drawing.Size(1273, 25);
|
||||
this.toolStrip1.TabIndex = 3;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
//
|
||||
@@ -412,9 +415,9 @@
|
||||
// hScrollBar1
|
||||
//
|
||||
this.hScrollBar1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.hScrollBar1.Location = new System.Drawing.Point(0, 414);
|
||||
this.hScrollBar1.Location = new System.Drawing.Point(0, 519);
|
||||
this.hScrollBar1.Name = "hScrollBar1";
|
||||
this.hScrollBar1.Size = new System.Drawing.Size(955, 18);
|
||||
this.hScrollBar1.Size = new System.Drawing.Size(1273, 18);
|
||||
this.hScrollBar1.TabIndex = 5;
|
||||
this.hScrollBar1.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar1_Scroll);
|
||||
//
|
||||
@@ -443,9 +446,9 @@
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(955, 454);
|
||||
this.ClientSize = new System.Drawing.Size(1273, 559);
|
||||
this.Controls.Add(this.hScrollBar1);
|
||||
this.Controls.Add(this.toolStrip1);
|
||||
this.Controls.Add(this.statusStrip1);
|
||||
@@ -453,6 +456,7 @@
|
||||
this.Controls.Add(this.menuStrip1);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MainMenuStrip = this.menuStrip1;
|
||||
this.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.Name = "Form1";
|
||||
this.Text = "PipeViewer";
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
|
||||
+40
-18
@@ -21,7 +21,6 @@ namespace PipeViewer
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
|
||||
private int m_NamedPipesNumber;
|
||||
private Tuple<String, String> m_RightClickContent;
|
||||
private ListView m_LastListViewColumnFilter = new ListView();
|
||||
@@ -197,7 +196,6 @@ namespace PipeViewer
|
||||
DataGridViewRow row = new DataGridViewRow();
|
||||
row.CreateCells(dataGridView1);
|
||||
row.Cells[m_ColumnIndexes[ColumnName.HeaderText]].Value = i_NamedPipe;
|
||||
|
||||
row.DefaultCellStyle.Font = new Font(dataGridView1.DefaultCellStyle.Font, FontStyle.Regular);
|
||||
|
||||
NtNamedPipeFileBase namedPipeObject = Engine.GetNamedPipeObject(i_NamedPipe, Engine.NamedPipeFunctionEndType.Client);
|
||||
@@ -297,6 +295,8 @@ namespace PipeViewer
|
||||
dataGridView1.Rows.Add(row);
|
||||
this.m_NamedPipesNumber += 1;
|
||||
this.toolStripStatusLabelTotalNamedPipes.Text = "Total Named Pipes: " + this.m_NamedPipesNumber;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -476,7 +476,7 @@ namespace PipeViewer
|
||||
{
|
||||
FormSearch findWindow = new FormSearch();
|
||||
findWindow.searchForMatch += new FormSearch.searchEventHandler(FindWindow_searchForMatch);
|
||||
findWindow.ShowDialog();
|
||||
findWindow.Show();
|
||||
}
|
||||
|
||||
private void openPipeChat(string pipeName)
|
||||
@@ -525,8 +525,10 @@ namespace PipeViewer
|
||||
cleanAllSelectedCells();
|
||||
dataGridView1.Rows[i].Selected = true;
|
||||
foundMatch = true;
|
||||
|
||||
dataGridView1.CurrentCell = dataGridView1.Rows[i].Cells[0];
|
||||
dataGridView1.FirstDisplayedScrollingRowIndex = dataGridView1.SelectedRows[0].Index;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -549,6 +551,7 @@ namespace PipeViewer
|
||||
for (int i = 0; i < dataGridView1.SelectedCells.Count; i++)
|
||||
{
|
||||
dataGridView1.SelectedCells[i].Selected = false;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -556,7 +559,7 @@ namespace PipeViewer
|
||||
{
|
||||
ColumnSelection columnSelection = new ColumnSelection(dataGridView1);
|
||||
columnSelection.selectColumnsUpdate += new selectColumnsEventHandler(this.ColumnSelection_selectColumnsUpdate);
|
||||
columnSelection.ShowDialog();
|
||||
columnSelection.Show();
|
||||
}
|
||||
|
||||
private void ColumnSelection_selectColumnsUpdate(GroupBox i_NamedPipe, GroupBox i_Access, GroupBox i_SecurityDescriptor, GroupBox i_TimeStamp)
|
||||
@@ -612,14 +615,14 @@ namespace PipeViewer
|
||||
{
|
||||
FormColumnFilter columnFilter = new FormColumnFilter(ref m_LastListViewColumnFilter);
|
||||
columnFilter.FilterOKUpdate += new FilterOKEventHandler(ColumnFilter_OKFilter);
|
||||
columnFilter.ShowDialog();
|
||||
columnFilter.Show();
|
||||
}
|
||||
|
||||
private void openHighlightWindows()
|
||||
{
|
||||
FormHighlighting hightlightWindow = new FormHighlighting(ref m_LastListViewHighlighFilter);
|
||||
hightlightWindow.hightlightRowsUpdate += HightlightWindow_hightlightRowsUpdate;
|
||||
hightlightWindow.ShowDialog();
|
||||
hightlightWindow.Show();
|
||||
}
|
||||
|
||||
private void HightlightWindow_hightlightRowsUpdate(ListView i_ListView)
|
||||
@@ -888,15 +891,23 @@ namespace PipeViewer
|
||||
ToolStripItem[] items = createNewToolStripMenuItem(e.RowIndex, e.ColumnIndex);
|
||||
}
|
||||
contextMenuStripRightClickGridView.Show(Cursor.Position.X, Cursor.Position.Y);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
private ToolStripItem[] createNewToolStripMenuItem(int rowIndex, int columnIndex)
|
||||
{
|
||||
string cellValue = dataGridView1.Rows[rowIndex].Cells[columnIndex].Value.ToString();
|
||||
ToolStripItem[] toolStripMenuItems = new ToolStripMenuItem[4];
|
||||
|
||||
ToolStripSeparator separator = new ToolStripSeparator();
|
||||
contextMenuStripRightClickGridView.Items.Add(separator);
|
||||
ToolStripItem[] toolStripMenuItems = new ToolStripMenuItem[3];
|
||||
|
||||
// first separator
|
||||
ToolStripSeparator firstSeparator = new ToolStripSeparator();
|
||||
contextMenuStripRightClickGridView.Items.Add(firstSeparator);
|
||||
|
||||
// first three tool items
|
||||
toolStripMenuItems[0] = new ToolStripMenuItem("Include " + cellValue);
|
||||
toolStripMenuItems[1] = new ToolStripMenuItem("Exclude " + cellValue);
|
||||
toolStripMenuItems[2] = new ToolStripMenuItem("Highlight " + cellValue);
|
||||
@@ -906,14 +917,7 @@ namespace PipeViewer
|
||||
toolStripMenuItems[0].Click += new EventHandler(includeFromStripMenu);
|
||||
toolStripMenuItems[1].Click += new EventHandler(excludeFromStripMenu);
|
||||
toolStripMenuItems[2].Click += new EventHandler(highlightFromStripMenu);
|
||||
if (dataGridView1.Columns[columnIndex].HeaderText == "Name")
|
||||
{
|
||||
ToolStripSeparator secondSeparator = new ToolStripSeparator();
|
||||
contextMenuStripRightClickGridView.Items.Add(secondSeparator);
|
||||
toolStripMenuItems[3] = new ToolStripMenuItem("Chat with " + cellValue);
|
||||
toolStripMenuItems[3].Click += new EventHandler(chatWithPipeFromStripMenu);
|
||||
m_PipeToChatWith = cellValue;
|
||||
}
|
||||
|
||||
foreach (var item in toolStripMenuItems)
|
||||
{
|
||||
if (item != null)
|
||||
@@ -921,9 +925,25 @@ namespace PipeViewer
|
||||
contextMenuStripRightClickGridView.Items.Add(item);
|
||||
}
|
||||
}
|
||||
|
||||
// second separator
|
||||
ToolStripSeparator secondSeparator = new ToolStripSeparator();
|
||||
contextMenuStripRightClickGridView.Items.Add(secondSeparator);
|
||||
|
||||
// last toolitem
|
||||
if (dataGridView1.Columns[columnIndex].HeaderText == "Name")
|
||||
{
|
||||
ToolStripMenuItem ChatWithToolItem = new ToolStripMenuItem("Chat with " + cellValue);
|
||||
ChatWithToolItem.Click += new EventHandler(chatWithPipeFromStripMenu);
|
||||
m_PipeToChatWith = cellValue;
|
||||
contextMenuStripRightClickGridView.Items.Add(ChatWithToolItem);
|
||||
}
|
||||
|
||||
return toolStripMenuItems;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void chatWithPipeFromStripMenu(object sender, EventArgs e)
|
||||
{
|
||||
openPipeChat(m_PipeToChatWith);
|
||||
@@ -1109,6 +1129,8 @@ namespace PipeViewer
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void copyCellToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
string copiedCell = "";
|
||||
|
||||
@@ -198,6 +198,9 @@
|
||||
<metadata name="contextMenuStripRightClickGridView.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>353, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>25</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
|
||||
Generated
+10
-10
@@ -90,7 +90,7 @@ namespace PipeViewer
|
||||
this.isConnectedLabel.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.isConnectedLabel.Name = "isConnectedLabel";
|
||||
this.isConnectedLabel.Padding = new System.Windows.Forms.Padding(11);
|
||||
this.isConnectedLabel.Size = new System.Drawing.Size(124, 38);
|
||||
this.isConnectedLabel.Size = new System.Drawing.Size(123, 38);
|
||||
this.isConnectedLabel.TabIndex = 3;
|
||||
this.isConnectedLabel.Text = "Not Connected";
|
||||
//
|
||||
@@ -133,7 +133,7 @@ namespace PipeViewer
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowHeadersVisible = false;
|
||||
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(926, 282);
|
||||
this.dataGridView1.Size = new System.Drawing.Size(926, 312);
|
||||
this.dataGridView1.TabIndex = 4;
|
||||
this.dataGridView1.CellMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dataGridView1_CellMouseClick);
|
||||
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
|
||||
@@ -285,21 +285,21 @@ namespace PipeViewer
|
||||
this.tabControl1.Controls.Add(this.TextTab);
|
||||
this.tabControl1.Controls.Add(this.BinaryTab);
|
||||
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.tabControl1.Location = new System.Drawing.Point(0, 309);
|
||||
this.tabControl1.Location = new System.Drawing.Point(0, 339);
|
||||
this.tabControl1.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.tabControl1.Name = "tabControl1";
|
||||
this.tabControl1.Padding = new System.Drawing.Point(0, 0);
|
||||
this.tabControl1.SelectedIndex = 0;
|
||||
this.tabControl1.Size = new System.Drawing.Size(926, 152);
|
||||
this.tabControl1.Size = new System.Drawing.Size(926, 122);
|
||||
this.tabControl1.TabIndex = 6;
|
||||
//
|
||||
// TextTab
|
||||
//
|
||||
this.TextTab.Controls.Add(this.textBox);
|
||||
this.TextTab.Location = new System.Drawing.Point(4, 22);
|
||||
this.TextTab.Location = new System.Drawing.Point(4, 25);
|
||||
this.TextTab.Name = "TextTab";
|
||||
this.TextTab.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.TextTab.Size = new System.Drawing.Size(918, 126);
|
||||
this.TextTab.Size = new System.Drawing.Size(918, 93);
|
||||
this.TextTab.TabIndex = 0;
|
||||
this.TextTab.Text = "Text";
|
||||
this.TextTab.UseVisualStyleBackColor = true;
|
||||
@@ -314,7 +314,7 @@ namespace PipeViewer
|
||||
this.textBox.Multiline = true;
|
||||
this.textBox.Name = "textBox";
|
||||
this.textBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||
this.textBox.Size = new System.Drawing.Size(912, 120);
|
||||
this.textBox.Size = new System.Drawing.Size(912, 87);
|
||||
this.textBox.TabIndex = 2;
|
||||
this.textBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox_KeyDown);
|
||||
this.textBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox_KeyPress);
|
||||
@@ -322,10 +322,10 @@ namespace PipeViewer
|
||||
// BinaryTab
|
||||
//
|
||||
this.BinaryTab.Controls.Add(this.chatHexBox);
|
||||
this.BinaryTab.Location = new System.Drawing.Point(4, 22);
|
||||
this.BinaryTab.Location = new System.Drawing.Point(4, 25);
|
||||
this.BinaryTab.Name = "BinaryTab";
|
||||
this.BinaryTab.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.BinaryTab.Size = new System.Drawing.Size(918, 126);
|
||||
this.BinaryTab.Size = new System.Drawing.Size(918, 123);
|
||||
this.BinaryTab.TabIndex = 1;
|
||||
this.BinaryTab.Text = "Binary";
|
||||
this.BinaryTab.UseVisualStyleBackColor = true;
|
||||
@@ -339,7 +339,7 @@ namespace PipeViewer
|
||||
this.chatHexBox.Location = new System.Drawing.Point(3, 3);
|
||||
this.chatHexBox.Name = "chatHexBox";
|
||||
this.chatHexBox.ShadowSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(60)))), ((int)(((byte)(188)))), ((int)(((byte)(255)))));
|
||||
this.chatHexBox.Size = new System.Drawing.Size(912, 120);
|
||||
this.chatHexBox.Size = new System.Drawing.Size(912, 117);
|
||||
this.chatHexBox.StringViewVisible = true;
|
||||
this.chatHexBox.TabIndex = 0;
|
||||
this.chatHexBox.UseFixedBytesPerLine = true;
|
||||
|
||||
@@ -8,10 +8,11 @@
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>PipeViewer</RootNamespace>
|
||||
<AssemblyName>PipeViewer</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
@@ -37,7 +38,7 @@
|
||||
<HintPath>..\packages\Be.Windows.Forms.HexBox.1.6.1\lib\net40\Be.Windows.Forms.HexBox.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NtApiDotNet">
|
||||
<HintPath>C:\Users\natant\Downloads\NtApiDotNet.dll</HintPath>
|
||||
<HintPath>..\NtApiDotNet.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ namespace PipeViewer.Properties {
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ namespace PipeViewer.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.6.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
@@ -10,7 +10,7 @@ try {
|
||||
Write-Host "got client"
|
||||
|
||||
while ($true) {
|
||||
Write-Host "writing message $count"
|
||||
Write-Host "writing message #$count"
|
||||
|
||||
# Read data from the client
|
||||
$readBuffer = New-Object byte[] 1024
|
||||
@@ -23,13 +23,24 @@ try {
|
||||
|
||||
# Write data to the client
|
||||
$responseBytes = [System.Text.Encoding]::ASCII.GetBytes($responseData)
|
||||
try {
|
||||
$pipe.Write($responseBytes, 0, $responseBytes.Length)
|
||||
$pipe.Flush()
|
||||
} catch [System.Exception] {
|
||||
Write-Host "connection was lost"
|
||||
$pipe.Dispose()
|
||||
$pipe = New-Object System.IO.Pipes.NamedPipeServerStream($pipeName, [System.IO.Pipes.PipeDirection]::InOut, 1, [System.IO.Pipes.PipeTransmissionMode]::Message, [System.IO.Pipes.PipeOptions]::None)
|
||||
Write-Host "waiting for client"
|
||||
$pipe.WaitForConnection()
|
||||
Write-Host "got client 2"
|
||||
}
|
||||
|
||||
$count++
|
||||
Start-Sleep -Seconds 2
|
||||
}
|
||||
} catch [system.ArgumentNullException], [system.InvalidOperationException], [system.InvalidOperationException], [system.ObjectDisposedException] {
|
||||
Write-Host $_.ScriptStackTrace
|
||||
}
|
||||
finally {
|
||||
$pipe.Dispose()
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -0,0 +1,6 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
||||
Generated
+4
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8 (NamedPipeServer)" project-jdk-type="Python SDK" />
|
||||
</project>
|
||||
Generated
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/NamedPipeServer.iml" filepath="$PROJECT_DIR$/.idea/NamedPipeServer.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
Generated
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="ba438582-ac52-4ee6-b013-ce8fcf3d4811" name="Changes" comment="" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="Git.Settings">
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/../.." />
|
||||
</component>
|
||||
<component name="MarkdownSettingsMigration">
|
||||
<option name="stateVersion" value="1" />
|
||||
</component>
|
||||
<component name="ProjectId" id="2TQSYE7OHyhRTVy1tSc4hw71Zpy" />
|
||||
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
||||
<component name="ProjectViewState">
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent"><![CDATA[{
|
||||
"keyToString": {
|
||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||
"last_opened_file_path": "C:/Users/John",
|
||||
"settings.editor.selected.configurable": "com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable"
|
||||
}
|
||||
}]]></component>
|
||||
<component name="RunManager">
|
||||
<configuration name="main" type="PythonConfigurationType" factoryName="Python" nameIsGenerated="true">
|
||||
<module name="NamedPipeServer" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<envs>
|
||||
<env name="PYTHONUNBUFFERED" value="1" />
|
||||
</envs>
|
||||
<option name="SDK_HOME" value="" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||
<option name="IS_MODULE_SDK" value="true" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/main.py" />
|
||||
<option name="PARAMETERS" value="" />
|
||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||
<option name="EMULATE_TERMINAL" value="false" />
|
||||
<option name="MODULE_MODE" value="false" />
|
||||
<option name="REDIRECT_INPUT" value="false" />
|
||||
<option name="INPUT_FILE" value="" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
||||
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="ba438582-ac52-4ee6-b013-ce8fcf3d4811" name="Changes" comment="" />
|
||||
<created>1690973857373</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1690973857373</updated>
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="Vcs.Log.Tabs.Properties">
|
||||
<option name="TAB_STATES">
|
||||
<map>
|
||||
<entry key="MAIN">
|
||||
<value>
|
||||
<State />
|
||||
</value>
|
||||
</entry>
|
||||
</map>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
@@ -0,0 +1,36 @@
|
||||
import time
|
||||
import sys
|
||||
import win32pipe, win32file, pywintypes
|
||||
|
||||
|
||||
def pipe_server():
|
||||
print("pipe server")
|
||||
count = 0
|
||||
pipe = win32pipe.CreateNamedPipe(
|
||||
r'\\.\pipe\Foo',
|
||||
win32pipe.PIPE_ACCESS_DUPLEX,
|
||||
win32pipe.PIPE_TYPE_MESSAGE | win32pipe.PIPE_READMODE_MESSAGE | win32pipe.PIPE_WAIT,
|
||||
1, 65536, 65536,
|
||||
0,
|
||||
None)
|
||||
try:
|
||||
print("waiting for client")
|
||||
win32pipe.ConnectNamedPipe(pipe, None)
|
||||
print("got client")
|
||||
|
||||
while count < 10:
|
||||
print(f"writing message {count}")
|
||||
# convert to bytes
|
||||
some_data = str.encode(f"{count}")
|
||||
win32file.WriteFile(pipe, some_data)
|
||||
time.sleep(1)
|
||||
count += 1
|
||||
|
||||
print("finished now")
|
||||
finally:
|
||||
win32file.CloseHandle(pipe)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
pipe_server()
|
||||
|
||||
Reference in New Issue
Block a user