Coder Social home page Coder Social logo

Comments (4)

bontchev avatar bontchev commented on May 22, 2024

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:

Clipboard01

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.

decalage2 avatar decalage2 commented on May 22, 2024

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.

bontchev avatar bontchev commented on May 22, 2024

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.

bontchev avatar bontchev commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.