-
-
Notifications
You must be signed in to change notification settings - Fork 773
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
203 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,8 +114,8 @@ VOID Help_ShowGeneral() | |
" Option has no value. Example: -pt. Used in conjunction with \n" \ | ||
" -kmd option to trigger KMD insertion by page table hijack. \n" \ | ||
" -cr3 : base address of page table (PML4) / CR3 CPU register. \n" \ | ||
" -efibase : base address of EFI_SYSTEM_TABLE (IBI SYST). Used when inserting \n" \ | ||
" UEFI 'kernel' modules. \n" \ | ||
" -efibase : base address of EFI table when inserting select kernel modules. \n" \ | ||
" EFI_SYSTEM_TABLE(IBI SYST) == UEFI ; RUNTSERV == LINUX RUNTSERV EFI. \n" \ | ||
" -kmd : address of already loaded kernel module helper (KMD). \n" \ | ||
" ALTERNATIVELY \n" \ | ||
" kernel module to use, see list below for choices: \n" \ | ||
|
@@ -143,7 +143,7 @@ VOID Help_ShowInfo() | |
printf( | ||
" PCILEECH INFORMATION \n" \ | ||
" PCILeech (c) 2016-2018 Ulf Frisk \n" \ | ||
" Version: 3.3 \n" \ | ||
" Version: 3.4 \n" \ | ||
" License: GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 \n" \ | ||
" Contact information: [email protected] \n" \ | ||
" System requirements: 64-bit Windows 7, 10 or Linux. \n" \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// statistics.c : implementation of statistics related functionality. | ||
// | ||
// (c) Ulf Frisk, 2016, 2017 | ||
// (c) Ulf Frisk, 2016-2018 | ||
// Author: Ulf Frisk, [email protected] | ||
// | ||
#include "statistics.h" | ||
|
@@ -10,14 +10,14 @@ VOID _PageStatPrintMemMap(_Inout_ PPAGE_STATISTICS ps) | |
BOOL fIsLinePrinted = FALSE; | ||
QWORD i, qwAddrBase, qwAddrEnd; | ||
if(!ps->i.fIsFirstPrintCompleted) { | ||
printf(" Memory Map: \n START END #PAGES\n"); | ||
printf(" Memory Map: \n START END #PAGES \n"); | ||
} | ||
if(!ps->i.MemMapIdx && !ps->i.MemMap[0]) { | ||
printf(" \n \n"); | ||
printf(" \n \n"); | ||
return; | ||
} | ||
if(ps->i.MemMapPrintCommitIdx >= PAGE_STATISTICS_MEM_MAP_MAX_ENTRY - 4) { | ||
printf(" Maximum number of memory map entries reached.\n \n"); | ||
printf(" Maximum number of memory map entries reached. \n \n"); | ||
return; | ||
} | ||
qwAddrBase = ps->i.qwAddrBase + ps->i.MemMapPrintCommitPages * 0x1000; | ||
|
@@ -32,7 +32,7 @@ VOID _PageStatPrintMemMap(_Inout_ PPAGE_STATISTICS ps) | |
if((i % 2) == 0) { | ||
fIsLinePrinted = TRUE; | ||
printf( | ||
" %016llx - %016llx %08x\n", | ||
" %016llx - %016llx %08x \n", | ||
qwAddrBase, | ||
qwAddrEnd - 1, | ||
ps->i.MemMap[i]); | ||
|
@@ -45,9 +45,9 @@ VOID _PageStatPrintMemMap(_Inout_ PPAGE_STATISTICS ps) | |
qwAddrBase = qwAddrEnd; | ||
} | ||
if(!fIsLinePrinted) { // print extra line for formatting reasons. | ||
printf(" (No memory successfully read yet) \n"); | ||
printf(" (No memory successfully read yet) \n"); | ||
} | ||
printf(" \n"); | ||
printf(" \n"); | ||
} | ||
|
||
VOID _PageStatShowUpdate(_Inout_ PPAGE_STATISTICS ps) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.