mirror of
https://github.com/Pennyw0rth/NetExec
synced 2026-06-06 16:34:30 +00:00
ruff: add ERA001 ignores
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
# Author: xiaolichan
|
||||
# Author: xiaolichan # noqa: ERA001
|
||||
# Link: https://github.com/XiaoliChan/wmiexec-RegOut/blob/main/wmiexec-regOut.py
|
||||
# Note: windows version under NT6 not working with this command execution way
|
||||
# https://github.com/XiaoliChan/wmiexec-RegOut/blob/main/wmiexec-reg-sch-UnderNT6-wip.py -- WIP
|
||||
@@ -11,7 +11,7 @@
|
||||
# cmd.exe /Q /c {command} > C:\windows\temp\{random}.txt (aka command results)
|
||||
# powershell convert the command results into base64, and save it into C:\windows\temp\{random2}.txt (now the command results was base64 encoded)
|
||||
# Create registry path: HKLM:\Software\Classes\hello, then add C:\windows\temp\{random2}.txt into HKLM:\Software\Classes\hello\{NewKey}
|
||||
# Remove anythings which in C:\windows\temp\
|
||||
# Remove anythings which in C:\windows\temp\ # noqa: ERA001
|
||||
# Stage 2:
|
||||
# WQL query the HKLM:\Software\Classes\hello\{NewKey} and get results, after the results(base64 strings) retrieved, removed
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
# Author: xiaolichan
|
||||
# Author: xiaolichan # noqa: ERA001
|
||||
# Link: https://github.com/XiaoliChan/wmiexec-Pro
|
||||
# Note: windows version under NT6 not working with this command execution way, it need Win32_ScheduledJob.
|
||||
# https://github.com/XiaoliChan/wmiexec-Pro/blob/main/lib/modules/exec_command.py
|
||||
|
||||
Reference in New Issue
Block a user