Structures
Last updated
Last updated
_IO_FILE
this is the basic structure that then be extended to other structure and definition which can be seen in the source code here:
one can use pwntools built-in class to craft FILE payloads
_IO_jump_t
this is an array or look up tables of methods and macros that is being used by the FILE structure. these tables have the same methods, these are (in order of the array):
dummy
dummy2
finish
overflow
underflow
uflow
pbackfail
xsputn
xsgetn
seekoff
seekpos
setbuf
sync
doallocate
read
write
seek
close
stat
showmanyc
imbu
those are basically the interfaces that all FILEs can call, however there are multiple vtables that are composed of these methods but they point to a different function and thus have a different implementation, those list can be seen in the source code below:
_IO_wide_data
this is somewhat similar but not the same to _IO_FILE
and I think is built to handle wide characters.
unlike _IO_FILE
pwntools doesn't have a class that support this structure, however I made this boilerplate to craft fake wide_data
structure: