BloodHound icon indicating copy to clipboard operation
BloodHound copied to clipboard

Incomplete JSON files in v1.0.2

Open anasbousselham opened this issue 2 years ago • 27 comments

I have the latest ver. 4.1.0 and SharpHound v1.0.2. The old SharpHound is not compatible, I can't upload ( file created from incompatible collector ) Do you have any idea on the issue? Thanks

anasbousselham avatar Feb 17 '22 00:02 anasbousselham

+1 got the same error.

yellow-starburst avatar Feb 17 '22 01:02 yellow-starburst

+1

NullbutC00L avatar Feb 17 '22 10:02 NullbutC00L

Wait a minute - why is the problem ticket "Unable to connect to LDAP" but you're saying that the upload functionality doesn't work?

yellow-starburst avatar Feb 17 '22 14:02 yellow-starburst

Can you check the meta tag at the bottom of the json files and see what the version is? There weren't any changes made to json output in v1.0.2

rvazarkar avatar Feb 17 '22 15:02 rvazarkar

I have this

{                                                                                                                                                                                                                                                           
  "users": [                                                                                                                                                                                                                                                
    {                                                                                                                                                                                                                                                       
      "Properties": {                                                                                                                                                                                                                                       
        "domain": "RESOURCED.LOCAL",                                                                                                                                                                                                                        
        "objectsid": "S-1-5-21-537427935-490066102-1511301751-500",                                                                                                                                                                                         
        "highvalue": false,                                                                                                                                                                                                                                 
        "enabled": true,                                                                                                                                                                                                                                    
        "lastlogon": 1645054574,                                                                                                                                                                                                                            
        "pwdlastset": 1644600080,                                                                                                                                                                                                                           
        "serviceprincipalnames": [],                                                                                                                                                                                                                        
        "hasspn": false,                                                                                                                                                                                                                                    
        "displayname": null,                                                                                                                                                                                                                                
        "email": null,                                                                                                                                                                                                                                      
        "title": null,                                                                                                                                                                                                                                      
        "homedirectory": null,                                                                                                                                                                                                                              
        "description": "Built-in account for administering the computer/domain",                                                                                                                                                                            
        "userpassword": null,                                                                                                                                                                                                                               
        "sensitive": false,                                                                                                                                                                                                                                 
        "dontreqpreauth": false,                                                                                                                                                                                                                            
        "admincount": true                                                                                                                                                                                                                                  
      },        

anasbousselham avatar Feb 17 '22 16:02 anasbousselham

Looks like the json file didn't complete writing for some reason. Were there any exceptions when running?

rvazarkar avatar Feb 17 '22 16:02 rvazarkar

+1 I got the same issue even when I don't provide any LDAP user credentials

x3rz avatar Feb 19 '22 07:02 x3rz

If you can dm me on the BloodHound slack, I have a test binary that might fix the issue

rvazarkar avatar Feb 22 '22 17:02 rvazarkar

RROR|Unable to connect to LDAP, verify your credentials

Although I am not providing any LDAP user credentials.

knrao48 avatar Feb 24 '22 12:02 knrao48

Right in the middle of my second OSEP attempt! Can someone recommend a combination that doesn't have this error? Like... fast?

docsewell avatar Feb 26 '22 17:02 docsewell

You can try the binary here: https://github.com/BloodHoundAD/SharpHound/releases/tag/rolling

rvazarkar avatar Feb 26 '22 17:02 rvazarkar

You could try Bloodhound Ingestors Sample Command

bloodhound-python -d htb.local -u [email protected] -p s3rvice -gc forest.htb.local -c all -ns 10.10.10.161 -v

x3rz avatar Feb 26 '22 17:02 x3rz

This looks like it's still an issue with the current release of sharphound.

rtkatracy avatar Mar 25 '22 18:03 rtkatracy

I've been unable to reproduce this in any of my testing, the newer version of SharpHound seems to be writing out JSON files accurately.

rvazarkar avatar Apr 01 '22 13:04 rvazarkar

HI @rvazarkar, I do have the same issue, I am currently doing the Forest Hack the box machine, I got access with evil-winrm, and I imported the SharpHound.ps1 script that gave me a zip file which I then unzip to have the JSON files, and then I imported those json files to Bloodhound but I have the incompatible collector error, Also I tried the bloodhound-python which work when I imported the json files to bloodhound but the json files that bloodhound-python gave me it does not have the valuable info that sharphound gave me, and the Sharphound.exe is not a valid format for evil-winrm, it has to be ps1. so I am running out of options here, my bloodhound version is 4.1.0, and sharphound.ps1 was last updated in 2020? because in the latest release like I said I only saw sharphound.exe no sharphound.ps1.

mvstand avatar Apr 15 '22 16:04 mvstand

There is no SharpHound.ps1 for the newest version, so you're using an out of date collector.

rvazarkar avatar Apr 15 '22 18:04 rvazarkar

There is no SharpHound.ps1 for the newest version, so you're using an out of date collector

Yes, that's what I said, in that case, what would you recommend because evil-winrm does not support .exe files like Sharphound.exe latest version, It supports .ps1 that currently does not exist. Any collector that might work with bloodhound?

mvstand avatar Apr 15 '22 20:04 mvstand

im running this bloodhound-python -u $user -p $pass -d $domain.local -ns $i -c All

trying to import via json files individually and a zipped folder all together and i get this error

"file created from incompatible collector"

This was working a week ago. I have other databases in there.

sun2ii avatar Apr 15 '22 21:04 sun2ii

Same problem here: image image image

soufianetahiri avatar Apr 27 '22 09:04 soufianetahiri

Right in the middle of my second OSEP attempt! Can someone recommend a combination that doesn't have this error? Like... fast?

I was able to do a temporary workaround by dropping back to BH 3.0 for viewing.

docsewell avatar Apr 27 '22 12:04 docsewell

@soufianetahiri ...I am having the same issue, i quess you are pawning blackfield from HTB because I got the same files and same NAN% error while trying to upload json files on bloodhound. Do you find any solution?

DOP7 avatar May 07 '22 07:05 DOP7

Not really it's was an actual engagement

On Sat, May 7, 2022, 09:21 DOP7 @.***> wrote:

@soufianetahiri https://github.com/soufianetahiri ...I am having the same issue, i quess you are pawning blackfield from HTB because I got the same files and same NAN% error while trying to upload json files on bloodhound

— Reply to this email directly, view it on GitHub https://github.com/BloodHoundAD/BloodHound/issues/516#issuecomment-1120154307, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEHION37ZC2A4EFE45LFB2DVIYKZBANCNFSM5OTFMG3A . You are receiving this because you were mentioned.Message ID: @.***>

soufianetahiri avatar May 07 '22 07:05 soufianetahiri

@soufianetahiri ..so did u use anything else to view the json files ??...any other method?plz tell

DOP7 avatar May 07 '22 14:05 DOP7

No.. just switched to an outdated version from an old vm sorry.

On Sat, May 7, 2022, 16:54 DOP7 @.***> wrote:

@soufianetahiri https://github.com/soufianetahiri ..so did u use anything else to view the json files ??...any other method?plz tell

— Reply to this email directly, view it on GitHub https://github.com/BloodHoundAD/BloodHound/issues/516#issuecomment-1120223166, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEHION7GHO6UJPKV5EGTVDDVIZ74DANCNFSM5OTFMG3A . You are receiving this because you were mentioned.Message ID: @.***>

soufianetahiri avatar May 07 '22 15:05 soufianetahiri

No issues brother..i will find this solution

DOP7 avatar May 07 '22 15:05 DOP7

@docsewell ...thanks installing bloodhound 3 did resolve viewing JSON files but it does not show :

image

DOP7 avatar May 08 '22 08:05 DOP7

got it find the solution:

Found it , I installed the BloodHound version 4.0.3 and it did import the files successfully and i can see the relationships, first degree object, everyone is facing issue with new BH realease 4.1.0

DOP7 avatar May 08 '22 09:05 DOP7

Closing this as I've been unable to reproduce this outside of the broken Kali binary

rvazarkar avatar Aug 01 '22 15:08 rvazarkar

~~@[rvazarkar] what broken _Kali_ binary are you referring to? https://bloodhound.readthedocs.io/en/latest/installation/linux.html#download-the-bloodhound-gui points to the binary assets directly[, that don't seem to be distro-specific: releases/download/4.1.0/BloodHound-linux-x64.zip??]~~ Must be referring to apt install bloodhound which delivers 4.1.0-0kali (still on 1-aug)

Has anyone seen [this issue] with a binary from the repo? with 4.1.1?

DataWearsAHood avatar Aug 01 '22 16:08 DataWearsAHood

~@[rvazarkar] what broken _Kali_ binary are you referring to? https://bloodhound.readthedocs.io/en/latest/installation/linux.html#download-the-bloodhound-gui points to the binary assets directly[, that don't seem to be distro-specific: releases/download/4.1.0/BloodHound-linux-x64.zip??]~ Must be referring to apt install bloodhound which delivers 4.1.0-0kali (still on 1-aug)

Has anyone seen [this issue] with a binary from the repo? with 4.1.1?

Yes.

image

image

I noticed it says SharpHound.exe is compatible with "4.2 Release of Bloodhound", but this is what got installed with "apt install"

image

docsewell avatar Aug 03 '22 20:08 docsewell