use fstring, delete testing comment

Signed-off-by: sandw1ch <se.brink15@gmail.com>
main
sandw1ch 2023-10-24 13:00:22 -05:00 committed by GitHub
parent 5e282156bb
commit c6e5fdb205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,5 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Toss this in /root/NetExec/nxc/modules
from ldap3 import ALL, Server, Connection, NTLM, extend, SUBTREE
from dateutil.relativedelta import relativedelta as rd
@ -30,7 +29,7 @@ class NXCModule:
# Set some variables
self.__domain = connection.domain
self.__kdcHost = connection.hostname + "." + connection.domain
self.__kdcHost = (f'{connection.hostname}.{connection.domain}')
self.__username = connection.username
self.__password = connection.password
@ -125,7 +124,7 @@ def base_creator(domain):
search_base = ""
base = domain.split(".")
for b in base:
search_base += "DC=" + b + ","
search_base += (f'DC={b},')
return search_base[:-1]
def clock(nano):