Skip to content

Commit da0d513

Browse files
committed
Resolve merge conflicts and sync fork with upstream
2 parents 14e27ee + 8af4bfa commit da0d513

72 files changed

Lines changed: 1819 additions & 1319 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# ❗❗❗ Before filing this bug report, MAKE SURE you have already downloaded the newest version of NetExec from GitHub and installed it! Many issues have already been reported and fixed, _especially_ if you are running the native Kali version! Please delete this line before submitting your issue if you have done so.❗❗❗
2-
31
---
42
name: Bug report
53
about: Create a report to help us improve
@@ -9,6 +7,8 @@ assignees: ''
97

108
---
119

10+
# ❗❗❗ Before filing this bug report, MAKE SURE you have already downloaded the newest version of NetExec from GitHub and installed it! Many issues have already been reported and fixed, _especially_ if you are running the native Kali version! Please delete this line before submitting your issue if you have done so.❗❗❗
11+
1212

1313

1414
**Describe the bug**

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,5 @@ Awesome code contributors of NetExec:
6363
[![](https://github.com/NeffIsBack.png?size=50)](https://github.com/NeffIsBack)
6464
[![](https://github.com/Hackndo.png?size=50)](https://github.com/Hackndo)
6565
[![](https://github.com/XiaoliChan.png?size=50)](https://github.com/XiaoliChan)
66+
[![](https://github.com/termanix.png?size=50)](https://github.com/termanix)
67+
[![](https://github.com/Dfte.png?size=50)](https://github.com/Dfte)

nxc/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def gen_cli_args():
2525
COMMIT = ""
2626
DISTANCE = ""
2727
CODENAME = "BLS"
28-
28+
2929
generic_parser = argparse.ArgumentParser(add_help=False, formatter_class=DisplayDefaultsNotNone)
3030
generic_group = generic_parser.add_argument_group("Generic", "Generic options for nxc across protocols")
3131
generic_group.add_argument("--version", action="store_true", help="Display nxc version")
@@ -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/data/nxc.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ audit_mode =
77
reveal_chars_of_pwd = 0
88
log_mode = False
99
host_info_colors = ["green", "red", "yellow", "cyan"]
10+
check_guest_account = False
1011

1112
[BloodHound]
1213
bh_enabled = False

nxc/database.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def initialize_db():
110110

111111
# Even if the default workspace exists, we still need to check if every protocol has a database (in case of a new protocol)
112112
init_protocol_dbs("default")
113-
113+
114114

115115
def format_host_query(q, filter_term, HostsTable):
116116
"""One annoying thing is that if you search for an ip such as '10.10.10.5',
@@ -127,16 +127,16 @@ def format_host_query(q, filter_term, HostsTable):
127127
else:
128128
nxc_logger.debug("Neither 'ip' nor 'host' columns found in the table")
129129
return q
130-
131-
# first we check if its an ip address
130+
131+
# first we check if its an ip address
132132
try:
133133
ipaddress.ip_address(filter_term)
134134
nxc_logger.debug(f"filter_term is an IP address: {filter_term}")
135135
q = q.filter(ip_column == filter_term)
136136
except ValueError:
137137
nxc_logger.debug(f"filter_term is not an IP address: {filter_term}")
138138
like_term = func.lower(f"%{filter_term}%")
139-
139+
140140
# check if the hostname column exists for hostname searching
141141
q = q.filter(ip_column.like(like_term) | func.lower(HostsTable.c.hostname).like(like_term)) if hasattr(HostsTable.c, "hostname") else q.filter(ip_column.like(like_term))
142142

nxc/helpers/even6_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ def xml(self, template=None):
145145
return ""
146146

147147
attrs = filter(lambda x: x is not None, (x.xml(template) for x in self._attributes))
148-
148+
149149
attrs = " ".join(attrs)
150150
if len(attrs) > 0:
151151
attrs = " " + attrs
152-
152+
153153
if self._empty:
154154
return f"<{self._name.val}{attrs}/>"
155155
else:

nxc/helpers/misc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,3 @@ def detect_if_ip(target):
145145
return True
146146
except Exception:
147147
return False
148-

nxc/helpers/ntlm_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ def parse_challenge(challange):
3131
target_info["os_version"] = f"{WIN_VERSIONS[product_build]} Build {product_build}"
3232
else:
3333
target_info["os_version"] = f"{major_version}.{minor_version} Build {product_build}"
34-
return target_info
34+
return target_info

nxc/logger.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ def __init__(self, extra=None, merge_extra=False):
101101
logging.getLogger("minidump").disabled = True
102102
logging.getLogger("lsassy").disabled = True
103103
logging.getLogger("dploot").disabled = True
104+
logging.getLogger("aardwolf").disabled = True
105+
logging.getLogger("unicrypto").disabled = True
106+
logging.getLogger("asyncio").setLevel(logging.ERROR)
104107
logging.getLogger("neo4j").setLevel(logging.ERROR)
105108

106109
def format(self, msg, *args, **kwargs):

nxc/modules/add-computer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def on_login(self, context, connection):
8686
# If SAMR fails now try over LDAPS
8787
if not self.noLDAPRequired:
8888
self.do_ldaps_add(connection, context)
89-
89+
9090
def do_samr_add(self, context):
9191
"""
9292
Connects to a target server and performs various operations related to adding or deleting machine accounts.

0 commit comments

Comments
 (0)