FileSystemProxyCurrentDirectory
gadget
Sets the target process working directory, so every later relative path in it resolves where you chose. Not code execution on its own.
Declared metadata, not a runtime result. How to read evidence.
.\ysonet.exe -g FileSystemProxyCurrentDirectory -hTarget declarations
| Variant | Formatters | Inputs | Requirements | Runtime tokens |
|---|---|---|---|---|
| Default | Json.NET, NetDataContractSerializer, DataContractSerializer, DataContractJsonSerializer, MessagePackTypeless, MessagePackTypelessLz4 | target-path | built-in, net-framework | net-fx-4.0, net-fx-4.5, net-fx-4.5.1, net-fx-4.5.2, net-fx-4.6, net-fx-4.6.1, net-fx-4.6.2, net-fx-4.7, net-fx-4.7.1, net-fx-4.7.2, net-fx-4.8, net-fx-4.8.1 |
Options (1)
| Option | Help | Default | Required |
|---|---|---|---|
rawinput | Pass -c verbatim into the payload template instead of escaping it for the selected formatter. Use this only for already-escaped input. Default value: "false". | false | false |
Credit: [Finders: Piotr Bazydlo] [Contributors: Soroush Dalili]