Commit 83e3ec6
committed
Add support for quoted arguments in CLI parsing
Handle quoted strings in command-line arguments to properly parse
paths with spaces. Both executable names and injection DLL paths
can now be wrapped in double quotes.
Changes:
- Strip surrounding quotes from executable name if present
- Parse `-i="path with spaces.dll"` format by removing quotes
- Preserve argument integrity when paths contain spaces
Signed-off-by: 舰队的偶像-岛风酱 <frg2089@outlook.com>1 parent dd41765 commit 83e3ec6
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
73 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
74 | 81 | | |
75 | 82 | | |
76 | 83 | | |
| |||
0 commit comments