hugsy / gef-extras

Extra goodies for GEF to (try to) make GDB suck even less
https://hugsy.github.io/gef-extras
MIT License
148 stars 50 forks source link

libc_function_args does not respect context.libc_args #93

Closed MrQubo closed 9 months ago

MrQubo commented 9 months ago

Bug Report

Step 1: Describe your environment

Step 2: Describe your problem

libc_function_args does not respect context.libc_args and the error message is misleading saying that it does. The path is hardcoded and it uses __file__ but that doesn't work for me, I've added prints, and there are the values of the variables used:

GLIBC_FUNCTION_ARGS_CURRENT_FILE = PosixPath('/home/arch/Documents/CTFs/lib/gef/gef.py')
GLIBC_FUNCTION_ARGS_CURRENT_DIRECTORY = PosixPath('/home/arch/Documents/CTFs/lib/gef')

This refers to gef installation, which is a wrong path.

MrQubo commented 9 months ago

Seems like the module is broken anyway. x86_64 calling convention is wrong. I'll just create PR with all the fixes if I get it working.