Skip to content
Snippets Groups Projects
Commit 254a0a13 authored by mc2zk's avatar mc2zk
Browse files

Adding 2 scripts for demo. run_gdb.sh takes directory of stratafied exe and...

Adding 2 scripts for demo.  run_gdb.sh takes directory of stratafied exe and invokes gdb -command gdb.demo.script which does some initial setup for the demo, such as setting  symbol-file and appropriate breakpoints for the example.
parent 73349b34
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,9 @@ demos/demo.jan_21_2011/dumbledore.exploits/badA.txt -text
demos/demo.jan_21_2011/dumbledore.exploits/badB.txt -text
demos/demo.jan_21_2011/dumbledore.good_inputs/good.txt -text
demos/demo.jan_21_2011/dumbledore_cmd.c -text
demos/demo.jan_21_2011/gdb.demo.script -text
demos/demo.jan_21_2011/ps_demo.sh -text
demos/demo.jan_21_2011/run_gdb.sh -text
examples/Makefile -text
examples/block_copy.c -text
examples/cmd_args_005.c -text
......
# Author: Michele Co, mc2zk@virginia.edu
# This is a script for running the gdb portion of the demo
# run on the code injection input
# invoked on gdb commandline by run_gdb.sh
# load the symbol file
symbol-file stratafier.o.exe
# add a bp for confined_targ_fetch
b confined_targ_fetch
# the condition should be where the code injection starts
cond 1 PC==0x80c80ce
# clear the screen using the shell command: clear
shell clear
# list the function confined_targ_fetch() for the audience to see
list confined_targ_fetch
#!/bin/sh
# This script will invoke gdb on dumbledore.protected with a gdb script file
#
# Change to appropriate directory
curdir=$PWD
cd $1
STRATA_ANNOT_FILE=a.ncexe.annot STRATA_PC_CONFINE=1 gdb -command ../gdb.demo.script a.stratafied
cd ${curdir}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment