Skip to content

Commit cd088a0

Browse files
fix(ruff): ignore oneliner alert
1 parent 736db4d commit cd088a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/helpers/powershell.py

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

151151
# for readability purposes, we do not do a one-liner
152-
if force_ps32:
152+
if force_ps32: # noqa: SIM108
153153
# https://stackoverflow.com/a/60155248
154154
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}}"
155155
else:

0 commit comments

Comments
 (0)