All Questions
9 questions
1
vote
1
answer
120
views
Why does this x64 stack have other bytes and seems to be in reverse order?
I wrote the following small C program and you can also see the stack in the screenshot. My question is twofold:
How come there are entire rows of other data between the 3 stack strings?
Why is my ...
3
votes
1
answer
327
views
Why EIP is being overwritten before local buffer ends?
I am doing a simple buffer overflow exercise, here is the source:
//vuln.c
#include <stdio.h>
#include <string.h>
int main(int argc, char* argv[]) {
char buf[256];
strcpy(buf,argv[...
1
vote
1
answer
424
views
Find out if address store in heap or stack
While dynamic debugging with ida and gdb-server on binary file running on linux , I saw address that store some value.
How can I know if this address allocated in stack or in heap?
1
vote
1
answer
416
views
radare2 shows main function arguments argv as pointer to char on the stack, not as pointer to pointer to char
Well, I've been digging around process command line arguments as well as environment variables a bit these last days, especially looking up the way main function arguments were pushed onto the stack.
...
0
votes
1
answer
97
views
What is a good resource to learn about how the call stack works while programming in C?
Sorry if this is a duplicate and please point me in the right direction if so. I have a strong foundation in C programming and I know how memory is allocated on the stack for variables/arrays/...
1
vote
0
answers
2k
views
My core dump's backtrace stops to a signal handler, what can I do?
I obtained an ELF core dump that was provoked by fuzzing a proprietary server. As I do not have access anymore to the machine that hosted this server, and the server is part of a tightly coupled set ...
1
vote
1
answer
6k
views
Passing argument through registers instead of the stack
I'm learning (and re-learning) C and assembly, and I came across a difference between what I've been taught and the actual result I have.
Some code:
int test(int a, int b){
return a + b;
}
int ...
5
votes
1
answer
3k
views
Writing an exploit for sample-application
I understand the principles of exploiting a classical stack-based buffer-overflow, and now I want to practice it. Therefore I wrote the following test-application:
#include <stdio.h>
#include &...
1
vote
2
answers
137
views
ELF File format Two terminating null dword towards 0xc0000000?
While I was reversing an elf binary, I tried to manually compute my environment variable's address. Therefore I found this documentation and we're said that there is one NULL DWORD at the end of the ...