Skip to content

Commit 09cb12d

Browse files
committed
Swap command order, otherwise pipx will complain
1 parent 51dfd51 commit 09cb12d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

nxc/protocols/ldap.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,13 +1285,14 @@ def get_bloodhound_info():
12851285
self.logger.fail("⚠️ Configuration Issue Detected ⚠️")
12861286
self.logger.fail("Your configuration has BloodHound-CE enabled, but the regular BloodHound package is installed. Modify your ~/.nxc/nxc.conf config file or follow the instructions:")
12871287
self.logger.fail("Please run the following commands to fix this:")
1288-
self.logger.fail("poetry remove bloodhound-ce")
1288+
self.logger.fail("poetry remove bloodhound-ce # poetry falsely recognizes bloodhound-ce as a the old bloodhound package")
12891289
self.logger.fail("poetry add bloodhound-ce")
1290+
self.logger.fail("")
12901291

12911292
# If using pipx
12921293
self.logger.fail("Or if you installed with pipx:")
1293-
self.logger.fail("pipx inject netexec bloodhound-ce --force")
12941294
self.logger.fail("pipx runpip netexec uninstall -y bloodhound")
1295+
self.logger.fail("pipx inject netexec bloodhound-ce --force")
12951296
return False
12961297

12971298
elif not use_bhce and is_ce:
@@ -1300,11 +1301,12 @@ def get_bloodhound_info():
13001301
self.logger.fail("Please run the following commands to fix this:")
13011302
self.logger.fail("poetry remove bloodhound-ce")
13021303
self.logger.fail("poetry add bloodhound")
1304+
self.logger.fail("")
13031305

13041306
# If using pipx
13051307
self.logger.fail("Or if you installed with pipx:")
1306-
self.logger.fail("pipx inject netexec bloodhound --force")
13071308
self.logger.fail("pipx runpip netexec uninstall -y bloodhound-ce")
1309+
self.logger.fail("pipx inject netexec bloodhound --force")
13081310
return False
13091311

13101312
auth = ADAuthentication(

0 commit comments

Comments
 (0)