2019-12-11 16:20:51 -07:00
|
|
|
|
|
|
|
|
## Vulnerable Application
|
|
|
|
|
|
2019-12-13 11:26:43 -07:00
|
|
|
Enumerate PCI hardware information from the registry. Please note this script will run through registry subkeys such as: 'PCI', 'ACPI',
|
|
|
|
|
'ACPI_HAL', 'FDC', 'HID', 'HTREE', 'IDE', 'ISAPNP', 'LEGACY'', LPTENUM', 'PCIIDE', 'SCSI', 'STORAGE', 'SW', and 'USB'; it will take time to
|
|
|
|
|
finish. It is recommended to run this module as a background job.
|
2019-12-11 16:20:51 -07:00
|
|
|
|
|
|
|
|
## Verification Steps
|
|
|
|
|
|
2019-12-13 11:26:43 -07:00
|
|
|
1. Start msfconsole
|
2019-12-11 16:20:51 -07:00
|
|
|
2. Get meterpreter session
|
2019-12-13 11:26:43 -07:00
|
|
|
3. Do: ```use post/windows/gather/enum_devices```
|
|
|
|
|
4. Do: ```set SESSION <session id>```
|
|
|
|
|
5. Do: ```run```
|
2019-12-11 16:20:51 -07:00
|
|
|
|
|
|
|
|
## Options
|
|
|
|
|
|
2019-12-14 13:53:01 -07:00
|
|
|
**SESSION**
|
|
|
|
|
|
2019-12-11 16:20:51 -07:00
|
|
|
The session to run the module on.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Scenarios
|
|
|
|
|
|
2019-12-15 16:45:57 -07:00
|
|
|
### Windows 7 (6.1 Build 7601, Service Pack 1).
|
|
|
|
|
|
2019-12-11 16:20:51 -07:00
|
|
|
```
|
|
|
|
|
[*] Meterpreter session 1 opened (192.168.1.3:4444 -> 192.168.1.10:49160) at 2019-12-11 15:45:16 -0700
|
|
|
|
|
|
|
|
|
|
msf > use post/windows/gather/enum_devices
|
|
|
|
|
msf post(windows/gather/enum_devices) > set SESSION 1
|
|
|
|
|
SESSION => 1
|
|
|
|
|
msf post(windows/gather/enum_devices) > run
|
|
|
|
|
|
|
|
|
|
[*] Enumerating hardware on TEST-PC
|
|
|
|
|
[+] Results saved in: /root/.msf4/loot/20191211161351_default_192.168.1.10_host.hardware_245183.txt
|
|
|
|
|
[*] Post module execution completed
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Example of looted output
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
[*] exec: cat /root/.msf4/loot/20191211161351_default_192.168.1.10_host.hardware_245183.txt
|
|
|
|
|
|
|
|
|
|
Device Information
|
|
|
|
|
==================
|
|
|
|
|
|
|
|
|
|
Device Description Driver Version Class Manufacturer Extra
|
|
|
|
|
------------------ -------------- ----- ------------ -----
|
|
|
|
|
ACPI Fixed Feature Button 6.1.7601.17514 System (Standard system devices)
|
|
|
|
|
ACPI x86-based PC 6.1.7600.16385 Computer (Standard computers)
|
|
|
|
|
AMD K8 Processor 6.1.7600.16385 Processor Advanced Micro Devices Common KVM processor
|
|
|
|
|
Beep LegacyDriver
|
|
|
|
|
CD-ROM Drive 6.1.7601.17514 CDROM (Standard CD-ROM drives) QEMU QEMU DVD-ROM ATA Device
|
|
|
|
|
CD/DVD File System Reader LegacyDriver
|
|
|
|
|
CNG LegacyDriver
|
|
|
|
|
Composite Bus Enumerator 6.1.7601.17514 System Microsoft
|
|
|
|
|
Disk drive 6.1.7600.16385 DiskDrive (Standard disk drives) Red Hat VirtIO SCSI Disk Device
|
|
|
|
|
...snip...
|
|
|
|
|
```
|