dirkjanm / BloodHound.py

A Python based ingestor for BloodHound
MIT License
1.84k stars 315 forks source link

I was able to run bloodhound-python the first time but now I get this error every single time #190

Closed andypoon-0311 closed 1 week ago

andypoon-0311 commented 2 weeks ago

Traceback (most recent call last): File "/home/andy/.local/bin/bloodhound-python", line 5, in <module> from bloodhound import main File "/home/andy/.local/lib/python2.7/site-packages/bloodhound/__init__.py", line 27, in <module> from bloodhound.ad.domain import AD, ADDC File "/home/andy/.local/lib/python2.7/site-packages/bloodhound/ad/domain.py", line 190 yield from self.search(search_filter, attributes, search_base, generator, use_gc, use_resolver, query_sd, is_retry=True) ^ SyntaxError: invalid syntax

dirkjanm commented 2 weeks ago

newer versions of bloodhound.py are python3 only, from the error it appears you're trying to run it with python 2

andypoon-0311 commented 1 week ago

Ah okay I was able to finally run it thank you. Had to run with by specifiying its exact directory.

sudo /home/kali/.local/bin/bloodhound-python -d MARVEL.local -u fcastle -p Password -ns 192.168.122.129 -c all