From ad8efa3d969a1a648642ff9ff5f732678da28d85 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Tue, 10 Dec 2019 20:36:14 +0100 Subject: [PATCH] Add dot sources --- work/dot/.gitignore | 1 + work/dot/Makefile | 12 ++++++++++++ work/dot/before.dot | 10 ++++++++++ work/dot/call.dot | 15 +++++++++++++++ work/dot/exploit.dot | 15 +++++++++++++++ 5 files changed, 53 insertions(+) create mode 100644 work/dot/.gitignore create mode 100644 work/dot/Makefile create mode 100644 work/dot/before.dot create mode 100644 work/dot/call.dot create mode 100644 work/dot/exploit.dot diff --git a/work/dot/.gitignore b/work/dot/.gitignore new file mode 100644 index 0000000..a136337 --- /dev/null +++ b/work/dot/.gitignore @@ -0,0 +1 @@ +*.pdf diff --git a/work/dot/Makefile b/work/dot/Makefile new file mode 100644 index 0000000..170f4fc --- /dev/null +++ b/work/dot/Makefile @@ -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) diff --git a/work/dot/before.dot b/work/dot/before.dot new file mode 100644 index 0000000..63b3926 --- /dev/null +++ b/work/dot/before.dot @@ -0,0 +1,10 @@ +digraph G { + parent [ + shape="plaintext" + label=< + + + +
data10xFE<- SP
data10xFF<- BP
+ >]; +} diff --git a/work/dot/call.dot b/work/dot/call.dot new file mode 100644 index 0000000..5ddb455 --- /dev/null +++ b/work/dot/call.dot @@ -0,0 +1,15 @@ +digraph G { + parent [ + shape="plaintext" + label=< + + + + + + + + +
data20xF9<- SP
data20xFA<- BP
[old IP]0xFB
*0xFE0xFC
*0xFF0xFD
data10xFE
data10xFF
+ >]; +} diff --git a/work/dot/exploit.dot b/work/dot/exploit.dot new file mode 100644 index 0000000..6e9eb18 --- /dev/null +++ b/work/dot/exploit.dot @@ -0,0 +1,15 @@ +digraph G { + parent [ + shape="plaintext" + label=< + + + + + + + + +
data20xF9<- SP
[payload]0xFA<- BP
[controlled IP]0xFB
*0xFE0xFC
*0xFF0xFD
data10xFE
data10xFF
+ >]; +}