Skip to content

Commit bc688aa

Browse files
authored
Merge pull request #626 from virtfunc/main
fix grammar for unknown vm, fix logic for hardened vm output string
2 parents 347b854 + c58ac68 commit bc688aa

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

CONTRIBUTING.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# Contribution Guidelines
22

33

4-
Make sure to create your PR merge target to the `dev` branch and not the `main` branch. This is because all our prototype code is developed in `dev`, and we usually merge that branch to `main` at least once a week. it keeps our codebase organised and separated between a prototype that we cautiously don't think it's ready to be used by the public yet (especially if it's a new technique being introduced), and an upstream version that we've deemed to be practically ready.
5-
6-
7-
Also, please consider adding your name and github in the vmaware.hpp file and the README's credit sections. Your work is valuable to us, and we want to credit you for the improvements you've made.
4+
Please consider adding your name and github in the vmaware.hpp file and the README's credit sections. Your work is valuable to us, and we want to credit you for the improvements you've made.
85

96

107
## Translations
@@ -89,4 +86,4 @@ Depending on how big the change is, if the change is fairly small then just a si
8986

9087

9188
## Notes
92-
If you have any questions or inquiries, our contact details are in the README.
89+
If you have any questions or inquiries, our contact details are in the README.

src/vmaware.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* - Kyun-J (https://github.com/Kyun-J)
2525
* - luukjp (https://github.com/luukjp)
2626
* - Lorenzo Rizzotti (https://github.com/Dreaming-Codes)
27+
* - virtfunc (https://github.com/virtfunc)
2728
* - Repository: https://github.com/kernelwernel/VMAware
2829
* - Docs: https://github.com/kernelwernel/VMAware/docs/documentation.md
2930
* - Full credits: https://github.com/kernelwernel/VMAware#credits-and-contributors-%EF%B8%8F
@@ -12523,8 +12524,8 @@ struct VM {
1252312524
const u8 percent_tmp = percentage(flags);
1252412525
const bool has_hardener = is_hardened();
1252512526

12526-
constexpr const char* very_unlikely = "Very unlikely a";
12527-
constexpr const char* unlikely = "Unlikely a";
12527+
constexpr const char* very_unlikely = "Very unlikely";
12528+
constexpr const char* unlikely = "Unlikely";
1252812529
constexpr const char* potentially = "Potentially";
1252912530
constexpr const char* might = "Might be";
1253012531
constexpr const char* likely = "Likely";
@@ -12550,7 +12551,7 @@ struct VM {
1255012551
// message was "an VirtualBox" or "a Anubis", so this
1255112552
// condition fixes that issue.
1255212553
if (
12553-
!hardener && (
12554+
!has_hardener && (
1255412555
(brand_tmp == brands::ACRN) ||
1255512556
(brand_tmp == brands::ANUBIS) ||
1255612557
(brand_tmp == brands::BSD_VMM) ||
@@ -12584,7 +12585,7 @@ struct VM {
1258412585
addition +
1258512586
hardener +
1258612587
brand_tmp +
12587-
(brand_tmp == brands::HYPERV_ARTIFACT ? " VM" : "");
12588+
(brand_tmp == brands::HYPERV_ARTIFACT ? "" : " VM");
1258812589

1258912590
memo::conclusion::store(result.c_str());
1259012591

0 commit comments

Comments
 (0)