Comments (3)
What is the exact problem with the histogram?
The function that does what you are asking for is this:
https://github.com/elastic/ember/blob/d97a0b523de02f3fe5ea6089d080abacab6ee931/ember/features.py#LL37C36-L37C36
from ember.
What is the exact problem with the histogram?
The function that does what you are asking for is this: https://github.com/elastic/ember/blob/d97a0b523de02f3fe5ea6089d080abacab6ee931/ember/features.py#LL37C36-L37C36
I think I cannot see clearly, maybe I focus something wrong.
from ember import PEFeatureExtractor
extractor = PEFeatureExtractor()
extractor.raw_features('./files/13.exe')
I received an error:
Traceback (most recent call last):
File "...\main.py", line 4, in <module>
extractor.raw_features('./files/13.exe')
File "...\.venv\lib\site-packages\ember\features.py", line 540, in raw_features
lief_binary = lief.PE.parse(list(bytez))
TypeError: ['.', '/', 'f', 'i', 'l', 'e', 's', '/', '1', '3', '.', 'e', 'x', 'e']
from ember.
I thought function automatically read the PE file in it. It is fixed by sending read file as a parameter. Thanks.
from ember import PEFeatureExtractor
extractor = PEFeatureExtractor()
with open('files/13.exe', 'rb') as f:
print(extractor.raw_features(f.read()))
from ember.
Related Issues (20)
- AttributeError: module 'ember' has no attribute 'create_vectorized_features' HOT 10
- error: subprocess-exited-with-error (lief) HOT 2
- create_vectorized_features error HOT 7
- module 'lief' has no attribute 'bad_format' HOT 2
- Problem with run classify_binaries.py URGENT
- How to extract raw feature from a set of PE binaries? HOT 2
- How can I use .features script to extract features from a malware sample I already have using the same way ember does?
- Extracted raw features does match dataset features
- how to uninstall ember
- Why "train model" runs so fast?
- Can't import the library on Google Colab
- How to get the original bytes of the PE file. I want to covert a file to a gray image. HOT 5
- How to map samples in data set to their SHA256 hash?
- Define the information represented on the malware vector? HOT 3
- What is the license of the ember/features.py file?
- The train_ember.py file is not installed HOT 2
- Dependencies no longer declared in setuptools
- NumPy 1.24 compatibility HOT 2
- Sharing datasets over BitTorrent
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 ember.