libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
PEB.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 <memory>
23
24namespace introvirt {
25namespace windows {
26namespace nt {
27
31class PEB {
32 public:
36 virtual guest_ptr<void> ImageBaseAddress() const = 0;
37
41 virtual const PEB_LDR_DATA* Ldr() const = 0;
42 virtual PEB_LDR_DATA* Ldr() = 0;
43
49
53 virtual uint32_t OSMajorVersion() const = 0;
54
58 virtual uint32_t OSMinorVersion() const = 0;
59
63 virtual uint16_t OSBuildNumber() const = 0;
64
68 virtual uint16_t OSCSDVersion() const = 0;
69
73 virtual uint32_t OSPlatformId() const = 0;
74
78 virtual uint16_t ServicePackNumber() const = 0;
79
83 virtual uint16_t MinorServicePackNumber() const = 0;
84
88 virtual uint32_t NumberOfProcessors() const = 0;
89
93 virtual guest_ptr<void> ptr() const = 0;
94
98 virtual bool BeingDebugged() const = 0;
99
104 virtual void BeingDebugged(bool BeingDebugged) = 0;
105
106 virtual ~PEB() = default;
107};
108
109} /* namespace nt */
110} /* namespace windows */
111} /* namespace introvirt */
Definition guest_ptr.hh:88
Definition PEB_LDR_DATA.hh:32
Definition PEB.hh:31
virtual void BeingDebugged(bool BeingDebugged)=0
virtual ~PEB()=default
virtual uint32_t OSMinorVersion() const =0
virtual uint16_t ServicePackNumber() const =0
virtual uint16_t MinorServicePackNumber() const =0
virtual bool BeingDebugged() const =0
virtual const PEB_LDR_DATA * Ldr() const =0
virtual uint32_t NumberOfProcessors() const =0
virtual const RTL_USER_PROCESS_PARAMETERS * ProcessParameters() const =0
virtual uint16_t OSBuildNumber() const =0
virtual guest_ptr< void > ImageBaseAddress() const =0
virtual RTL_USER_PROCESS_PARAMETERS * ProcessParameters()=0
virtual guest_ptr< void > ptr() const =0
virtual uint16_t OSCSDVersion() const =0
virtual PEB_LDR_DATA * Ldr()=0
virtual uint32_t OSMajorVersion() const =0
virtual uint32_t OSPlatformId() const =0
Definition RTL_USER_PROCESS_PARAMETERS.hh:33
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20