Giter Site home page Giter Site logo

Comments (6)

mwpcheung avatar mwpcheung commented on May 28, 2024 1

I'm very sorry for the win xp sp3 ntkrnl。 my computer was injured by virus.
the krnl file is an error pe file.

from pe-parse.

jkolek avatar jkolek commented on May 28, 2024 1

Ok, I will take a look.

from pe-parse.

 avatar commented on May 28, 2024 1

This issue has been fixed in parse.cpp since #56. Fixed in pepy since #73 with change to #define PEPY_PARSED_GET.

from pe-parse.

jkolek avatar jkolek commented on May 28, 2024

This issue appears when using pepy?

from pe-parse.

jkolek avatar jkolek commented on May 28, 2024

I'm not able to reproduce the issue, dump-prog, pepy test and IDA Pro are outputting the same results to me for ntoskrnl.exe.

from pe-parse.

mwpcheung avatar mwpcheung commented on May 28, 2024

the bug rehappened to me... export table calc error.
function name bool getExports(parsed_pe *p) + 211 lines

    ::uint32_t symRVA;
    if (!readDword(eatSec.sectionData, eatOff + eatIdx, symRVA)) {
      return false;
    }

    bool isForwarded =
        ((symRVA >= exportDir.VirtualAddress) &&
         (symRVA < exportDir.VirtualAddress + exportDir.Size));

    if (!isForwarded) {
      ::uint32_t symVA;
      if (p->peHeader.nt.OptionalMagic == NT_OPTIONAL_32_MAGIC) {
        symVA = symRVA + p->peHeader.nt.OptionalHeader.ImageBase;
      } else if (p->peHeader.nt.OptionalMagic == NT_OPTIONAL_64_MAGIC) {
        symVA = symRVA + p->peHeader.nt.OptionalHeader64.ImageBase;
      } else {
        return false;
      }

      exportent a;

      a.addr = symVA;
      a.symbolName = symName;
      a.moduleName = modName;
      p->internal->exports.push_back(a);

exportent.addr is 64bit uint. symVA you defined as uint32_t.
uint32t = uint32_t + 64bit imagebase. then bit lose. bug happens to windows x64 ntoskrnl.exe win10
2015 11

from pe-parse.

Related Issues (20)

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.