Skip to content

Commit 28bbf9d

Browse files
committed
SIM108 ruff lint
1 parent c7471e5 commit 28bbf9d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

nxc/helpers/powershell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def create_ps_command(ps_command, force_ps32=False, obfs=False, custom_amsi=None
137137
amsi_bypass = ""
138138

139139
# for readability purposes, we do not do a one-liner
140-
if force_ps32: # noqa: SIM108
140+
if force_ps32:
141141
# https://stackoverflow.com/a/60155248
142142
command = amsi_bypass + f"$functions = {{function Command-ToExecute{{{amsi_bypass + ps_command}}}}}; if ($Env:PROCESSOR_ARCHITECTURE -eq 'AMD64'){{$job = Start-Job -InitializationScript $functions -ScriptBlock {{Command-ToExecute}} -RunAs32; $job | Wait-Job | Receive-Job }} else {{IEX '$functions'; Command-ToExecute}}"
143143
else:

nxc/protocols/winrm/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def add_admin_user(self, credtype, domain, username, password, host, user_id=Non
197197
add_links = []
198198

199199
creds_q = select(self.UsersTable)
200-
if user_id: # noqa: SIM108
200+
if user_id:
201201
creds_q = creds_q.filter(self.UsersTable.c.id == user_id)
202202
else:
203203
creds_q = creds_q.filter(

0 commit comments

Comments
 (0)