seajaysec / cypheroth

Automated, extensible toolset that runs cypher queries against Bloodhound's Neo4j backend and saves output to spreadsheets.
BSD 2-Clause "Simplified" License
251 stars 42 forks source link

Script fails to run #20

Closed yellow-starburst closed 4 years ago

yellow-starburst commented 4 years ago

The following is the Error that I get after running cypheroth: Address should be of the form: [scheme://][username:password@][host][:port] Do you know why I get this error @cnotin ?

cnotin commented 4 years ago

It looks like it is a Cypher-shell error. Show us your command-line

yellow-starburst commented 4 years ago

./cypheroth -u neo4j -p BloodHound -d lab.domain.local

Additionally I am using the newest neo4j and cypher shell version 4.13

cnotin commented 4 years ago

Can you try running this command those two commands to compare?

cypher-shell -u neo4j -p BloodHound -a 127.0.0.1:7687 --format plain "MATCH (n) RETURN CASE WHEN count(n) > 0 THEN 'Connected' ELSE 'Not Connected' END"
cypher-shell -u neo4j -p BloodHound -a neo4j://127.0.0.1:7687 --format plain "MATCH (n) RETURN CASE WHEN count(n) > 0 THEN 'Connected' ELSE 'Not Connected' END"
yellow-starburst commented 4 years ago

The 2nd command worked. cypher-shell -u neo4j -p BloodHound -a neo4j://127.0.0.1:7687 --format plain "MATCH (n) RETURN CASE WHEN count(n) > 0 THEN 'Connected' ELSE 'Not Connected' END"

yellow-starburst commented 4 years ago

Fix - must specify "-a neo4j://127.0.0.1:7687" in the cyphershell query

cnotin commented 4 years ago

Thanks for confirming the issue. It should be fixed with commit above, please try again if you can!