Skip to content

Commit 04b3ffe

Browse files
committed
Remove unused imports
1 parent f9ec46e commit 04b3ffe

4 files changed

Lines changed: 1 addition & 8 deletions

File tree

nxc/connection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ def __init__(self, args, db, target):
138138
self.output_file_template = None
139139
self.output_filename = None
140140

141-
142141
# Authentication info
143142
self.password = ""
144143
self.username = ""

nxc/protocols/ldap.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
from nxc.protocols.ldap.kerberos import KerberosAttacks
4747
from nxc.parsers.ldap_results import parse_result_attributes
4848
from nxc.helpers.ntlm_parser import parse_challenge
49-
from nxc.paths import CONFIG_PATH, NXC_PATH
49+
from nxc.paths import CONFIG_PATH
5050

5151
ldap_error_status = {
5252
"1": "STATUS_NOT_SUPPORTED",
@@ -332,7 +332,6 @@ def enum_host_info(self):
332332
self.kdcHost = result["host"] if result else None
333333
self.logger.info(f"Resolved domain: {self.domain} with dns, kdcHost: {self.kdcHost}")
334334

335-
336335
try:
337336
self.db.add_host(
338337
self.host,

nxc/protocols/winrm.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import logging
66
import xml.etree.ElementTree as ET
77

8-
from datetime import datetime
98
from pypsrp.wsman import NAMESPACES
109
from pypsrp.client import Client
1110
from pypsrp.powershell import PSDataStreams
@@ -19,7 +18,6 @@
1918
from nxc.helpers.misc import gen_random_string
2019
from nxc.helpers.ntlm_parser import parse_challenge
2120
from nxc.logger import NXCAdapter
22-
from nxc.paths import NXC_PATH
2321

2422
urllib3.disable_warnings()
2523

nxc/protocols/wmi.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
import os
2-
32
from io import StringIO
4-
from datetime import datetime
53

64
from nxc.helpers.ntlm_parser import parse_challenge
75
from nxc.config import process_secret
86
from nxc.connection import connection, dcom_FirewallChecker, requires_admin
97
from nxc.logger import NXCAdapter
108
from nxc.protocols.wmi import wmiexec, wmiexec_event
11-
from nxc.paths import NXC_PATH
129

1310
from impacket import ntlm
1411
from impacket.uuid import uuidtup_to_bin

0 commit comments

Comments
 (0)