libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
HIVE.hh
Go to the documentation of this file.
1/*
2 * Copyright 2021 Assured Information Security, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#pragma once
17
20
21#include <cstdint>
22#include <string>
23
24namespace introvirt {
25namespace windows {
26namespace nt {
27
28class CM_KEY_NODE;
29class HBASE_BLOCK;
30
31class HIVE {
32 public:
38 enum HiveFlags {
45 // TODO(papes): Values seen up to 0x200
46 };
47
48 virtual const std::string& FileFullPath() const = 0;
49 virtual const std::string& FileUserName() const = 0;
50 virtual const std::string& HiveRootPath() const = 0;
51 virtual const HBASE_BLOCK& BaseBlock() const = 0;
52 virtual const CM_KEY_NODE* RootKeyNode() const = 0;
53 virtual const CM_KEY_NODE* KeyNode(uint32_t KeyIndex) const = 0;
54 virtual guest_ptr<void> CellAddress(uint32_t KeyIndex) const = 0;
55 virtual const HIVE* PreviousHive() const = 0;
56 virtual const HIVE* NextHive() const = 0;
57 virtual uint32_t HiveFlags() const = 0;
58 virtual guest_ptr<void> ptr() const = 0;
59
60 virtual ~HIVE() = default;
61};
62
63} /* namespace nt */
64} /* namespace windows */
65} /* namespace introvirt */
Definition guest_ptr.hh:88
Definition CM_KEY_NODE.hh:29
Definition HBASE_BLOCK.hh:31
Definition HIVE.hh:31
virtual const HBASE_BLOCK & BaseBlock() const =0
virtual const CM_KEY_NODE * RootKeyNode() const =0
virtual const std::string & FileUserName() const =0
HiveType
Definition HIVE.hh:33
@ HFILE_TYPE_EXTERNAL
Definition HIVE.hh:36
@ HFILE_TYPE_PRIMARY
Definition HIVE.hh:34
@ HFILE_TYPE_LOG
Definition HIVE.hh:35
virtual const HIVE * PreviousHive() const =0
virtual const CM_KEY_NODE * KeyNode(uint32_t KeyIndex) const =0
HiveFlags
Definition HIVE.hh:38
@ HIVE_HAS_BEEN_FREED
Definition HIVE.hh:42
@ HIVE_VOLATILE
Definition HIVE.hh:39
@ HIVE_HAS_BEEN_REPLACED
Definition HIVE.hh:41
@ HIVE_NOLAZYFLUSH
Definition HIVE.hh:40
@ HIVE_UNKNOWN
Definition HIVE.hh:43
@ HIVE_UNLOADING
Definition HIVE.hh:44
virtual const std::string & HiveRootPath() const =0
virtual const std::string & FileFullPath() const =0
virtual uint32_t HiveFlags() const =0
virtual guest_ptr< void > ptr() const =0
virtual guest_ptr< void > CellAddress(uint32_t KeyIndex) const =0
virtual const HIVE * NextHive() const =0
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20