Ok, let's move on; Yamaraj wrote:
I think the number of A it can handle for the EIP to go 41414141 is 268
so if i put
"A"x264+"B"x4 =EIP 42424242
This is the same number that I get as well as others.
Shaun2k2 posted the widechapter tutorial. The method I wanted to try was the jmp esp. It is talked about in this tutorial. He also posted
http://www.elitehaven.net/buf.zip - Buffer Overflows on NT Based Platforms REALLY Explained! This one is very good.
So far we know it takes 268 bytes to completely overwrite EIP, now we need to know how much space beyond 268 that we have available. As I understand it, we want to place our shell code into this space AFTER EIP. So we continue to add AAAA...s until the program no longer crashes. Then we count the amount of AAA's it took after EIP and this is our available space for to work with.
When we eventually jmp esp (We'll have to find a spot that's the same across Windows versions), we'll get to our code.
Paul: You hit that when you go too far past EIP.
T3cHn0b0y: I'm learning this as well and I'm hoping someone will volunteer hard information on some of the questions asked.
Yamaraj: 7FFE0304 can be in anywhere in memory, exe, dll, ect that execution will jump to next.
I'm still waiting on an expert to take the reigns and lead us through. But in case their is none, Im hoping we can do it together. We are going have problems with nulls and buffer size I think.
So lets find our available size and go from there.
If' you're totally lost, read the wide chapter tutorial posted.