Penetration_Testing_POC/tools/Windows命令行cmd的空格替换.md
2019-10-15 21:27:35 +08:00

23 lines
475 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### Windows空格替换
```
%COMMONPROGRAMFILES:~23,-5%
%ProgramFiles:~10,-5%
%CommonProgramFiles:~10,-18%
%COMMONPROGRAMFILES:~23,1%
%ProgramFiles:~10,1%
%CommonProgramFiles:~10,1%
%path:~10,1%
%PROCESSOR_IDENTIFIER:~7,1%
```
> 可通过 echo查看环境变量然后找有空格的从而造成其他命令通用的替换
![](../img/windowsapce.png)
---------
还有另一种:形如这种`n^e^t^ u^s^e^r`
![](../img/windowschar.png)