Add dot sources
This commit is contained in:
parent
0c5ae64bbe
commit
ad8efa3d96
1
work/dot/.gitignore
vendored
Normal file
1
work/dot/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.pdf
|
12
work/dot/Makefile
Normal file
12
work/dot/Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
.PHONY: clean build
|
||||
|
||||
DOT = $(wildcard *.dot)
|
||||
PDF = $(DOT:.dot=.pdf)
|
||||
|
||||
build: $(PDF)
|
||||
|
||||
%.pdf: %.dot
|
||||
dot -Tpdf $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f $(PDF)
|
10
work/dot/before.dot
Normal file
10
work/dot/before.dot
Normal file
@ -0,0 +1,10 @@
|
||||
digraph G {
|
||||
parent [
|
||||
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>
|
||||
</table>
|
||||
>];
|
||||
}
|
15
work/dot/call.dot
Normal file
15
work/dot/call.dot
Normal file
@ -0,0 +1,15 @@
|
||||
digraph G {
|
||||
parent [
|
||||
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>[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>
|
||||
</table>
|
||||
>];
|
||||
}
|
15
work/dot/exploit.dot
Normal file
15
work/dot/exploit.dot
Normal file
@ -0,0 +1,15 @@
|
||||
digraph G {
|
||||
parent [
|
||||
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>[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>
|
||||
</table>
|
||||
>];
|
||||
}
|
Loading…
Reference in New Issue
Block a user