Comments (2)
Looks like getting this information will be a little annoying: it's stored in the "extended DLL characteristics", which are an entry of type IMAGE_DEBUG_TYPE_EX_DLLCHARACTERISTICS=20
in the debug data directory entry vector.
In other words, we'll need to:
- Grab the debug data directory entry vector via
DIR_DEBUG
- Walk it until we find an entry of type
IMAGE_DEBUG_TYPE_EX_DLLCHARACTERISTICS
- Check its data for the bitmask
IMAGE_DLLCHARACTERISTICS_EX_CET_COMPAT
(0x0001
)
We could do this manually with the current pe-parse API, but it's probably also well-suited for a high-level API change (e.g. IterDebug
).
from winchecksec.
I'm going to push this to 2.1, since the right way to do it is with some pe-parse changes.
from winchecksec.
Related Issues (20)
- Add a SARIF output mode HOT 1
- Remove json/pretty-printing from the public API
- Incorrect Offsets in loadConfigSize_ Checks?
- CMake throwing a LNK2019 error HOT 5
- Pass a directory as an argument HOT 12
- openssl HOT 2
- GS incorectly reported on resource only dlls HOT 4
- C# dll shows /GS "Not Present" HOT 1
- Show CET support HOT 3
- Incorrect reports on binaries built with Visual Studio 2022 HOT 10
- Couldn't load file; corrupt or not a PE? HOT 1
- Refactor automatic docs deployment
- Document the API
- CFG test should test more fields
- winchecksec tool crashes while scanning DLLs built from latest version of Visual Studio HOT 7
- How to compile on Linux HOT 3
- Make a winchecksec Github Action HOT 2
- Remove or add a Deprecated comment to the RFG check HOT 1
- Out of bounds copy from loadConfigData to loadConfig. HOT 1
- Unable to build on Ubuntu HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winchecksec.