Comments (2)
I'm just another user of pedump, but this doesn't seem like something that should be native to pedump, considering how trivial it is to process an archive.
The following code is (untested, and uncompiled even) a rough idea of how you would do this with an archive, checking for all *.dll, *.exe, and *.sys files within. You could also simply ignore the filename, and pass all the files to pedump (since you're talking about malicious artifacts which may not have correct naming), making sure you've got begin/rescue in place to handle pedump throwing an error.
Zip::InputStream.open("my.zip") do |io|
while entry = io.get_next_entry
if !entry.symlink? && entry.file? && entry.name ~= /\.(exe|dll|sys)$/
# lib/pedump.rb may need extended to know about ZipInputStream, currently it
# knows only about String (open a file) and ::IO,
# However, it has a default fallback that may handle ZipInputStream
PEdump.dump(entry.get_input_stream)
end
end
end
-- CyberTech
from pedump.
I strongly agree with @CyberTech that zip file reading can and should be implemented outside of pedump.
from pedump.
Related Issues (13)
- Source code of pedump.me? HOT 3
- "Foremost" web section will be ever released on this command line version ? HOT 1
- Trojan HOT 1
- data_dir_15_entries.exe being detected as malware
- Export digital signature to der format HOT 1
- Malicious ads on pedump.me HOT 7
- test on ARM HOT 1
- pedump.me site is down HOT 4
- Cannot open image ... HOT 1
- pedump.me not working since over a year HOT 6
- Extract the resources (.rsrc section) from PE file HOT 3
- Authenticode signing check 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 pedump.