Realistic stack layouts
This commit is contained in:
parent
6f226c2845
commit
541a979646
@ -3,8 +3,8 @@ digraph G {
|
||||
shape="plaintext"
|
||||
label=<
|
||||
<table border='1' cellborder='1'>
|
||||
<tr><td>data1</td><td>0xFE</td><td><- SP</td></tr>
|
||||
<tr><td>data1</td><td>0xFF</td><td><- BP</td></tr>
|
||||
<tr><td>argc</td><td>0xFE</td><td>← SP (main)</td></tr>
|
||||
<tr><td>argv</td><td>0xFF</td><td>← BP (main)</td></tr>
|
||||
</table>
|
||||
>];
|
||||
}
|
||||
|
@ -3,13 +3,14 @@ digraph G {
|
||||
shape="plaintext"
|
||||
label=<
|
||||
<table border='1' cellborder='1'>
|
||||
<tr><td>data2</td><td>0xF9</td><td><- SP</td></tr>
|
||||
<tr><td>data2</td><td>0xFA</td><td><- BP</td></tr>
|
||||
<tr><td>buf</td><td>0xC8</td><td>← SP (vuln)</td></tr>
|
||||
<tr><td>buf</td><td>...</td><td></td></tr>
|
||||
<tr><td>buf</td><td>0xFA</td><td>← BP (vuln)</td></tr>
|
||||
<tr><td>[old IP]</td><td>0xFB</td><td></td></tr>
|
||||
<tr><td>*0xFE</td><td>0xFC</td><td></td></tr>
|
||||
<tr><td>*0xFF</td><td>0xFD</td><td></td></tr>
|
||||
<tr><td>data1</td><td>0xFE</td><td></td></tr>
|
||||
<tr><td>data1</td><td>0xFF</td><td></td></tr>
|
||||
<tr><td>[BP (main)]</td><td>0xFC</td><td></td></tr>
|
||||
<tr><td>[*input]</td><td>0xFD</td><td></td></tr>
|
||||
<tr><td>argc</td><td>0xFE</td><td></td></tr>
|
||||
<tr><td>argv</td><td>0xFF</td><td></td></tr>
|
||||
</table>
|
||||
>];
|
||||
}
|
||||
|
@ -3,13 +3,14 @@ digraph G {
|
||||
shape="plaintext"
|
||||
label=<
|
||||
<table border='1' cellborder='1'>
|
||||
<tr><td>data2</td><td>0xF9</td><td><- SP</td></tr>
|
||||
<tr><td>[payload]</td><td>0xFA</td><td><- BP</td></tr>
|
||||
<tr><td>[payload]</td><td>0xC8</td><td>← SP (vuln)</td></tr>
|
||||
<tr><td>[payload]</td><td>...</td><td></td></tr>
|
||||
<tr><td>[payload]</td><td>0xFA</td><td>← BP (vuln)</td></tr>
|
||||
<tr><td>[controlled IP]</td><td>0xFB</td><td></td></tr>
|
||||
<tr><td>*0xFE</td><td>0xFC</td><td></td></tr>
|
||||
<tr><td>*0xFF</td><td>0xFD</td><td></td></tr>
|
||||
<tr><td>data1</td><td>0xFE</td><td></td></tr>
|
||||
<tr><td>data1</td><td>0xFF</td><td></td></tr>
|
||||
<tr><td>[BP (main)]</td><td>0xFC</td><td></td></tr>
|
||||
<tr><td>[*input]</td><td>0xFD</td><td></td></tr>
|
||||
<tr><td>argc</td><td>0xFE</td><td></td></tr>
|
||||
<tr><td>argv</td><td>0xFF</td><td></td></tr>
|
||||
</table>
|
||||
>];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user