aboutsummaryrefslogtreecommitdiff
path: root/slides/2018-software-security/demo/cmd_simple
blob: 266535e9567024b355988e4e376476b518b58099 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# compile
gcc -std=c99 -fno-stack-protector -Wno-deprecated-declarations -ggdb -o simple simple.c

# run
gdb ./simple

# demo commands
list main
list greeter
list fun

disassemble main
disassemble greeter
disassemble fun

info register

b main
b greeter
b fun

run

# show
- return address / register values
- 11a -> "8a"
- segfault
- jump fun