SharpView icon indicating copy to clipboard operation
SharpView copied to clipboard

Getting errors when enumerating domain trusts

Open sohelahmed786 opened this issue 2 years ago • 0 comments

sliver (ANNOYED_DIPLOMA) > sharpview get-domaintrust

[*] sharpview output: get-domain [Get-DomainSearcher] search base: LDAP://dmzdc01.edge.com/DC=edge,DC=com get-domain [Get-DomainSearcher] search base: LDAP://dmzdc01.edge.com/DC=edge,DC=com [Get-DomainComputer] Using additional LDAP filter: (userAccountControl:1.2.840.113556.1.4.803:=8192) [Get-DomainComputer] Get-DomainComputer filter string: (&(samAccountType=805306369)(userAccountControl:1.2.840.113556.1.4.803:=8192)) An error occurred: 'System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Specified cast is not valid. at SharpView.PowerView.Get_DomainTrust(Args_Get_DomainTrust args) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at SharpView.Program.Run(String[] args) at SharpView.Program.Main(String[] args)'

sohelahmed786 avatar Aug 04 '23 04:08 sohelahmed786