Comments (4)
Hello insanitybit,
Can you explain for what this function might be used for?
It seems to calculate some hash of all imported functions.
While this function can be implemented no problem using pelite, the python version has some problematic features (hardcoded list of extensions, hardcoded list of ordinals -> function names for some dlls, md5, lowercasing everything).
While these can be worked around, without knowing why one might use this function I don't feel I can make the right decision at the library level and feel it is better left over to the user of pelite to implement this feature.
from pelite.
I found this interesting article discussing get_imphash: https://www.fireeye.com/blog/threat-research/2014/01/tracking-malware-import-hashing.html
This seems like a very specific feature for a very specific use case which I don't think is appropriate for pelite (the library).
That said making it easy to calculate imphash (making sure pelite supports this use case in a straightforward way) and eg. providing an example that does exactly that seems like a good idea.
from pelite.
Cool, yeah I think that makes sense - it's definitely very specific, but the primitives for implementing it seems relevant to the crate.
A separate crate that actually provides the implementation would probably be more reasonable.
from pelite.
I've implemented a simplified version of this feature as an example.
Uses the default hasher and not trying to be fancy with imports.
> cargo run --example imphash -- C:\Windows\System32\msvcp140.dll
Import hash is 66182F54652495EE for "C:\\Windows\\System32\\msvcp140.dll".
from pelite.
Related Issues (20)
- Missing documentation on pattern macro
- Resources documentation is a mess
- Windows defender detects `tests\pocs\blob` as Trojan:Win32/Fuery.B!cl HOT 6
- Add json output to pedump HOT 1
- Read please!
- fchghfhfghxd
- Sample does not work since last pull (master) HOT 2
- New version of pelite-macros broke 0.8.1 HOT 3
- no `pattern_attribute` in the root HOT 2
- Misaligned address when trying to access Import section of some PEs HOT 4
- crates.io lists pelite as a command when it is a library HOT 1
- Add pelite::Wrap to the top level crate documentation HOT 2
- Writing to imports HOT 3
- UNWIND_INFO and unwind_info() is broken HOT 1
- Unable to read PE version on Linux HOT 5
- VersionInfo.fixed() return None while version info does exist HOT 5
- 32-bit linux build broken HOT 2
- Please help me get the version of the file in string format HOT 1
- Incorrect module base address used for PE32 mapped images using ASLR
- Add .rustfmt.toml to repo + format code HOT 7
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 pelite.