Add dot sources

This commit is contained in:
Valentin Brandl 2019-12-10 20:36:14 +01:00
parent 0c5ae64bbe
commit ad8efa3d96
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D
5 changed files with 53 additions and 0 deletions

1
work/dot/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.pdf

12
work/dot/Makefile Normal file
View 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
View File

@ -0,0 +1,10 @@
digraph G {
parent [
shape="plaintext"
label=<
<table border='1' cellborder='1'>
<tr><td>data1</td><td>0xFE</td><td>&lt;- SP</td></tr>
<tr><td>data1</td><td>0xFF</td><td>&lt;- BP</td></tr>
</table>
>];
}

15
work/dot/call.dot Normal file
View File

@ -0,0 +1,15 @@
digraph G {
parent [
shape="plaintext"
label=<
<table border='1' cellborder='1'>
<tr><td>data2</td><td>0xF9</td><td>&lt;- SP</td></tr>
<tr><td>data2</td><td>0xFA</td><td>&lt;- 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
View File

@ -0,0 +1,15 @@
digraph G {
parent [
shape="plaintext"
label=<
<table border='1' cellborder='1'>
<tr><td>data2</td><td>0xF9</td><td>&lt;- SP</td></tr>
<tr><td>[payload]</td><td>0xFA</td><td>&lt;- 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>
>];
}