Skip to content

Commit 411f781

Browse files
authored
Merge branch 'kernelwernel:main' into main
2 parents aea94b5 + bc688aa commit 411f781

File tree

3 files changed

+16
-18
lines changed

3 files changed

+16
-18
lines changed

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.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</a>
1212

1313
<div align="center">
14-
<b>VMAware</b> (VM + Aware) is a cross-platform C++ library for virtual machine detection.
14+
<b>VMAware</b> (VM + Aware) is a cross-platform C++ framework for virtual machine detection.
1515
<br>
1616
<br>
1717
<a href="README_CN.md">中文 🇨🇳</a> | <a href="README_FR.md">Français 🇫🇷</a> | <a href="README_KR.md">한국어 🇰🇷</a>
@@ -39,7 +39,7 @@ The library is:
3939
<br>
4040

4141
> [!NOTE]
42-
> We are looking for translators willing to translate this README into your native language if it isn't included. If you'd like to contribute, feel free to give us a PR!
42+
> We are looking for translators willing to translate this README into your native language. If you'd like to contribute, feel free to give us a PR!
4343
4444

4545
## Example 🧪
@@ -260,7 +260,7 @@ If you want to learn about the architecture and design of the library, head over
260260
<br>
261261

262262
## Issues, discussions, pull requests, and inquiries 📬
263-
If you have any suggestions, ideas, or any sort of contribution, feel free to ask! I'll be more than happy to discuss either in the [issue](https://github.com/kernelwernel/VMAware/issues) or [discussion](https://github.com/kernelwernel/VMAware/discussions) sections. If you want to personally ask something in private, my discord is `kr.nl`.
263+
If you have any suggestions, ideas, or any sort of contribution, feel free to ask! I'll be more than happy to discuss either in the [issue](https://github.com/kernelwernel/VMAware/issues) or [discussion](https://github.com/kernelwernel/VMAware/discussions) sections. If you want to personally ask something in private, our discords are `kr.nl` and `shenzken`
264264

265265
For email inquiries: `jeanruyv@gmail.com`
266266

src/vmaware.hpp

Lines changed: 11 additions & 10 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
@@ -12546,8 +12547,8 @@ struct VM {
1254612547
const u8 percent_tmp = percentage(flags);
1254712548
const bool has_hardener = is_hardened();
1254812549

12549-
constexpr const char* very_unlikely = "Very unlikely a";
12550-
constexpr const char* unlikely = "Unlikely a";
12550+
constexpr const char* very_unlikely = "Very unlikely";
12551+
constexpr const char* unlikely = "Unlikely";
1255112552
constexpr const char* potentially = "Potentially";
1255212553
constexpr const char* might = "Might be";
1255312554
constexpr const char* likely = "Likely";
@@ -12571,9 +12572,9 @@ struct VM {
1257112572
// by either having "a" or "an" before the VM brand
1257212573
// name. It would look weird if the conclusion
1257312574
// message was "an VirtualBox" or "a Anubis", so this
12574-
// condition fixes that issue.
12575+
// condition fixes that issue.
1257512576
if (
12576-
!hardener && (
12577+
!has_hardener && (
1257712578
(brand_tmp == brands::ACRN) ||
1257812579
(brand_tmp == brands::ANUBIS) ||
1257912580
(brand_tmp == brands::BSD_VMM) ||
@@ -12602,12 +12603,12 @@ struct VM {
1260212603
}
1260312604

1260412605
// Hyper-V artifacts are an exception due to how unique the circumstance is
12605-
std::string result;
12606-
if (brand_tmp == brands::HYPERV_ARTIFACT) {
12607-
result = std::string(category) + addition + hardener + brand_tmp;
12608-
} else {
12609-
result = std::string(category) + addition + hardener + brand_tmp + " VM";
12610-
}
12606+
const std::string result =
12607+
std::string(category) +
12608+
addition +
12609+
hardener +
12610+
brand_tmp +
12611+
(brand_tmp == brands::HYPERV_ARTIFACT ? "" : " VM");
1261112612

1261212613
memo::conclusion::store(result.c_str());
1261312614

0 commit comments

Comments
 (0)