环境说明
| IP | HOSTNAME | NOTE |
|---|---|---|
| 10.10.10.88 | win10_dqy | 测试主机 |
复现过程
Powershell脚本如下:
$bios_info = Get-WmiObject -Class Win32_BIOS;
$file_path = "$pwd\test_poc.html";
New-Item $file_path -ItemType File;
$output = "<html>$bios_info</html>";
Set-Content $file_path $output;
执行结果
- 收集BIOS信息,并以test_poc.html形式保存在当前路径
