FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
HACKER-OS-ExploitDev/Tools/PEXMIT/Filters.cpp at main · SkillfactoryCoding/HACKER-OS-ExploitDev · GitHub
SkillfactoryCoding
/
HACKER-OS-ExploitDev
Public
forked from
forrest-orr/ExploitDev
Notifications
You must be signed in to change notification settings
Fork
2
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
HACKER-OS-ExploitDev
/
Tools
/
PEXMIT
/
Filters.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
46 lines (43 loc) · 1.66 KB
Breadcrumbs
HACKER-OS-ExploitDev
/
Tools
/
PEXMIT
/
Filters.cpp
Copy path
File metadata and controls
46 lines (43 loc) · 1.66 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
include
"
stdafx.h
"
vector<Process>
PsFilterMitigations
(
const
shared_ptr<Interface>& Intf,
const
shared_ptr<ApiTable>& DynamicApis, vector<Process> &PsVec,
uint64_t
qwFilterLackingFlags,
uint64_t
qwFilterForActiveFlags) {
vector<Process> FilteredPsVec;
for
(vector<Process>::iterator Itr = PsVec.
begin
(); Itr != PsVec.
end
(); ++Itr) {
if
(Itr->
QueriedMitigationPolicies
()) {
if
(qwFilterLackingFlags) {
if
((qwFilterLackingFlags &
SEARCH_FLAG_CFG
) && !Itr->
CfgEnabled
()) {
FilteredPsVec.
push_back
(*Itr);
}
else
if
((qwFilterLackingFlags &
SEARCH_FLAG_ASLR
) && !Itr->
AslrEnabled
()) {
FilteredPsVec.
push_back
(*Itr);
}
else
if
((qwFilterLackingFlags &
SEARCH_FLAG_CIG
) && !Itr->
CigEnabled
()) {
FilteredPsVec.
push_back
(*Itr);
}
else
if
((qwFilterLackingFlags &
SEARCH_FLAG_ACG
) && !Itr->
AcgEnabled
()) {
FilteredPsVec.
push_back
(*Itr);
}
else
if
((qwFilterLackingFlags &
SEARCH_FLAG_DEP
) && !Itr->
DepEnabled
()) {
FilteredPsVec.
push_back
(*Itr);
}
}
else
if
(qwFilterForActiveFlags) {
if
((qwFilterForActiveFlags &
SEARCH_FLAG_CFG
) && Itr->
CfgEnabled
()) {
FilteredPsVec.
push_back
(*Itr);
}
else
if
((qwFilterForActiveFlags &
SEARCH_FLAG_ASLR
) && Itr->
AslrEnabled
()) {
FilteredPsVec.
push_back
(*Itr);
}
else
if
((qwFilterForActiveFlags &
SEARCH_FLAG_CIG
) && Itr->
CigEnabled
()) {
FilteredPsVec.
push_back
(*Itr);
}
else
if
((qwFilterForActiveFlags &
SEARCH_FLAG_ACG
) && Itr->
AcgEnabled
()) {
FilteredPsVec.
push_back
(*Itr);
}
else
if
((qwFilterForActiveFlags &
SEARCH_FLAG_DEP
) && Itr->
DepEnabled
()) {
FilteredPsVec.
push_back
(*Itr);
}
}
}
}
return
FilteredPsVec;
}
Back
|
FazBrowse Home
|
New Git URL