Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Layle | Luca
    @ioncodes
    yeah
    Simonas G
    @SlowLogicBoy
    well dnSpy has debugger plugin which uses dnDbg so that might help
    Layle | Luca
    @ioncodes
    if you dont care about the security you could just get a Process.Modules list
    yeah
    also, you can hide stuff if a debugger is a attached
    Simonas G
    @SlowLogicBoy
    also @0xd4d is rewriting some debugging stuff so you could take a look at https://github.com/0xd4d/dnSpy/tree/dbg
    Layle | Luca
    @ioncodes
    I'd personally just unpack it via c# and maybe with help of dnpatch
    futex
    @futex
    ok thank you
    yeah but how you can do it only with c#?
    Simonas G
    @SlowLogicBoy
    which part?
    futex
    @futex
    how you can break a assembly execution when it load a new modules
    Layle | Luca
    @ioncodes
    you would need to write a wrapper such as dndbg
    Andrew Shulgin
    @andrew-shulgin
    Hello! I am trying to get an integer operand value with GetOperand, but I'm getting an error:
    System.NullReferenceException: 'Object reference not set to an instance of an object.'
    on
    return method.Body.Instructions[target.Index].Operand.ToString();.
    I understand that it's because the operand is "optimezed" in terms of dnSpy.
    In dnSpy I'd click "Simplify All Instructions" and the value would be revealed.
    How can I do the same thing using dnPatch?
    Thank you for your help!
    Andrew Shulgin
    @andrew-shulgin
    Solved! :smile:
    I've added a GetLdcI4Operand function to dnPatch, it uses GetLdcI4Value of Instruction.
    Pull request coming!
    Andrew Shulgin
    @andrew-shulgin
    Pull request delivered
    Thank you for dnPatch!
    Layle | Luca
    @ioncodes
    Thanks for the PR!
    GaryNg
    @garyng
    Hi!
    May I know how to get the constructor of a class?
    Layle | Luca
    @ioncodes
    its name is always .ctor
    GaryNg
    @garyng
    Ahwwwwww
    Thanks!
    I thought it has the same name as the class nameπŸ˜…πŸ˜…
    Layle | Luca
    @ioncodes
    Nope :p
    GaryNg
    @garyng
    Thanks!😁
    Layle | Luca
    @ioncodes
    np :h
    • :)
    Layle | Luca
    @ioncodes
    Holidays started for me so I got time to look into dnpatch again :D
    Layle | Luca
    @ioncodes
    For the people that wanted to use BuildMemberRef: It has been fixed and renamed to BuildCall
    dividereis
    @dividereis
    Thanks, Luca
    Layle | Luca
    @ioncodes
    np :)
    dividereis
    @dividereis
    I'll test it out now
    Layle | Luca
    @ioncodes
    Let me know :D
    dividereis
    @dividereis
    What's that 'cool story' btw? You never said it
    Layle | Luca
    @ioncodes
    read your PMs xD
    i messaged you privately
    DenJur
    @DenJur
    Hi. Just found your library and it looks good (reminds my of my version of the same idea I made about 1.5-2 years ago). Are there any helper methods to make conditional jumping less of a hassle?
    Layle | Luca
    @ioncodes
    no but it actually is a good idea !
    im currently rewriting the whole library for the final version 1.0.0, you can find it on the branch 'v1'. Would you mind creating and issue with the idea and maybe a small example how you would like to use it?
    maybe i can even add it today
    Layle | Luca
    @ioncodes
    thanks :) @DenJur
    DenJur
    @DenJur
    np. Hope my idea is not too dumb. Din't put much thought in it :D
    Layle | Luca
    @ioncodes
    it's not :P
    @/all You can vote here if v1 should instroduce InstructionSet: ioncodes/dnpatch#31
    DenJur
    @DenJur
    Have you looked at all into possibly doing some code generation via roslyn? I didn't think it was possible until dnSpy added it so I have a dream...
    Layle | Luca
    @ioncodes
    code generation has been introduced with roslyn in the unit tests
    i havent implemented it yet, because i dont know any scenarios, but you can hit me up with some and create issues with them
    DenJur
    @DenJur
    I recently needed to do whole method body replace with a decent amount of code. So was trying to see if its possible to generate il from C# at runtime and then patch. Makes it a lot easier to support in a long run.
    Layle | Luca
    @ioncodes
    already added