Skip to content

Commit 8c90e05

Browse files
committed
resolve merge conflicts
2 parents d65a147 + 4260e51 commit 8c90e05

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

nxc/protocols/smb/database.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -461,18 +461,18 @@ def get_hosts(self, filter_term=None, domain=None):
461461
return [results]
462462
# if we're filtering by domain controllers
463463
elif filter_term == "dc":
464-
q = q.filter(self.HostsTable.c.dc is True)
464+
q = q.filter(self.HostsTable.c.dc == True) # noqa: E712
465465
if domain:
466466
q = q.filter(func.lower(self.HostsTable.c.domain) == func.lower(domain))
467467
elif filter_term == "signing":
468468
# generally we want hosts that are vulnerable, so signing disabled
469-
q = q.filter(self.HostsTable.c.signing is False)
469+
q = q.filter(self.HostsTable.c.signing == False) # noqa: E712
470470
elif filter_term == "spooler":
471-
q = q.filter(self.HostsTable.c.spooler is True)
471+
q = q.filter(self.HostsTable.c.spooler == True) # noqa: E712
472472
elif filter_term == "zerologon":
473-
q = q.filter(self.HostsTable.c.zerologon is True)
473+
q = q.filter(self.HostsTable.c.zerologon == True) # noqa: E712
474474
elif filter_term == "petitpotam":
475-
q = q.filter(self.HostsTable.c.petitpotam is True)
475+
q = q.filter(self.HostsTable.c.petitpotam == True) # noqa: E712
476476
elif filter_term is not None and filter_term.startswith("domain"):
477477
domain = filter_term.split()[1]
478478
like_term = func.lower(f"%{domain}%")

0 commit comments

Comments
 (0)