Skip to content

Commit 753c633

Browse files
committed
Added script to get stack address
1 parent 25b1398 commit 753c633

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

sp.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
unsigned long get_sp(void) {
2+
__asm__("movl %esp,%eax");
3+
}
4+
void main() {
5+
printf("0x%x\n", get_sp());
6+
}

0 commit comments

Comments
 (0)