Commit Graph

767 Commits

Author SHA1 Message Date
dmex c13f7feb0e phlib: remove legacy icon imports 2017-05-11 17:03:48 +10:00
dmex 79ff2ba71b peview: Add settings support for all tabs, Move settings support from main into phlib 2017-05-08 01:17:55 +10:00
lucasg 302cdac522 Add cfg support for wow64 process (#134)
* Locate and tag CFG bitmap memory page (both x86 and x64) for wow64
  processes
* Add CFG entries parsing for 32-bit executables in peview
* Add unnamed union in PH_MAPPED_IMAGE in order to selectively read a
  IMAGE_NT_HEADER as 32 bit (could also have used a C-style cast)
* Rename CFG page "RVA" column to "VA" since we read Virtual Adresses
2017-05-04 16:37:44 +10:00
dmex b87d039916 peview: Improve module import(s) enumeration 2017-04-28 02:10:59 +10:00
dmex d06f6610b0 Fix github file encoding issues 2017-04-27 19:12:40 +10:00
dmex 9534c8b5ce phlib: Fix delay load structure type and checks 2017-04-27 17:41:08 +10:00
dmex 89b65b3ea0 Update DelayLoadDLLs 2017-04-22 10:03:50 +10:00
dmex e07ffe00a5 phlib: Add ShowError2 dialog 2017-04-06 10:00:34 +10:00
dmex 6a02c5b02f Update window procedure callbacks 2017-02-12 02:09:07 +11:00
dmex 5284dfb6c1 peview: Fix format specifier, Fix incorect type name, Improve IMAGE_CFG_ENTRY type 2017-01-30 01:34:27 +11:00
dmex f0517b31c8 peview: Check binaries for valid CFG data (patch by lucasg), Fix incorrect type names 2017-01-30 00:47:22 +11:00
dmex e3bf0643e0 Fix incorrect phlib types, remove tabspace characters, tidy up #101 merge 2017-01-29 00:24:15 +11:00
lucasg c2efc5f62c [WIP] CFG property page for Peview (#101)
* [peview] Add cfg function list for CFG-aware PE.

* [peview] Add symbol name resolving for Cfg prop page

* [peview] Clean up Cfg entry parsing with proper data structures

* [peview] List CFG whitelist by names

* [peview] Change cfg lockdown bit to SuppressedCall

That how MS call it. (see RtlpGuardAllowSuppressedCall or RtlGuardCheckLongJumpTarget in ntdll)

* [peview] Add entry id column for CFG property page

* [peview] Fix bug when loading symbols for cfg list

The symbol provider was loaded with (ImageBase, SizeOfCode) infos, not
(ImageBase, SizeOfImage).

* [peview] Clarify code in CfgProp and fix typo in cfg item data struct

* [peview] Decref symbol strings after setting the function name

* [peview] Add PhGetMappedImageCfg and PhGetMappedImageCfgEntry in mapimg

Those helpers can parse and return CFG configuration and entries in a
mapped pe.

* [peview] Tidy symbol provider init in a separate function

The code for symbol provider loading is party ripped from mainwnd.c. It
could be a good idea to provide a PhLoadDbgHelpFromCommonLocations (like
Windows Kits) in symprv.

* [peview] Add cfg configuration in load config property sheet
2017-01-28 22:46:16 +11:00
Wen Jia Liu 1989541f2f Reorder #include statements 2016-04-10 14:24:00 +10:00
Wen Jia Liu fa409fa669 Add STANDARD_RIGHTS_READ and SYNCHRONIZE to KPH process/thread read access mask 2016-04-09 16:15:27 +10:00
Wen Jia Liu 33272c5650 Merge remote-tracking branch 'refs/remotes/origin/master' into SecurityEditor 2016-04-09 15:21:06 +10:00
Wen Jia Liu caa9e376e4 Make parameters consistent in secedit.c 2016-04-09 15:20:59 +10:00
Wen Jia Liu 3d6d962a2a Add Sha256HashAlgorithm 2016-04-09 15:15:34 +10:00
dmex e4b90ea08d Fix security dialog window start position 2016-04-09 14:10:40 +10:00
dmex 9b099c106e Upgrade solutions to VS2015 Update 2 (remove legacy VS15 hacks) 2016-04-01 03:31:24 +11:00
Wen Jia Liu 2593cb8a2f Add PhSetEnvironmentVariableRemote 2016-03-29 12:18:05 +11:00
Wen Jia Liu a8c64c8f9c Remove unnecessary uxtheme.lib dependency 2016-03-29 07:41:07 +11:00
Wen Jia Liu 73c16685db Fix minor security vulnerability in KphpCopyInfoUnicodeString; Add DesiredAccess to KphOpenDriver 2016-03-29 05:28:54 +11:00
Wen Jia Liu 68235b0aec Re-add KphOpenProcessToken 2016-03-28 08:22:52 +11:00
dmex a777a259cd Remove uxtheme imports 2016-03-17 23:06:20 +11:00
Wen Jia Liu d442297b18 Fully implement verification for KProcessHacker 2016-03-17 02:15:02 +11:00
Wen Jia Liu 285e4c0a4c Add KProcessHacker hashing and verification code 2016-03-16 01:05:27 +11:00
Wen Jia Liu 6f038e7753 Bump KProcessHacker device name version 2016-03-15 22:34:31 +11:00
Wen Jia Liu d4f736501e Add CustomSignTool; Add public open process/thread functions 2016-03-15 22:30:27 +11:00
Wen Jia Liu 73b6dfe6d6 Remove more useless native API wrappers 2016-03-15 20:24:43 +11:00
Wen Jia Liu cb14ddeadc Remove useless native API wrapper functions 2016-03-15 14:22:33 +11:00
Wen Jia Liu 6898dc4ff1 Remove KphDuplicateObject 2016-03-15 03:11:31 +11:00
Wen Jia Liu 7fb9ff33f7 Perform access checks for user-mode wherever possible 2016-03-15 02:33:00 +11:00
Wen Jia Liu 2eba00e775 Remove all internal procedure scans from KProcessHacker 2016-03-15 01:27:49 +11:00
Wen Jia Liu 8fe0c1a5e6 Remove KphSuspendProcess and KphResumeProcess 2016-03-15 00:52:54 +11:00
Wen Jia Liu 706ab75d08 Remove obsolete KProcessHacker features 2016-03-14 23:51:03 +11:00
Wen Jia Liu 1c91cbe0cc Check for clrjit.dll to fix .NET process detection for new Windows 10 updates and .NET profilers 2016-03-11 11:11:01 +11:00
Wen Jia Liu 04680f3ce7 Remove unused forward declarations 2016-02-28 12:48:25 +11:00
Wen Jia Liu 48ad31fc4c Add PhLoadIcon function; Use 32x32 icons throughout the program 2016-02-26 00:50:02 +11:00
Wen Jia Liu 11be924982 Fix type casts 2016-02-25 17:08:35 +11:00
Wen Jia Liu f181de196e Remove deprecated functions; Make Pha* functions inline 2016-02-25 16:58:44 +11:00
Wen Jia Liu 9c59091e87 Add .def file for exports; Reduce compilation time; Reorganize header files 2016-02-25 16:58:43 +11:00
Wen Jia Liu 21ef27f442 Add missing extern "C" blocks to phlib header files 2016-02-25 12:56:40 +11:00
Wen Jia Liu 23f83db57c Add execution environment support to work queue; Use low I/O priority for signature verification 2016-02-24 22:45:25 +11:00
Wen Jia Liu b5835c81d8 Use official page priority names 2016-02-24 20:40:48 +11:00
Wen Jia Liu be7aba11c7 Use IO_PRIORITY_HINT consistently 2016-02-24 20:40:48 +11:00
Wen Jia Liu 9996edca71 Reorganize header files (more modularity); Simplify phlib initialization 2016-02-24 15:27:51 +11:00
Wen Jia Liu 9bd039a737 Add exploit mitigation policy information to process properties 2016-02-23 22:12:00 +11:00
Wen Jia Liu 045ce38002 Move NT headers into separate phnt directory 2016-02-23 17:24:41 +11:00
Wen Jia Liu 3ab82ec980 Change PhQueryKey and PhQueryValueKey to return NTSTATUS 2016-02-23 12:51:26 +11:00