Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
716 changes: 358 additions & 358 deletions .gitignore

Large diffs are not rendered by default.

1,346 changes: 673 additions & 673 deletions LICENSE

Large diffs are not rendered by default.

764 changes: 382 additions & 382 deletions README.md

Large diffs are not rendered by default.

1,392 changes: 881 additions & 511 deletions SnaffCore/ActiveDirectory/AdData.cs

Large diffs are not rendered by default.

728 changes: 364 additions & 364 deletions SnaffCore/ActiveDirectory/DfsFinder.cs

Large diffs are not rendered by default.

810 changes: 405 additions & 405 deletions SnaffCore/ActiveDirectory/DirectorySearch.cs

Large diffs are not rendered by default.

478 changes: 239 additions & 239 deletions SnaffCore/ActiveDirectory/Extensions.cs

Large diffs are not rendered by default.

50 changes: 25 additions & 25 deletions SnaffCore/ActiveDirectory/Helpers.cs
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
using System.Collections.Generic;

namespace SnaffCore.ActiveDirectory.LDAP
{
class Helpers
{

private static readonly HashSet<string> Groups = new HashSet<string> { "268435456", "268435457", "536870912", "536870913" };
private static readonly HashSet<string> Computers = new HashSet<string> { "805306369" };
private static readonly HashSet<string> Users = new HashSet<string> { "805306368" };
internal static LdapTypeEnum SamAccountTypeToType(string samAccountType)
{
if (Groups.Contains(samAccountType))
return LdapTypeEnum.Group;

if (Users.Contains(samAccountType))
return LdapTypeEnum.User;

if (Computers.Contains(samAccountType))
return LdapTypeEnum.Computer;

return LdapTypeEnum.Unknown;
}
}
}
using System.Collections.Generic;
namespace SnaffCore.ActiveDirectory.LDAP
{
class Helpers
{
private static readonly HashSet<string> Groups = new HashSet<string> { "268435456", "268435457", "536870912", "536870913" };
private static readonly HashSet<string> Computers = new HashSet<string> { "805306369" };
private static readonly HashSet<string> Users = new HashSet<string> { "805306368" };
internal static LdapTypeEnum SamAccountTypeToType(string samAccountType)
{
if (Groups.Contains(samAccountType))
return LdapTypeEnum.Group;
if (Users.Contains(samAccountType))
return LdapTypeEnum.User;
if (Computers.Contains(samAccountType))
return LdapTypeEnum.Computer;
return LdapTypeEnum.Unknown;
}
}
}
Loading