Git Product home page Git Product logo

Comments (7)

0xShad3 avatar 0xShad3 commented on June 8, 2024

I can go through the code fixing this type of version mismatches , similar issues etc and submit a PR if that's indeed a valid issue and I haven't done anything insanely stupid.

from gef-extras.

hugsy avatar hugsy commented on June 8, 2024

You need to use the version of gef from the dev branch.

from gef-extras.

jrozner avatar jrozner commented on June 8, 2024

Switching over to the dev branch it looks like it's still broken but for a different reason. get_main_arena seems to have been removed in 11a68a2f1264608e343e3a95a7a9d34a081d682c and replaced with get_glibc_arena. I tried simply swapping out the function name but that doesn't seem to be compatible. When I try to execute I'm getting

[!] Command 'visualize-libc-heap-chunks' failed to execute properly, reason: Cannot access memory at address 0x56277cea2ff0

from gef-extras.

hugsy avatar hugsy commented on June 8, 2024

Using dev I could repro it was not working properly due to a recent code change in gef.

from gef-extras.

hugsy avatar hugsy commented on June 8, 2024

Should be fixed by 041fc86 , feel free to check and close if is.

Make sure you use gef from dev

from gef-extras.

jrozner avatar jrozner commented on June 8, 2024

It doesn't seem to be fixed

[!] Command 'visualize-libc-heap-chunks' failed to execute properly, reason: Cannot access memory at address 0x55b18db0dff0
gef➤  vmmap
[ Legend:  Code | Heap | Stack ]
Start              End                Offset             Perm Path
0x000055b18cf75000 0x000055b18cf76000 0x0000000000000000 r-- /home/jrozner/tsgctf2021/pwn/cheap/cheap
0x000055b18cf76000 0x000055b18cf77000 0x0000000000001000 r-x /home/jrozner/tsgctf2021/pwn/cheap/cheap
0x000055b18cf77000 0x000055b18cf78000 0x0000000000002000 r-- /home/jrozner/tsgctf2021/pwn/cheap/cheap
0x000055b18cf78000 0x000055b18cf79000 0x0000000000002000 r-- /home/jrozner/tsgctf2021/pwn/cheap/cheap
0x000055b18cf79000 0x000055b18cf7a000 0x0000000000003000 rw- /home/jrozner/tsgctf2021/pwn/cheap/cheap
0x000055b18db0e000 0x000055b18db2f000 0x0000000000000000 rw- [heap]
0x00007fdbcf9fe000 0x00007fdbcfa23000 0x0000000000000000 r-- /usr/lib/x86_64-linux-gnu/libc-2.31.so
0x00007fdbcfa23000 0x00007fdbcfb9b000 0x0000000000025000 r-x /usr/lib/x86_64-linux-gnu/libc-2.31.so
0x00007fdbcfb9b000 0x00007fdbcfbe5000 0x000000000019d000 r-- /usr/lib/x86_64-linux-gnu/libc-2.31.so
0x00007fdbcfbe5000 0x00007fdbcfbe6000 0x00000000001e7000 --- /usr/lib/x86_64-linux-gnu/libc-2.31.so
0x00007fdbcfbe6000 0x00007fdbcfbe9000 0x00000000001e7000 r-- /usr/lib/x86_64-linux-gnu/libc-2.31.so
0x00007fdbcfbe9000 0x00007fdbcfbec000 0x00000000001ea000 rw- /usr/lib/x86_64-linux-gnu/libc-2.31.so
0x00007fdbcfbec000 0x00007fdbcfbf2000 0x0000000000000000 rw-
0x00007fdbcfbfc000 0x00007fdbcfbfd000 0x0000000000000000 r-- /usr/lib/x86_64-linux-gnu/ld-2.31.so
0x00007fdbcfbfd000 0x00007fdbcfc20000 0x0000000000001000 r-x /usr/lib/x86_64-linux-gnu/ld-2.31.so
0x00007fdbcfc20000 0x00007fdbcfc28000 0x0000000000024000 r-- /usr/lib/x86_64-linux-gnu/ld-2.31.so
0x00007fdbcfc29000 0x00007fdbcfc2a000 0x000000000002c000 r-- /usr/lib/x86_64-linux-gnu/ld-2.31.so
0x00007fdbcfc2a000 0x00007fdbcfc2b000 0x000000000002d000 rw- /usr/lib/x86_64-linux-gnu/ld-2.31.so
0x00007fdbcfc2b000 0x00007fdbcfc2c000 0x0000000000000000 rw-
0x00007ffe02324000 0x00007ffe02345000 0x0000000000000000 rw- [stack]
0x00007ffe02387000 0x00007ffe0238b000 0x0000000000000000 r-- [vvar]
0x00007ffe0238b000 0x00007ffe0238c000 0x0000000000000000 r-x [vdso]

from gef-extras.

hugsy avatar hugsy commented on June 8, 2024

Re-tested and it works as expected.
If it fails provide a complete description so we can try reproduce.

Note it should go without saying that if the heap is corrupted (in the case of a heap corruption exploit dev for instance), there is no way for this command to work.

from gef-extras.

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.