Skip to content

Commit 172bddb

Browse files
committed
Autofix ruff whitepsaces
1 parent bb788a4 commit 172bddb

9 files changed

Lines changed: 16 additions & 16 deletions

File tree

nxc/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def gen_cli_args():
6060
6161
The network execution tool
6262
Maintained as an open source project by @NeffIsBack, @MJHallenbeck, @_zblurx
63-
63+
6464
For documentation and usage examples, visit: https://www.netexec.wiki/
6565
6666
{highlight('Version', 'red')} : {highlight(VERSION)}

nxc/modules/bitlocker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ def __init__(self, context=None, module_options=None):
1515
self.module_options = module_options
1616

1717
def options(self, context, module_options):
18-
"""
18+
"""
1919
USAGE:
20-
20+
2121
NetExec smb <IP> -u <username> -p <password> -M bitlocker
2222
NetExec wmi <IP> -u <username> -p <password> -M bitlocker (Better option to use on real life.)
2323
"""

nxc/modules/daclread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def __init__(self, context=None, module_options=None):
220220

221221
def options(self, context, module_options):
222222
"""
223-
Be careful, this module cannot read the DACLS recursively.
223+
Be careful, this module cannot read the DACLS recursively.
224224
For example, if an object has particular rights because it belongs to a group, the module will not be able to see it directly, you have to check the group rights manually.
225225
226226
TARGET The objects that we want to read or backup the DACLs, specified by its SamAccountName

nxc/modules/enum_logins.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ def get_logins(self) -> list:
4242
domain_prefix = f"{domain_name}\\" if domain_name else ""
4343

4444
query = f"""
45-
SELECT
45+
SELECT
4646
name,
4747
type,
4848
type_desc,
49-
CASE type_desc
49+
CASE type_desc
5050
WHEN 'SQL_LOGIN' THEN 'SQL User'
51-
WHEN 'WINDOWS_LOGIN' THEN
52-
CASE
51+
WHEN 'WINDOWS_LOGIN' THEN
52+
CASE
5353
WHEN name LIKE '{domain_prefix}%' THEN 'Domain User'
5454
WHEN name LIKE '%\\%' THEN 'Local User'
5555
ELSE 'Local User'
@@ -61,7 +61,7 @@ def get_logins(self) -> list:
6161
END as login_type,
6262
is_disabled,
6363
create_date
64-
FROM sys.server_principals
64+
FROM sys.server_principals
6565
WHERE type IN ('S', 'U', 'G', 'C', 'K')
6666
AND name NOT LIKE '##%'
6767
ORDER BY login_type, name;

nxc/modules/eventlog_creds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self):
2121
self.limit = None
2222

2323
def options(self, context, module_options):
24-
"""
24+
"""
2525
METHOD EventLog method (Execute or RPCCALL), default: execute
2626
M Alias for METHOD
2727
LIMIT Limit of the number of records to be fetched, default: unlimited

nxc/modules/met_inject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def options(self, context, module_options):
2525
SRVPORT Stager port
2626
RAND Random string given by metasploit (if using web_delivery)
2727
SSL Stager server use https or http (default: https)
28-
28+
2929
This module is compatable with --obfs, --force-ps32 (PowerShell execution options)
3030
3131
multi/handler method that don't require RAND:

nxc/modules/timeroast.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ def on_login(self, context, connection):
6262
def run_ntp_roast(self, context, dc_host, rids, rate, giveup_time, old_pwd, src_port=0):
6363
"""Gathers MD5(MD4(password) || NTP-response[:48]) hashes for a sequence of RIDs.
6464
Rate is the number of queries per second to send.
65-
Will quit when either rids ends or no response has been received in giveup_time seconds. Note that the server will
66-
not respond to queries with non-existing RIDs, so it is difficult to distinguish nonexistent RIDs from network
65+
Will quit when either rids ends or no response has been received in giveup_time seconds. Note that the server will
66+
not respond to queries with non-existing RIDs, so it is difficult to distinguish nonexistent RIDs from network
6767
issues.
68-
68+
6969
Yields (rid, hash, salt) pairs, where salt is the NTP response data.
7070
"""
7171
# Flag in key identifier that indicates whether the old or new password should be used.

nxc/nxcdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def help_export():
379379
help_string = """
380380
export [creds|hosts|local_admins|shares|signing|keys] [simple|detailed|*] [filename]
381381
Exports information to a specified file
382-
382+
383383
* hosts has an additional third option from simple and detailed: signing - this simply writes a list of ips of
384384
hosts where signing is enabled
385385
* keys' third option is either "all" or an id of a key to export

nxc/protocols/nfs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ def put_file(self):
516516
def get_root_handles(self, mount_fh):
517517
"""
518518
Get possible root handles to escape to the root filesystem
519-
Sources:
519+
Sources:
520520
https://elixir.bootlin.com/linux/v6.13.4/source/fs/nfsd/nfsfh.h#L47-L62
521521
https://elixir.bootlin.com/linux/v6.13.4/source/include/linux/exportfs.h#L25
522522
https://github.com/hvs-consulting/nfs-security-tooling/blob/main/nfs_analyze/nfs_analyze.py

0 commit comments

Comments
 (0)