Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXE & PowerShell collectors issues #596

Closed
init5-SF opened this issue Oct 6, 2022 · 7 comments
Closed

EXE & PowerShell collectors issues #596

init5-SF opened this issue Oct 6, 2022 · 7 comments
Labels

Comments

@init5-SF
Copy link

init5-SF commented Oct 6, 2022

Downloaded and tested the latest PowerShell collector, it doesn't seem to work for some reason.

PS C:\Users\Administrator\Desktop> Invoke-BloodHound -CollectionMethod all
Exception calling "Invoke" with "2" argument(s): "Method not found: '!!0[] System.Array.Empty()'."
At C:\Users\Administrator\Desktop\hound.ps1:642 char:88
+ ... nvoke($Null, @(,$passed))
+                    ~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : MissingMethodException

Tested again with the EXE collector and got this:

PS C:\Users\Administrator\Desktop> .\SharpHound.exe -c all

Unhandled Exception: System.MissingMethodException: Method not found: '!!0[] System.Array.Empty()'.
   at Sharphound.Program.<Main>d__0.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Sharphound.Program.<Main>(String[] args)

Test machines is Windows Server 2012 R2 & Microsoft Windows Server 2019 Datacenter, both fully updated.

@init5-SF init5-SF added the bug label Oct 6, 2022
@MrHoz
Copy link

MrHoz commented Jan 6, 2023

Just for information, He is not alone: I have same exact issue on a Windows Server 2012 R2. However, i do not controls the Server. (CTF-style environment)

@rvazarkar
Copy link
Contributor

Will look into this

@JonasBK
Copy link
Contributor

JonasBK commented May 24, 2023

Is this still an issue with the new sharphound v1.1.1?

@ramus82
Copy link

ramus82 commented Jul 25, 2023

yes, the issue is still there

> PS C:\Users\user\Documents> .\SharpHound.ps1                                             
> Exception calling "Invoke" with "2" argument(s): "Method not found: '!!0[] System.Array.Empty()'."        
> At C:\Users\user\Documents\SharpHound.ps1:416 char:91 
> + ... nvoke($Null, @(,$passed))                                                                           
> +                    ~~~~~~~~                                                                             
>     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException                             
>     + FullyQualifiedErrorId : MissingMethodException           

@wwwGeneral
Copy link

Issue still here, can't run SharpHound (exe or ps1) in old systems since a few versions.
We need another version of SharpHound for older Windows version (Windows 7, Windows Server 2008 R2 for example) that don't require the installation of newer frameworks.

In my case SharpHound from 3.0.5 version was working fine on those old systems but I couldn't load the files in the lastest BloodHound (compatibility problems).

I will be glad someone does it

@lap012
Copy link

lap012 commented Feb 25, 2024

Is the issue being fixed ?
Is it possible to run SharpHound on old WS2012 ?

image

@Anon-Exploiter
Copy link

Ran into the same issue, it seems its because of .Net version installed on the victim machine - v4.6 should fix this:
https://stackoverflow.com/questions/31253747/method-not-found-0-system-array-empty

Victim's machine:
image

One idea is to try older versions of SharpHound which were written according to v4.0 or less.

@init5-SF init5-SF closed this as completed Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants