这里会显示出您选择的修订版和当前版本之间的差别。
网络安全:powershell常用命令 [2020/02/23 14:18] YoCo Smart |
网络安全:powershell常用命令 [2020/05/16 19:19] |
||
---|---|---|---|
行 1: | 行 1: | ||
- | === 执行ps1文件 === | ||
- | < | ||
- | PowerShell.exe -executionpolicy Bypass -file c: | ||
- | </ | ||
- | |||
- | === 修改文件时间戳 === | ||
- | |||
- | Windows下没有直接的命令行可以修改文件的时间戳,可以使用API接口中的SetFileTime。\\ | ||
- | 但显然这个方法并不实用,但可以使用powershell命令轻松完成。 | ||
- | |||
- | < | ||
- | ## 创建时间 | ||
- | $(Get-Item webshell.asp).creationtime=$(Get-Date " | ||
- | ## 最后访问时间 | ||
- | $(Get-Item wehshell.aspx).lastaccesstime=$(Get-Date " | ||
- | ## 最后修改时间 | ||
- | $(Get-Item webshell.php).lastwritetime=$(Get-Date) | ||
- | </ | ||
- | |||
- | \\ | ||
- | \\ |