Academy STACK-BASED BUFFER OVERFLOWS

I am at the last lab currently and I managed to run overflow with 2 different payloads which is all good and fun, but both shells that I get from these payloads are still for user htb-student… It does not escalate the privilege to root… am I doing something wrong?

do you know how to get the answer of this question.

Submit the size of the stack space after overwritting the EIP as the answer. (Format: 0x00000)

It’s in generating shellcode section

info proc stat
OR
info proc status

How would you calculate the values given from those commands? Cannot seem to get the right answer… maybe formatting issues?

I think its in KBs you need to convert it to Bytes or vice versa don’t remember

do you can listening shell from machine?? i’m stuck in that