Comments (4)
LOL. This isn't exactly my problem - the ThisWorkbook
stream has been fucked up by Kaspersky's anti-virus program, zapping with zeroes all the structures that pcodedmp
normally parses:
I should probably add some kind of sanity check and abort the processing of the stream if this kind of idiocy is encountered, but it's not too urgent; the current error is probably good enough.
from pcodedmp.
Good catch, I hadn't looked at it in a hex viewer... :-)
So if we get an error in pcodedmp and if the stream starts with zeroes and contains "Kaspersky", then we know what it is. ;-)
However, it's strange the pcode is wiped but not the compressed VBA (I mean, not fully).
from pcodedmp.
I am more and more inclined not to do anything about this... I mean, if I add a specific check that a pointer I'm trying to read from points outside the stream everywhere where this can happen, the program will become twice the size and much less readable. Now it just has a catch-all error.
Honestly, I had a better opinion of Kaspersky's ability to handle VBA. They seemed to be doing better than this in the past.
The source is not malicious. This makes me think that this is not the original source. Most likely, there was something malicious in the module - that's why KAV zapped the p-code area (and lots of stuff before it) and overwrote the source code area with some innocent source.
Seems stupid, though. In such cases (when you can't remove the module, because ThisWorkbook
has to be present), we overwrite it with a complete, valid, empty module that our scanner carries within itself.
from pcodedmp.
I've pushed a change to the develop
branch that makes the program display are more meaningful error message when trying to read past the end of a stream. Merging with master
and releasing a new version o PyPi will have to wait until there are more substantial changes.
from pcodedmp.
Related Issues (15)
- Wrong object names HOT 15
- Cross comparison with Open Office HOT 12
- Python 2.7 support broken HOT 2
- pcodedmp can't be installed in either Ubuntu and Windows 10 HOT 2
- pcodedmp can't disassemble VBA code HOT 5
- Redundant parens in README sample code HOT 1
- A mysterious question, where is the pcode document? HOT 2
- license question HOT 1
- Remove cycle between oletools and pcodedmp HOT 1
- Code Review
- Support for MS Access' `Option Compare Database` HOT 1
- Website installation instructions are incomplete HOT 5
- Error: unpack_from requires a buffer of at least 2 bytes. HOT 3
- Skip win_unicode_console import for linux HOT 13
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 pcodedmp.