← All talks

ioctl Structure Explained #shorts

BSides Frankfurt1:117 viewsPublished 2026-01Watch on YouTube ↗
About this talk
Understanding the structure for ioctl communication: package sending, structure definition, and dispatcher functions. Device_io_ctrl chooses between control codes like read/write memory and terminate process. #BsidesFrankfurt #Bsides #BsidesFra #JuanSacco
Show transcript [en]

Then a structure is this is the structure that we're going to use to communicate. So basically we send a package and then that package needs to have a structure. You define the structure that the package is going to have right and then this is the structure for that IOCL and then uh the major functions create IO close IO and then the dispatcher device IO control. So device IO control is the one you have you see here switch control code and between the control code is going to choose between the control codes here 775 776 and so if that switch is like a nested if um it's going to go to read memory if the user

mode ask for 779 then it's going to go to terminate process 78 is going to go to BR memory right and then it's going to run this function so the structure is create driver uh IO device control and then the dispatcher and then that's the custom code yeah because otherwise involves is mostly a structure yeah Right.