Code Monkey home page Code Monkey logo

cs_coffloader's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cs_coffloader's Issues

leak of coff data in parseCOFF() due to missing call to Marshal.FreeHGlobal

In parseCOFF a call to Marshal.AllocHGlobal need an accompanying call to Marshal.FreeHGlobal on unmanagedData to clean up the allocation.

!            IntPtr unmanagedData = Marshal.AllocHGlobal(data.Length);   <<< need to call Marshal.FreeHGlobal when done
            Marshal.Copy(data, 0, unmanagedData, data.Length);
            byte* coff_data = (byte*)unmanagedData.ToPointer();
            coff_header = (COFF_FILE_HEADER*)coff_data;

https://github.com/trustedsec/CS_COFFLoader/blob/c7228c6698b8e982495fd514e65cac9abd8aee72/src/CoffParser.cs#LL199C44-L199C56

Parsing of (some) BOFs fails

Hey,

I faced the situation, that some BOFs fail being parsed and therefore never get executed.

For example the adcs_enum bof fails to get parsed:

grafik

From debug output we saw, that this is somehow related to parsing of the BOF libraries:

grafik

Which is this part of the code.

Any ideas/hints on how to fix this would be appreciated.

Greetings

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.