GithubHelp home page GithubHelp logo

Comments (3)

bootleg avatar bootleg commented on May 19, 2024 1

Hi @tonybounty,

indeed dynamically allocated code is complex to handle and basically breaks ret-sync dispatching based on module names. Windbg offers a powerful API IDebugSymbols3::AddSyntheticModule to handle these situations. To the best of my knowledge there is not something similar in the x64dbg API.

However with the x64dbg plugin you can try the following workaround:

  • syncmodauto off
  • idblist
  • idbn xx

I've just added the syncmodauto command to x64dbg in the commit b1b7be1 . It tells ret-sync to stop automatically resolving and switching modules/idb.

With idblist you get the list of all the idb attached to the dispatcher (if you have more than one)

With idbn you force syncing with the idb you selected at the previous step; for example idbn 0 to select the first one.

It should do the trick.

from ret-sync.

bootleg avatar bootleg commented on May 19, 2024

closing this one as it seems ok with the workaround. Please reopen if necessary.

from ret-sync.

Kojuda avatar Kojuda commented on May 19, 2024

I have tried several things :

  • Loading the injected PE as segment at the same loading offset inside an IDB of the victim process
  • Create a IDB with the extracted injected PE with the same base address and the same name of the debugged process in x64dbg
  • Load the injected PE as an external binary inside the extracted process.

I have extracted all of them with PE-Sieve that gives the better results. The mentioned commands above don't prevent the error message "Could not get module base..."

I don't know how to handle this since a need to debug the running victim process.

from ret-sync.

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.