diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..abfc9d9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,579 @@ + +### Csharp ### +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp + +# JetBrains Rider +*.sln.iml + +### VisualStudio ### + +# User-specific files + +# User-specific files (MonoDevelop/Xamarin Studio) + +# Mono auto generated files + +# Build results + +# Visual Studio 2015/2017 cache/options directory +# Uncomment if you have tasks that create the project's static files in wwwroot + +# Visual Studio 2017 auto generated files + +# MSTest test Results + +# NUnit + +# Build Results of an ATL Project + +# Benchmark Results + +# .NET Core + +# ASP.NET Scaffolding + +# StyleCop + +# Files built by Visual Studio + +# Chutzpah Test files + +# Visual C++ cache files + +# Visual Studio profiler + +# Visual Studio Trace Files + +# TFS 2012 Local Workspace + +# Guidance Automation Toolkit + +# ReSharper is a .NET coding add-in + +# TeamCity is a build add-in + +# DotCover is a Code Coverage Tool + +# AxoCover is a Code Coverage Tool + +# Coverlet is a free, cross platform Code Coverage Tool + +# Visual Studio code coverage results + +# NCrunch + +# MightyMoose + +# Web workbench (sass) + +# Installshield output folder + +# DocProject is a documentation generator add-in + +# Click-Once directory + +# Publish Web Output +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted + +# NuGet Packages +# NuGet Symbol Packages +# The packages folder can be ignored because of Package Restore +# except build/, which is used as an MSBuild target. +# Uncomment if necessary however generally it will be regenerated when needed +# NuGet v3's project.json files produces more ignorable files + +# Microsoft Azure Build Output + +# Microsoft Azure Emulator + +# Windows Store app package directories and files + +# Visual Studio cache files +# files ending in .cache can be ignored +# but keep track of directories ending in .cache + +# Others + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) + +# RIA/Silverlight projects + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) + +# SQL Server files + +# Business Intelligence projects + +# Microsoft Fakes + +# GhostDoc plugin setting file + +# Node.js Tools for Visual Studio + +# Visual Studio 6 build log + +# Visual Studio 6 workspace options file + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) + +# Visual Studio 6 technical files + +# Visual Studio LightSwitch build output + +# Paket dependency manager + +# FAKE - F# Make + +# CodeRush personal settings + +# Python Tools for Visual Studio (PTVS) + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio + +# Telerik's JustMock configuration file + +# BizTalk build output + +# OpenCover UI analysis results + +# Azure Stream Analytics local run output + +# MSBuild Binary and Structured Log + +# NVidia Nsight GPU debugger configuration file + +# MFractors (Xamarin productivity tool) working folder + +# Local History for Visual Studio + +# Visual Studio History (VSHistory) files + +# BeatPulse healthcheck temp database + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 + +# Ionide (cross platform F# VS Code tools) working folder + +# Fody - auto-generated XML schema + +# VS Code files for those working on multiple tools + +# Local History for Visual Studio Code + +# Windows Installer files from build outputs + +# JetBrains Rider + +### VisualStudio Patch ### +# Additional files built by Visual Studio \ No newline at end of file diff --git a/PipeViewer/Form1.Designer.cs b/PipeViewer/Form1.Designer.cs index 5fcbb7b..b50433b 100644 --- a/PipeViewer/Form1.Designer.cs +++ b/PipeViewer/Form1.Designer.cs @@ -68,6 +68,7 @@ this.toolStripButtonFind = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonHighLight = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonGrid = new System.Windows.Forms.ToolStripButton(); + this.colorPermissionsButton = new System.Windows.Forms.ToolStripButton(); this.hScrollBar1 = new System.Windows.Forms.HScrollBar(); this.contextMenuStripRightClickGridView = new System.Windows.Forms.ContextMenuStrip(this.components); this.copyRowToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -330,7 +331,8 @@ this.toolStripButtonFilter, this.toolStripButtonFind, this.toolStripButtonHighLight, - this.toolStripButtonGrid}); + this.toolStripButtonGrid, + this.colorPermissionsButton}); this.toolStrip1.Location = new System.Drawing.Point(0, 24); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new System.Drawing.Size(955, 25); @@ -397,6 +399,16 @@ this.toolStripButtonGrid.Text = "Show Grid"; this.toolStripButtonGrid.Click += new System.EventHandler(this.toolStripButtonGrid_Click); // + // colorPermissionsButton + // + this.colorPermissionsButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.colorPermissionsButton.Image = global::PipeViewer.Properties.Resources.permission; + this.colorPermissionsButton.ImageTransparentColor = System.Drawing.Color.Magenta; + this.colorPermissionsButton.Name = "colorPermissionsButton"; + this.colorPermissionsButton.Size = new System.Drawing.Size(23, 22); + this.colorPermissionsButton.Text = "colorPermissionsButton"; + this.colorPermissionsButton.Click += new System.EventHandler(this.showPermissionsByColorButton); + // // hScrollBar1 // this.hScrollBar1.Dock = System.Windows.Forms.DockStyle.Bottom; @@ -499,6 +511,7 @@ private System.Windows.Forms.DataGridViewTextBoxColumn ColumnLastAccessTime; private System.Windows.Forms.DataGridViewTextBoxColumn ColumnLastWriteTime; private System.Windows.Forms.DataGridViewTextBoxColumn ColumnChangeTime; + private System.Windows.Forms.ToolStripButton colorPermissionsButton; } } diff --git a/PipeViewer/Form1.cs b/PipeViewer/Form1.cs index 1df9b29..ea266c6 100644 --- a/PipeViewer/Form1.cs +++ b/PipeViewer/Form1.cs @@ -11,6 +11,11 @@ using NtApiDotNet; using System.Runtime.InteropServices; using System.IO; using System.Diagnostics; +using System.IO.Pipes; +using System.Security.AccessControl; +using System.Security.Principal; +using System.DirectoryServices.AccountManagement; + namespace PipeViewer { @@ -31,7 +36,10 @@ namespace PipeViewer private IDictionary> m_ExcludeFilterDict = new Dictionary>(); private IDictionary> m_IncludeHighlightDict = new Dictionary>(); private IDictionary> m_ExcludeHighlightDict = new Dictionary>(); - + private string m_CurrentUserSid; + private WindowsIdentity m_CurrentIdentity; + private bool m_showPermissionColor = true; + private IDictionary m_SidDict = new Dictionary(); // https://stackoverflow.com/questions/1936682/how-do-i-display-a-files-properties-dialog-from-c // https://stackoverflow.com/a/32503655/2153777 // https://stackoverflow.com/a/28297300/2153777 @@ -80,7 +88,8 @@ namespace PipeViewer { InitializeComponent(); InitalizeColumnsHeaderDictionary(); - + m_CurrentIdentity = WindowsIdentity.GetCurrent(); + m_CurrentUserSid = m_CurrentIdentity.User.ToString(); typeof(DataGridView).InvokeMember( "DoubleBuffered", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.SetProperty, @@ -88,7 +97,7 @@ namespace PipeViewer dataGridView1, new object[] { true }); - //Task.Run(() => Utils.CreateDummyPipeForTesting()); + //Task.Run(() => Utils.CreateDummyPipeForTesting()); //dummRowsForDebug(); //dummyLoopRowsForDebug(); @@ -145,12 +154,58 @@ namespace PipeViewer private void initializePipeList() { + int numOfPipe = 0; String[] listOfPipes = System.IO.Directory.GetFiles(@"\\.\pipe\"); foreach (var namedPipe in listOfPipes) { addNamedPipeToDataGridView(namedPipe); + highlightPermittedPipes(namedPipe, numOfPipe); + numOfPipe++; + + } + } + + private void highlightPermittedPipes(string namdePipe, int numOfPipe) + { + + Color color = Color.White; + try + { + PipeSecurity pipeSecurity = new PipeSecurity(); + pipeSecurity.AddAccessRule(new PipeAccessRule("Everyone", PipeAccessRights.ReadWrite, AccessControlType.Allow)); + + using (NamedPipeServerStream server = new NamedPipeServerStream(namdePipe, PipeDirection.InOut, 1, PipeTransmissionMode.Byte, PipeOptions.None, 0, 0, pipeSecurity)) + { + Console.WriteLine("Access control entries:"); + foreach (PipeAccessRule rule in pipeSecurity.GetAccessRules(true, true, typeof(System.Security.Principal.NTAccount))) + { + Console.WriteLine("User/Group: {0}", rule.IdentityReference); + Console.WriteLine("Access: {0}", rule.AccessControlType); + Console.WriteLine("Rights: {0}", rule.PipeAccessRights); + Console.WriteLine(); + } + } + } + catch (Exception ex) + { + Console.WriteLine("Error: {0}", ex.Message); + } + WindowsIdentity currentUser = WindowsIdentity.GetCurrent(); + List groups = new List(); + + foreach (IdentityReference group in currentUser.Groups) + { + try + { + SecurityIdentifier sid = group.Translate(typeof(SecurityIdentifier)) as SecurityIdentifier; + NTAccount account = (NTAccount)sid.Translate(typeof(NTAccount)); + groups.Add(account.Value); + + } + catch { } } + dataGridView1.Rows[numOfPipe].DefaultCellStyle.BackColor = color; } //private delegate void initializePipeListCallBack(); @@ -173,7 +228,7 @@ namespace PipeViewer // https://blog.cjwdev.co.uk/2011/06/28/permissions-not-included-in-net-accessrule-filesystemrights-enum/ private void addNamedPipeToDataGridView(string i_NamedPipe) { - // i_NamedPipe = @"\\.\pipe\myPipe"; + // i_NamedPipe = @"\\.\pipe\myPipe"; string permissions; if (this.InvokeRequired) { @@ -201,19 +256,46 @@ namespace PipeViewer // We added try\catch because one specific bug with \\.\pipe\dbxsvc (DropBox). Maybe there is a better way to handle it? try { + if (namedPipeObject != null) { row.Cells[m_ColumnIndexes[ColumnSddl.HeaderText]].Value = namedPipeObject.Sddl; - + Color cellColor = Color.White; if (namedPipeObject.SecurityDescriptor.Dacl.Count != 0) { permissions = ""; foreach (Ace dacl in namedPipeObject.SecurityDescriptor.Dacl) { - permissions += dacl.Type.ToString() + " "; - permissions += Engine.ConvertAccessMaskToSimplePermissions(dacl.Mask.Access); + string permissionReadOrWrite = Engine.ConvertAccessMaskToSimplePermissions(dacl.Mask.Access); + string allowedOrNotAllowed = dacl.Type.ToString(); + + // TODO: why adding to a new group doesn't show the new group + foreach (IdentityReference group in m_CurrentIdentity.Groups) + { + SecurityIdentifier sid = (SecurityIdentifier)group.Translate(typeof(SecurityIdentifier)); + if ((m_CurrentUserSid.Equals(dacl.Sid.ToString()) || sid.Value.Equals(dacl.Sid.ToString())) && allowedOrNotAllowed.Contains("Allowed")) + { + if (!m_SidDict.ContainsKey(dacl.Sid.Name)) + { + m_SidDict.Add(dacl.Sid.Name, dacl.Sid.ToString()); + } + if (permissionReadOrWrite.Contains("R")) + { + cellColor = Color.Yellow; + } + if (permissionReadOrWrite.Contains("W") || permissionReadOrWrite.Contains("Full") || permissionReadOrWrite.Contains("RW")) + { + cellColor = Color.LightGreen; + break; + } + } + } + + row.Cells[m_ColumnIndexes[ColumnPermissions.HeaderText]].Style.BackColor = cellColor; + permissions += allowedOrNotAllowed + " "; + permissions += permissionReadOrWrite; permissions += " " + dacl.Sid.Name + "; \n"; } @@ -268,7 +350,7 @@ namespace PipeViewer { if (m_ProcessPIDsDictionary.TryGetValue(pid, out string processName)) { - return processName + " ("+ pid.ToString() + ")"; + return processName + " (" + pid.ToString() + ")"; } else { @@ -287,7 +369,7 @@ namespace PipeViewer } } }); - + return string.Join("; ", processNames.Select(nameAndPid => nameAndPid)); } @@ -890,6 +972,76 @@ namespace PipeViewer File.WriteAllText(filename, dataObject.GetText(TextDataFormat.CommaSeparatedValue).Replace("\n", "")); } + private void showPermissionsByColorButton(object sender, EventArgs e) + { + if (m_showPermissionColor) + { + colorPermissionsButton.Image = global::PipeViewer.Properties.Resources.permission_disable; + m_showPermissionColor = false; + removeHighlightedPermissions(); + } + else + { + colorPermissionsButton.Image = global::PipeViewer.Properties.Resources.permission; + m_showPermissionColor = true; + colorPermissions(); + } + } + + private void removeHighlightedPermissions() + { + var permissionColumnIndex = dataGridView1.Columns["ColumnPermissions"].Index; + foreach (DataGridViewRow row in dataGridView1.Rows) + { + if (row.Cells[permissionColumnIndex].Style.BackColor != Color.Red) + { + row.Cells[permissionColumnIndex].Style.BackColor = Color.White; + } + } + } + + + private void colorPermissions() + { + var permissionColumnIndex = dataGridView1.Columns["ColumnPermissions"].Index; + + foreach (DataGridViewRow row in dataGridView1.Rows) + { + CheckIfShouldBeColored(row, permissionColumnIndex); + } + + } + + private void CheckIfShouldBeColored(DataGridViewRow row, int permissionColumnIndex) + { + string[] splittedStrings = null; + if (row.Cells[permissionColumnIndex].Style.BackColor != Color.Red && row.Cells[permissionColumnIndex].Value != null) + { + splittedStrings = row.Cells[permissionColumnIndex].Value.ToString().Split('\n'); + } + if (splittedStrings == null) + { + return; + } + foreach (String permission in splittedStrings) + { + foreach (String permissionKey in m_SidDict.Keys) + { + if (permission.Contains(permissionKey)) + { + if (permission.Contains("Allowed R")) + { + row.Cells[permissionColumnIndex].Style.BackColor = Color.Yellow; + } + if (permission.Contains("Allowed RW") || permission.Contains("Allowed Full")|| permission.Contains("Allowed W")) + { + row.Cells[permissionColumnIndex].Style.BackColor = Color.LightGreen; + return; + } + } + } + } + } private void copyCellToolStripMenuItem_Click(object sender, EventArgs e) { string copiedCell = ""; diff --git a/PipeViewer/PipeViewer.csproj b/PipeViewer/PipeViewer.csproj index b9ab98d..a1279fd 100644 --- a/PipeViewer/PipeViewer.csproj +++ b/PipeViewer/PipeViewer.csproj @@ -34,10 +34,12 @@ - ..\..\..\..\karaken\cyberark\RPCMon\Packages\NtApiDotNet.1.1.33\lib\net461\NtApiDotNet.dll + C:\Users\natant\Downloads\NtApiDotNet.dll + + @@ -149,5 +151,11 @@ + + + + + + \ No newline at end of file diff --git a/PipeViewer/Properties/Resources.Designer.cs b/PipeViewer/Properties/Resources.Designer.cs index fbba183..ab7363d 100644 --- a/PipeViewer/Properties/Resources.Designer.cs +++ b/PipeViewer/Properties/Resources.Designer.cs @@ -120,6 +120,26 @@ namespace PipeViewer.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap permission { + get { + object obj = ResourceManager.GetObject("permission", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap permission_disable { + get { + object obj = ResourceManager.GetObject("permission_disable", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/PipeViewer/Properties/Resources.resx b/PipeViewer/Properties/Resources.resx index bda86cf..1179861 100644 --- a/PipeViewer/Properties/Resources.resx +++ b/PipeViewer/Properties/Resources.resx @@ -139,4 +139,10 @@ ..\Resources\refresh.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\permission.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\permission-disable.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/PipeViewer/Resources/permission-disable.png b/PipeViewer/Resources/permission-disable.png new file mode 100644 index 0000000..03faf62 Binary files /dev/null and b/PipeViewer/Resources/permission-disable.png differ diff --git a/PipeViewer/Resources/permission.png b/PipeViewer/Resources/permission.png new file mode 100644 index 0000000..960c79d Binary files /dev/null and b/PipeViewer/Resources/permission.png differ