Comments (6)
Really happy you found it useful! Means a lot!
Yeah the versioning setup in the resource directory is a pain in the ass. There's a bug in CFF Explorer with parsing VS_VERSION and a bunch of other stuff. The code is ugly so I'm not surprised there's an issue.
Is the .NET binary malware? Do you have a hash I can search to run it against exe-rs and see what the bug is? If it's not malware, do you have somewhere I can download it to run against the crate? I've been working on a bunch of C++ lately and I'd love to get back to this project if people are working on it!
Thanks again for reporting this!
from exe-rs.
Nice and thanks!
The one binary I can share with you is found here: https://github.com/BloodHoundAD/SharpHound/releases/tag/v1.1.0
It's the zip file and is the SharpHound.exe .Net binary.
Thanks again
from exe-rs.
Figured out the problem. exe-rs is expecting there to be a VSStringFileInfo structure immediately after a VSFixedFileInfo structure. In the executable you linked me, VSVarFileInfo comes before VSStringFileInfo, which is either nonstandard or is documented and I just missed it in the godawful documentation that exists for this format.
It should be an easy fix-- detect which structure is actually there in the file first instead of assuming. I'll have a fix soon. Thanks for reporting this-- the parsing of these structures is undoubtedly riddled with bugs like this.
from exe-rs.
Nice work! I've started digging into the work you're doing on this. Not easy going through all the docs for sure so thanks again.
from exe-rs.
This is now fixed as of 4c76891! The official release with this fix will be 0.5.5. Thanks again for reporting!
from exe-rs.
This is live in 0.5.6 (not 0.5.5, that was a mistake).
from exe-rs.
Related Issues (10)
- exe::Error doesnt implement std::error::Error HOT 7
- Release the code for the tests
- dll support for ressource directory? HOT 2
- BufferSearch search performance HOT 3
- How to get pictures and save them HOT 7
- Intended way to use CChar strings eg Section Name HOT 1
- get_section_by_name requres a String instead of an &str HOT 4
- chrono dep pulls in time version with CVE-2020-26235 HOT 3
- Use cargo fmt
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 exe-rs.