Skip to content

Commit 0c967f2

Browse files
committed
fix ruff
1 parent f32dd56 commit 0c967f2

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
@@ -1398,8 +1398,11 @@ def pso(self):
13981398
Initial FGPP/PSO script written by @n00py: https://github.com/n00py/GetFGPP
13991399
"""
14001400
# Convert LDAP time to human readable format
1401-
pso_days = lambda ldap_time: f"{rd(seconds=int(abs(int(ldap_time)) / 10000000)).days} days"
1402-
pso_mins = lambda ldap_time: f"{rd(seconds=int(abs(int(ldap_time)) / 10000000)).minutes} minutes"
1401+
def pso_days(ldap_time):
1402+
return f"{rd(seconds=int(abs(int(ldap_time)) / 10000000)).days} days"
1403+
1404+
def pso_mins(ldap_time):
1405+
return f"{rd(seconds=int(abs(int(ldap_time)) / 10000000)).minutes} minutes"
14031406

14041407
# Are there even any FGPPs?
14051408
self.logger.success("Attempting to enumerate policies...")
@@ -1497,7 +1500,6 @@ def bloodhound(self):
14971500
# If using pipx
14981501
self.logger.fail("Or if you installed with pipx:")
14991502
self.logger.fail("pipx runpip netexec uninstall -y bloodhound")
1500-
15011503
self.logger.fail("pipx inject netexec bloodhound-ce --force")
15021504
return False
15031505

0 commit comments

Comments
 (0)