Linux payload implementing HV exploits to run a custom bootloader
C
Small fix for pro to boot on 13.20 (#52)
Borchev62020f573563
diff --git a/shellcode_kernel/main.c b/shellcode_kernel/main.cindex ba9d66e..5241a21 100644--- a/shellcode_kernel/main.c+++ b/shellcode_kernel/main.c@@ -36,7 +36,7 @@ __attribute__((section(".entry_point"))) uint32_t main(uint64_t add1,} else if ((0x0500 <= args_ptr->fw_version) &&(args_ptr->fw_version < 0x0800)) {// Already escaped.- } else if (args_ptr->fw_version == 0x1360) {+ } else if (args_ptr->fw_version == 0x1320 || args_ptr->fw_version == 0x1360) {// Already escaped.} else {return 0;diff --git a/source/prepare_resume.c b/source/prepare_resume.cindex eb0f86a..2000547 100644--- a/source/prepare_resume.c+++ b/source/prepare_resume.c@@ -197,7 +197,7 @@ uint64_t prepare_sck_args(void) {args.kernel_cfi_check = ktext + env_offset.KERNEL_CFI_CHECK;args.hv_handle_vmexit_pa = env_offset.HV_HANDLE_VMEXIT_PA;args.hv_code_cave_pa = env_offset.HV_CODE_CAVE_PA;- if (fw == 0x1360 && linux_i.kit_type == KIT_RETAIL_PRO) {+ if ((fw == 0x1320 || fw == 0x1360) && linux_i.kit_type == KIT_RETAIL_PRO) {uint64_t pro_base = derive_h() + HV_CODE_OFFSET_PRO;uint64_t hv_offset = pro_base - HV_BASE_REGULAR;args.hv_handle_vmexit_pa += hv_offset;