Skip to content

Commit e49bd3b

Browse files
authored
<Added writeup for sim-worker/ commit> (njitacm#12)
* <Added writeup for sim-worker/ commit> * Update README.md
1 parent 6ab6cc6 commit e49bd3b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Diff for: writeups/sim-worker/sirTensor/README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# sirTensor's Write-up for sim-worker
2+
3+
1. run the file in gdb
4+
```
5+
$ gdb ./sim-worker
6+
```
7+
8+
2. Set breakpoint at 0x8001253
9+
```
10+
(gdb) b *0x8001235
11+
```
12+
13+
3. Find out where our variable storing the amount of doge coins we have in the stack.
14+
```
15+
(gdb) x/4xw $sp
16+
```
17+
18+
4. Modify our dogecoins by setting it such that it is greater than 10000000.
19+
```
20+
set *((int *) 0x7ffffffee5b8) = 10000001
21+
```
22+
23+
5. ```continue``` our program and buy flag
24+
```
25+
jctf{TypesHaveOverflows}
26+
```

0 commit comments

Comments
 (0)