fox-it / aclpwn.py

Active Directory ACL exploitation with BloodHound
MIT License
681 stars 106 forks source link

Neo4j >= 4 compatibility (shortestonly and dijkstra-cypher algorithms only) #9

Open aas-n opened 3 years ago

aas-n commented 3 years ago

Hi,

This should allow to use aclpwn.py with neo4j >= 4.0 and python >= 3 with algorithms shortestonly and dijkstra-cypher.

This needs to be double checked. However, it should fix #4 and fix #6. Hope it helps.

eriakort commented 2 years ago

Hi there, I applied all the changes mentioned and I keep getting the following errors. Kindly assist.

Traceback (most recent call last): File "/usr/local/bin/aclpwn", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.9/dist-packages/aclpwn/__init__.py", line 120, in main paths = pathfinding.dijkstra_find(fromid, toid, args.database) File "/usr/local/lib/python3.9/dist-packages/aclpwn/pathfinding.py", line 34, in dijkstra_find data = resp.json() File "/usr/lib/python3/dist-packages/requests/models.py", line 900, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 525, in loads return _default_decoder.decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

MANAVGK2038 commented 11 months ago

Hi there, I applied all the changes mentioned and I keep getting the following errors. Kindly assist.

Traceback (most recent call last): File "/usr/local/bin/aclpwn", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.9/dist-packages/aclpwn/__init__.py", line 120, in main paths = pathfinding.dijkstra_find(fromid, toid, args.database) File "/usr/local/lib/python3.9/dist-packages/aclpwn/pathfinding.py", line 34, in dijkstra_find data = resp.json() File "/usr/lib/python3/dist-packages/requests/models.py", line 900, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 525, in loads return _default_decoder.decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Does anyone know the fix to this?