Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

SharpHound should continue run on exception #25

Open
CaledoniaProject opened this issue Apr 23, 2018 · 0 comments
Open

SharpHound should continue run on exception #25

CaledoniaProject opened this issue Apr 23, 2018 · 0 comments

Comments

@CaledoniaProject
Copy link

Just tested SharpHound on a large domain, super large.

And SharpHound just quit upon System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundExce ption exception?

Perhaps it should continue to run

Complete output:

Status: 178 objects enumerated (+178 4.810811/s --- Using 72 MB RAM )
Status: 7172 objects enumerated (+6993 107.0448/s --- Using 109 MB RAM )
Status: 26169 objects enumerated (+18997 269.7835/s --- Using 88 MB RAM )
Status: 75899 objects enumerated (+49730 597.6299/s --- Using 126 MB RAM )
Status: 114979 objects enumerated (+39079 732.3503/s --- Using 172 MB RAM )
Status: 169889 objects enumerated (+54905 908.4973/s --- Using 226 MB RAM )
Status: 170844 objects enumerated (+955 787.2996/s --- Using 221 MB RAM )
Status: 170955 objects enumerated (+111 692.1255/s --- Using 221 MB RAM )
Status: 171235 objects enumerated (+280 618.1769/s --- Using 221 MB RAM )
Status: 172495 objects enumerated (+1260 561.873/s --- Using 226 MB RAM )
Status: 178632 objects enumerated (+6137 530.0653/s --- Using 231 MB RAM )
Status: 178632 objects enumerated (+0 486.7357/s --- Using 230 MB RAM )
Status: 180088 objects enumerated (+1456 453.6222/s --- Using 226 MB RAM )
Status: 180089 objects enumerated (+1 421.7541/s --- Using 224 MB RAM )
Status: 180089 objects enumerated (+0 394.0678/s --- Using 225 MB RAM )
Status: 180089 objects enumerated (+0 369.7926/s --- Using 224 MB RAM )
Status: 180089 objects enumerated (+0 348.3346/s --- Using 224 MB RAM )
Status: 180089 objects enumerated (+0 329.2303/s --- Using 224 MB RAM )
Status: 180091 objects enumerated (+2 312.1161/s --- Using 222 MB RAM )
Status: 180092 objects enumerated (+1 296.6919/s --- Using 221 MB RAM )
Status: 180092 objects enumerated (+0 282.719/s --- Using 222 MB RAM )
Status: 180092 objects enumerated (+0 270.003/s --- Using 221 MB RAM )
Status: 180092 objects enumerated (+0 258.3816/s --- Using 221 MB RAM )
Status: 180093 objects enumerated (+1 247.7208/s --- Using 220 MB RAM )
Status: 180093 objects enumerated (+0 237.9036/s --- Using 220 MB RAM )
Status: 180094 objects enumerated (+1 228.5457/s --- Using 219 MB RAM )
Status: 180094 objects enumerated (+0 220.1638/s --- Using 73 MB RAM )
Status: 180094 objects enumerated (+0 212.375/s --- Using 73 MB RAM )
Status: 180094 objects enumerated (+0 205.1185/s --- Using 72 MB RAM )
Status: 180094 objects enumerated (+0 198.3414/s --- Using 72 MB RAM )
Status: 180094 objects enumerated (+0 191.9979/s --- Using 72 MB RAM )
Status: 180094 objects enumerated (+0 186.0475/s --- Using 72 MB RAM )
Status: 180094 objects enumerated (+0 180.4549/s --- Using 73 MB RAM )
Status: 180094 objects enumerated (+0 175.1887/s --- Using 73 MB RAM )
Status: 180094 objects enumerated (+0 170.2212/s --- Using 73 MB RAM )
Status: 180094 objects enumerated (+0 165.5276/s --- Using 73 MB RAM )
Status: 180094 objects enumerated (+0 161.0859/s --- Using 73 MB RAM )
Status: 180094 objects enumerated (+0 156.8763/s --- Using 74 MB RAM )
Status: 180094 objects enumerated (+0 152.8811/s --- Using 74 MB RAM )
Status: 180094 objects enumerated (+0 149.0844/s --- Using 74 MB RAM )
Status: 180094 objects enumerated (+0 145.4717/s --- Using 74 MB RAM )
Status: 180094 objects enumerated (+0 142.03/s --- Using 74 MB RAM )

未处理的异常:  System.AggregateException: AggregateException_ctor_DefaultMessage
 ---> System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundExce
ption: 指定的域不存在,或无法与之取得联系。
   在 System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext
 context)
   在 Sharphound2.Utils.GetDomain(String domainName)
   在 Sharphound2.Utils.ResolveHost(String hostName)
   在 Sharphound2.Enumeration.SessionHelpers.<GetNetSessions>d__8.MoveNext()
   在 Sharphound2.Enumeration.EnumerationRunner.<>c__DisplayClass14_0.<StartRunn
er>b__0()
   在 System.Threading.Tasks.Task.InnerInvoke()
   在 System.Threading.Tasks.Task.Execute()
   --- 内部异常堆栈跟踪的结尾 ---
   在 System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeou
t, CancellationToken cancellationToken)
   在 System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeou
t)
   在 System.Threading.Tasks.Task.WaitAll(Task[] tasks)
   在 Sharphound2.Enumeration.EnumerationRunner.StartEnumeration()
   在 Sharphound2.Sharphound.Main(String[] args)
---> (Inner Exception #0) System.DirectoryServices.ActiveDirectory.ActiveDirecto
ryObjectNotFoundException: 指定的域不存在,或无法与之取得联系。
   在 System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext
 context)
   在 Sharphound2.Utils.GetDomain(String domainName)
   在 Sharphound2.Utils.ResolveHost(String hostName)
   在 Sharphound2.Enumeration.SessionHelpers.<GetNetSessions>d__8.MoveNext()
   在 Sharphound2.Enumeration.EnumerationRunner.<>c__DisplayClass14_0.<StartRunn
er>b__0()
   在 System.Threading.Tasks.Task.InnerInvoke()
   在 System.Threading.Tasks.Task.Execute()<---
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant