mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-04-28 03:26:08 -04:00
9 lines
175 B
C
9 lines
175 B
C
/* Get stack pointer of the system(Unix/Linux) */
|
|
#iclude <stdio.h>
|
|
unsigned long get_sp(void) {
|
|
__asm__("movl %esp,%eax");
|
|
}
|
|
void main() {
|
|
printf("0x%x\n", get_sp());
|
|
}
|