I am working on a security project for school and need to overflow a buffer, I therefore need to overwrite the eip, but for some reason I can't. The A's that I overwrite the buffer with are spread all over the address space. I am assuming that the Pointer Obfuscation feature in Ubuntu is enabled. Is there a way to disable this. I have the following command to compile my program.
gcc -ggdb -fno-stack-protector -z execstack -o overflow overflow.c
I also have the aslr disabled. My code is a simple strcpy(buffer, argv), and a print statement. It should ideally crash when it gets the input of 24 As.
Any help will be greatly appreciated.