Skip to content
Permalink
Browse files

v2.0.0 rewrite (c# version)

  • Loading branch information...
ph1ll committed Dec 10, 2016
1 parent e1b973b commit d0d3ad91520804b685a0f1b1b8c63cb7e257fc07
Showing with 3,807 additions and 4,962 deletions.
  1. +32 −13 .gitignore
  2. +3 −0 .gitmodules
  3. +55 −0 CodeMaid.config
  4. +7 −0 LICENSE
  5. +29 −15 NtdsAudit.sln
  6. +0 −410 NtdsAudit/Audit.cpp
  7. +0 −17 NtdsAudit/Audit.h
  8. +0 −126 NtdsAudit/Helper.cpp
  9. +0 −17 NtdsAudit/Helper.h
  10. +0 −320 NtdsAudit/NTCrypto.cpp
  11. +0 −21 NtdsAudit/NtCrypto.h
  12. +0 −1,174 NtdsAudit/Ntds.cpp
  13. +0 −125 NtdsAudit/Ntds.h
  14. +0 −177 NtdsAudit/NtdsAudit.cpp
  15. +0 −5 NtdsAudit/NtdsAudit.h
  16. +0 −180 NtdsAudit/NtdsAudit.vcxproj
  17. +0 −63 NtdsAudit/NtdsAudit.vcxproj.filters
  18. +0 −40 NtdsAudit/ReadMe.txt
  19. +0 −2,218 NtdsAudit/ezOptionParser.h
  20. +0 −8 NtdsAudit/stdafx.cpp
  21. +0 −25 NtdsAudit/stdafx.h
  22. +0 −8 NtdsAudit/targetver.h
  23. +86 −0 README.md
  24. +6 −0 src/NtdsAudit/App.config
  25. +244 −0 src/NtdsAudit/CodeAnalysis.ruleset
  26. +32 −0 src/NtdsAudit/ComputerInfo.cs
  27. +43 −0 src/NtdsAudit/ConsoleEx.cs
  28. +8 −0 src/NtdsAudit/CustomDictionary.xml
  29. +159 −0 src/NtdsAudit/DatatableRow.cs
  30. +47 −0 src/NtdsAudit/DomainInfo.cs
  31. +4 −0 src/NtdsAudit/FodyWeavers.xml
  32. BIN src/NtdsAudit/GlobalSuppressions.cs
  33. +47 −0 src/NtdsAudit/GroupInfo.cs
  34. +93 −0 src/NtdsAudit/JetDb.cs
  35. +94 −0 src/NtdsAudit/JetDbTable.cs
  36. +25 −0 src/NtdsAudit/LdapDateTimeColumnValue.cs
  37. +18 −0 src/NtdsAudit/LinkTableRow.cs
  38. +181 −0 src/NtdsAudit/MD4.cs
  39. +18 −0 src/NtdsAudit/MSysObjectsRow.cs
  40. +531 −0 src/NtdsAudit/NTCrypto.cs
  41. +114 −0 src/NtdsAudit/NativeMethods.cs
  42. +1,055 −0 src/NtdsAudit/NtdsAudit.cs
  43. +148 −0 src/NtdsAudit/NtdsAudit.csproj
  44. +26 −0 src/NtdsAudit/Ntlm.cs
  45. +313 −0 src/NtdsAudit/Program.cs
  46. +154 −0 src/NtdsAudit/ProgressBar.cs
  47. +37 −0 src/NtdsAudit/Properties/AssemblyInfo.cs
  48. +55 −0 src/NtdsAudit/SystemHive.cs
  49. +108 −0 src/NtdsAudit/UserInfo.cs
  50. +16 −0 src/NtdsAudit/Utf8StringColumnValue.cs
  51. +18 −0 src/NtdsAudit/stylecop.json
  52. +1 −0 src/Registry
@@ -15,12 +15,12 @@
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
[Xx]64/
[Xx]86/
[Bb]uild/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/

# Visual Studio 2015 cache/options directory
.vs/
@@ -42,6 +42,7 @@ dlldata.c

# DNX
project.lock.json
project.fragment.lock.json
artifacts/

*_i.c
@@ -81,6 +82,7 @@ ipch/
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb

# Visual Studio profiler
*.psess
@@ -139,13 +141,16 @@ publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml

# TODO: Un-comment the next line if you do not want to checkin
# your web deploy settings because they may include unencrypted
# passwords
# TODO: 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
# The packages folder can be ignored because of Package Restore
@@ -166,9 +171,11 @@ csx/
ecf/
rcf/

# Windows Store app package directory
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt

# Visual Studio cache files
# files ending in .cache can be ignored
@@ -178,16 +185,20 @@ BundleArtifacts/

# Others
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
node_modules/
orleans.codegen.cs

# 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/

@@ -231,12 +242,20 @@ FakesAssemblies/
**/*.Server/ModelManifest.xml
_Pvt_Extensions

# LightSwitch generated files
GeneratedArtifacts/
ModelManifest.xml

# Paket dependency manager
.paket/paket.exe
paket-files/

# FAKE - F# Make
.fake/

# JetBrains Rider
.idea/
*.sln.iml

# CodeRush
.cr/

# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
@@ -0,0 +1,3 @@
[submodule "src\\Registry"]
path = src\\Registry
url = https://github.com/EricZimmerman/Registry.git
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="SteveCadwallader.CodeMaid.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
</configSections>
<userSettings>
<SteveCadwallader.CodeMaid.Properties.Settings>
<setting name="Cleaning_RemoveRegions" serializeAs="String">
<value>2</value>
</setting>
<setting name="Cleaning_InsertEndOfFileTrailingNewLine" serializeAs="String">
<value>True</value>
</setting>
<setting name="Cleaning_SkipRemoveAndSortUsingStatementsDuringAutoCleanupOnSave"
serializeAs="String">
<value>False</value>
</setting>
<setting name="Collapsing_CollapseSolutionWhenOpened" serializeAs="String">
<value>False</value>
</setting>
<setting name="Cleaning_AutoCleanupOnFileSave" serializeAs="String">
<value>True</value>
</setting>
<setting name="Reorganizing_RegionsInsertNewRegions" serializeAs="String">
<value>False</value>
</setting>
<setting name="Collapsing_KeepSoloProjectExpanded" serializeAs="String">
<value>False</value>
</setting>
<setting name="Reorganizing_RegionsRemoveExistingRegions" serializeAs="String">
<value>True</value>
</setting>
<setting name="Reorganizing_RegionsIncludeAccessLevel" serializeAs="String">
<value>True</value>
</setting>
<setting name="Reorganizing_ExplicitMembersAtEnd" serializeAs="String">
<value>True</value>
</setting>
<setting name="Cleaning_IncludeEverythingElse" serializeAs="String">
<value>True</value>
</setting>
<setting name="Reorganizing_RunAtStartOfCleanup" serializeAs="String">
<value>True</value>
</setting>
<setting name="Progressing_ShowBuildProgressOnBuildStart" serializeAs="String">
<value>False</value>
</setting>
<setting name="Cleaning_ExclusionExpression" serializeAs="String">
<value>\.Designer\.cs$||\.Designer\.vb$||\.resx$||\.min\.css$||\.min\.js$||\\Registry\\</value>
</setting>
</SteveCadwallader.CodeMaid.Properties.Settings>
</userSettings>
</configuration>
@@ -0,0 +1,7 @@
Copyright 2017 Dionach Ltd

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,28 +1,42 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
# Visual Studio 15
VisualStudioVersion = 15.0.26730.3
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NtdsAudit", "NtdsAudit\NtdsAudit.vcxproj", "{6916224A-6653-49FE-9E8E-B4626C7C22FD}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Registry", "src\Registry\Registry\Registry.csproj", "{5C40BE24-A89D-4973-B668-2D6E945CB047}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NtdsAudit", "src\NtdsAudit\NtdsAudit.csproj", "{51E691EB-A835-45BE-8B52-B5CA954357C8}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solutions Items", "Solutions Items", "{6D502248-5AE4-4598-8275-FF425AA3F624}"
ProjectSection(SolutionItems) = preProject
CodeMaid.config = CodeMaid.config
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{9394839A-CFDD-4747-A059-55FF589E4024}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6916224A-6653-49FE-9E8E-B4626C7C22FD}.Debug|x64.ActiveCfg = Debug|x64
{6916224A-6653-49FE-9E8E-B4626C7C22FD}.Debug|x64.Build.0 = Debug|x64
{6916224A-6653-49FE-9E8E-B4626C7C22FD}.Debug|x86.ActiveCfg = Debug|Win32
{6916224A-6653-49FE-9E8E-B4626C7C22FD}.Debug|x86.Build.0 = Debug|Win32
{6916224A-6653-49FE-9E8E-B4626C7C22FD}.Release|x64.ActiveCfg = Release|x64
{6916224A-6653-49FE-9E8E-B4626C7C22FD}.Release|x64.Build.0 = Release|x64
{6916224A-6653-49FE-9E8E-B4626C7C22FD}.Release|x86.ActiveCfg = Release|Win32
{6916224A-6653-49FE-9E8E-B4626C7C22FD}.Release|x86.Build.0 = Release|Win32
{5C40BE24-A89D-4973-B668-2D6E945CB047}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5C40BE24-A89D-4973-B668-2D6E945CB047}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5C40BE24-A89D-4973-B668-2D6E945CB047}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5C40BE24-A89D-4973-B668-2D6E945CB047}.Release|Any CPU.Build.0 = Release|Any CPU
{51E691EB-A835-45BE-8B52-B5CA954357C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{51E691EB-A835-45BE-8B52-B5CA954357C8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{51E691EB-A835-45BE-8B52-B5CA954357C8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{51E691EB-A835-45BE-8B52-B5CA954357C8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{5C40BE24-A89D-4973-B668-2D6E945CB047} = {9394839A-CFDD-4747-A059-55FF589E4024}
{51E691EB-A835-45BE-8B52-B5CA954357C8} = {9394839A-CFDD-4747-A059-55FF589E4024}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {1ED2EEC5-F70A-4BD9-819E-51BB2987C74A}
EndGlobalSection
EndGlobal

0 comments on commit d0d3ad9

Please sign in to comment.
You can’t perform that action at this time.