-
Notifications
You must be signed in to change notification settings - Fork 155
Open
Description
I feel like this is a silly question, but how do you escape double quotes when using reg_set
? I tried a few variants.
Command:
reg_set HKCU Software\Microsoft\Windows\CurrentVersion\Run Payload REG_SZ "C:\Path\to\payload.exe" /q /n
Result:
C:\Path\to\payload.exe
Command:
reg_set HKCU Software\Microsoft\Windows\CurrentVersion\Run Payload REG_SZ "\"C:\Path\to\payload.exe\" /q /n"
Result:
\
Command:
reg_set HKCU Software\Microsoft\Windows\CurrentVersion\Run Payload REG_SZ '"C:\Path\to\payload.exe" /q /n'
Result:
'"C:\Path\to\payload.exe"
Metadata
Metadata
Assignees
Labels
No labels