Skip to content

Commit 2425f8e

Browse files
author
Requiem
committed
style: align function pointer setup with existing pattern
1 parent 1e3d06f commit 2425f8e

File tree

3 files changed

+104
-123
lines changed

3 files changed

+104
-123
lines changed

β€Ždocs/documentation.mdβ€Ž

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -543,11 +543,11 @@ VMAware provides a convenient way to not only check for VMs, but also have the f
543543
| `VM::XEON_THREAD_MISMATCH` | Same as above, but for Xeon Intel CPUs | 🐧πŸͺŸπŸ | 50% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L3471) |
544544
| `VM::AMD_THREAD_MISMATCH` | Check for AMD CPU thread count database if it matches the system's thread count | 🐧πŸͺŸπŸ | 50% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L3685) |
545545
| `VM::CUCKOO_DIR` | Check for cuckoo directory using crt and WIN API directory functions | πŸͺŸ | 30% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L7564) |
546-
| `VM::CUCKOO_PIPE` | Check for Cuckoo specific piping mechanism | πŸͺŸ | 30% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L7622) |
546+
| `VM::CUCKOO_PIPE` | Check for Cuckoo specific piping mechanism | πŸͺŸ | 30% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L7620) |
547547
| `VM::HYPERV_HOSTNAME` | Check for default Azure hostname format (Azure uses Hyper-V as their base VM brand) | 🐧πŸͺŸ | 30% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L5813) |
548548
| `VM::GENERAL_HOSTNAME` | Check for commonly set hostnames by certain VM brands | 🐧πŸͺŸ | 10% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L5834) |
549-
| `VM::DISPLAY` | Check for display configurations commonly found in VMs | πŸͺŸ | 35% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L7678) |
550-
| `VM::DEVICE_STRING` | Check if bogus device string would be accepted | πŸͺŸ | 25% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L7713) |
549+
| `VM::DISPLAY` | Check for display configurations commonly found in VMs | πŸͺŸ | 35% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L7676) |
550+
| `VM::DEVICE_STRING` | Check if bogus device string would be accepted | πŸͺŸ | 25% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L7711) |
551551
| `VM::BLUESTACKS_FOLDERS` | Check for the presence of BlueStacks-specific folders | 🐧 | 5% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L4895) |
552552
| `VM::CPUID_SIGNATURE` | Check for signatures in leaf 0x40000001 in CPUID | 🐧πŸͺŸπŸ | 95% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L4331) |
553553
| `VM::KGT_SIGNATURE` | Check for Intel KGT (Trusty branch) hypervisor signature in CPUID | 🐧πŸͺŸπŸ | 80% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L4360) |
@@ -562,35 +562,35 @@ VMAware provides a convenient way to not only check for VMs, but also have the f
562562
| `VM::SMBIOS_VM_BIT` | Check for the VM bit in the SMBIOS data | 🐧 | 50% | Admin | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L5344) |
563563
| `VM::PODMAN_FILE` | Check for podman file in /run/ | 🐧 | 5% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L5374) |
564564
| `VM::WSL_PROC` | Check for WSL or microsoft indications in /proc/ subdirectories | 🐧 | 30% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L5406) |
565-
| `VM::DRIVERS` | Check for VM-specific names for drivers | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L7730) |
566-
| `VM::DISK_SERIAL` | Check for serial numbers of virtual disks | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L7828) |
567-
| `VM::IVSHMEM` | Check for IVSHMEM device presence | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8047) |
568-
| `VM::GPU_CAPABILITIES` | Check for GPU capabilities related to VMs | πŸͺŸ | 45% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8146) |
569-
| `VM::DEVICE_HANDLES` | Check for vm-specific devices | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8184) |
565+
| `VM::DRIVERS` | Check for VM-specific names for drivers | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L7728) |
566+
| `VM::DISK_SERIAL` | Check for serial numbers of virtual disks | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L7826) |
567+
| `VM::IVSHMEM` | Check for IVSHMEM device presence | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8044) |
568+
| `VM::GPU_CAPABILITIES` | Check for GPU capabilities related to VMs | πŸͺŸ | 45% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8143) |
569+
| `VM::DEVICE_HANDLES` | Check for vm-specific devices | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8181) |
570570
| `VM::QEMU_FW_CFG` | Detect QEMU fw_cfg interface. This first checks the Device Tree for a fw-cfg node or hypervisor tag, then verifies the presence of the qemu_fw_cfg module and firmware directories in sysfs. | 🐧 | 70% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L5434) |
571-
| `VM::VIRTUAL_PROCESSORS` | Check if the number of virtual and logical processors are reported correctly by the system | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8280) |
572-
| `VM::HYPERV_QUERY` | Check if a call to NtQuerySystemInformation with the 0x9f leaf fills a _SYSTEM_HYPERVISOR_DETAIL_INFORMATION structure | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8310) |
571+
| `VM::VIRTUAL_PROCESSORS` | Check if the number of virtual and logical processors are reported correctly by the system | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8277) |
572+
| `VM::HYPERV_QUERY` | Check if a call to NtQuerySystemInformation with the 0x9f leaf fills a _SYSTEM_HYPERVISOR_DETAIL_INFORMATION structure | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8307) |
573573
| `VM::AMD_SEV` | Check for AMD-SEV MSR running on the system | 🐧🍏 | 50% | Admin | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L4918) |
574-
| `VM::VIRTUAL_REGISTRY` | Check for particular object directory which is present in Sandboxie virtual environment but not in usual host systems | πŸͺŸ | 90% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8368) |
574+
| `VM::VIRTUAL_REGISTRY` | Check for particular object directory which is present in Sandboxie virtual environment but not in usual host systems | πŸͺŸ | 90% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8365) |
575575
| `VM::FIRMWARE` | Check for VM signatures on all firmware tables | 🐧πŸͺŸ | 100% | Admin | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L5866) |
576576
| `VM::FILE_ACCESS_HISTORY` | Check if the number of accessed files are too low for a human-managed environment | 🐧 | 15% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L5464) |
577-
| `VM::AUDIO` | Check if no waveform-audio output devices are present in the system | πŸͺŸ | 25% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8454) |
577+
| `VM::AUDIO` | Check if no waveform-audio output devices are present in the system | πŸͺŸ | 25% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8450) |
578578
| `VM::NSJAIL_PID` | Check if process status matches with nsjail patterns with PID anomalies | 🐧 | 75% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L5491) |
579579
| `VM::PCI_DEVICES` | Check for PCI vendor and device IDs that are VM-specific | 🐧πŸͺŸ | 95% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L6307) |
580-
| `VM::ACPI_SIGNATURE` | Check for VM-specific ACPI device signatures | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8552) |
581-
| `VM::TRAP` | Check if after raising two traps at the same RIP, a hypervisor interferes with the instruction pointer delivery | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8746) |
582-
| `VM::UD` | Check if after executing an undefined instruction, a hypervisor misinterpret it as a system call | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8899) |
583-
| `VM::BLOCKSTEP` | Check if a hypervisor does not properly restore the interruptibility state after a VM-exit in compatibility mode | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8964) |
584-
| `VM::DBVM` | Check if Dark Byte's VM is present | πŸͺŸ | 150% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L9011) |
585-
| `VM::BOOT_LOGO` | Check boot logo for known VM images | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L9128) |
580+
| `VM::ACPI_SIGNATURE` | Check for VM-specific ACPI device signatures | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8548) |
581+
| `VM::TRAP` | Check if after raising two traps at the same RIP, a hypervisor interferes with the instruction pointer delivery | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8742) |
582+
| `VM::UD` | Check if after executing an undefined instruction, a hypervisor misinterpret it as a system call | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8895) |
583+
| `VM::BLOCKSTEP` | Check if a hypervisor does not properly restore the interruptibility state after a VM-exit in compatibility mode | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L8960) |
584+
| `VM::DBVM` | Check if Dark Byte's VM is present | πŸͺŸ | 150% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L9007) |
585+
| `VM::BOOT_LOGO` | Check boot logo for known VM images | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L9124) |
586586
| `VM::MAC_SYS` | Check for VM-strings in system profiler commands for MacOS | 🍏 | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L6931) |
587-
| `VM::OBJECTS` | Check for any signs of VMs in Windows kernel object entities | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L9221) |
588-
| `VM::NVRAM` | Check for known NVRAM signatures that are present on virtual firmware | πŸͺŸ | 100% | Admin | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L9407) |
589-
| `VM::BOOT_MANAGER` | Check for boot managers typically found in VMs | πŸͺŸ | 50% | Admin | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L9670) |
590-
| `VM::SMBIOS_INTEGRITY` | Check if SMBIOS is malformed/corrupted in a way that is typical for VMs | πŸͺŸ | 60% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L9888) |
591-
| `VM::EDID` | Check for non-standard EDID configurations | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L9899) |
592-
| `VM::CPU_HEURISTIC` | Check if the CPU is capable of running certain instructions successfully | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L10008) |
593-
| `VM::CLOCK` | Check the presence of system timers | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L10241) |
587+
| `VM::OBJECTS` | Check for any signs of VMs in Windows kernel object entities | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L9217) |
588+
| `VM::NVRAM` | Check for known NVRAM signatures that are present on virtual firmware | πŸͺŸ | 100% | Admin | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L9386) |
589+
| `VM::BOOT_MANAGER` | Check for boot managers typically found in VMs | πŸͺŸ | 50% | Admin | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L9649) |
590+
| `VM::SMBIOS_INTEGRITY` | Check if SMBIOS is malformed/corrupted in a way that is typical for VMs | πŸͺŸ | 60% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L9867) |
591+
| `VM::EDID` | Check for non-standard EDID configurations | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L9878) |
592+
| `VM::CPU_HEURISTIC` | Check if the CPU is capable of running certain instructions successfully | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L9987) |
593+
| `VM::CLOCK` | Check the presence of system timers | πŸͺŸ | 100% | | | | [link](https://github.com/kernelwernel/VMAware/tree/main/src/vmaware.hpp#L10222) |
594594
595595
<!-- END OF TECHNIQUE DOCUMENTATION -->
596596

β€Žsrc/cli.cppβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ static std::string vm_description(const std::string& vm_brand) {
541541
#else
542542
NTSTATUS status;
543543

544-
HMODULE ntdll = GetModuleHandle(_T("ntdll.dll"));
544+
HMODULE ntdll = GetModuleHandleA("ntdll.dll");
545545
if (!ntdll) {
546546
return false;
547547
}

0 commit comments

Comments
Β (0)