blob: b2cbfcb6d6f0030d62a6c7558b4f524422f628a7 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
|
x &main_arena
x/100x &main_arena
print main_arena
fastbins
q
fastbins
fastbins
c
exit
quit
quit
fastbins
print main_arena
q
print main_arena
q
vis_heap_chunks
print main_arena
db main_arena
db &main_arena
db &main_arena/100
db &main_arena 100
db &main_arena 1000
x main_arena.top
x &main_arena.top
db &main_arena 100
c
fastbins
print main_arena
x main_arena.fasbinsY
x &main_arena.fastbinsY
quit
fastbins
x 0x7f0946700b70
db 0x7f0946700b70 100
q
fastbins
q
fastbins
q
fastbinsx
db &main_arena 100
q
db 0x7f2e5c845b60
0x7f2e5c845b70 + 16
x 0x7f2e5c845b70 + 16
x 0x7f2e5c845b70
x 0x7f2e5c845b70
x 0x7f2e5c845b60
vis_heap_chunks
db 0x7f0ba6e3db70
db 0x555bdeaca000 100
db 0x7f0ba6e3db70
db 0x7f0ba6e3db70 - 8
db 0x7f0ba6e3db70-8
db 0x7f0ba6e3db70-7
q
x 0x7fcf882cbb69
db 0x7fcf882cbb69
q
vis_heap_chunks
print main_arena
q
print main_arena
vis_heap_chunks
q
print main_arena
q
print main_arena
fastbins
r
q
r
c
fastbisn
vis_heap_chunks
fastbins
quit
fastbins
print main_arena
c
print main_arena
q
print main_arena
print main_arena
x malloc_free_hook
x __free_hook
x &__free_hook
x &__free_hook 100
db &__free_hook 100
q
q
q
q
print main_arena
db 0x7f4858584e10
c
print victim
q
fastbins
c
x idx
x chunksize(p)
x chunksize
x p
fastbins
q
x __free_hook
x &__free_hook 100
db &__free_hook 100
db &__free_hook - 100
db &__free_hook-100
db &__free_hook-100 100
print main_arena
x 0x7fca0f75fe10
x/100 0x7fca0f75fe10
x/100 0x7fca0f75fe10-100
c
q
break malloc
c
fastbins
x __free_hook
fastins
fastbins
print main_arena
x 0x7f072b59ee10
break malloc
break free
continue
c
c
c
print main_arena
vis_heap_chunks
vis_heap_chunks
c
vis_heap_chunks
break free
break malloc
c
print main_arena
x &__free_hook - 16
q
print main_arena
vis_heap_chunks
c
c
c
q
db __malloc_hook
db &__malloc_hook
x __malloc_hook
x &__malloc_hook
c
break sysmalloc
c
frame 2
context
c
break main
c
q
x &__malloc_hook
print __malloc_hook
print &__malloc_hook
print __main_arena
print main_arena
print main_arena
x __malloc_hook
x &__malloc_hook
db &__malloc_hook
db &__malloc_hook-100 100
db &__malloc_hook-100 100*8
db &__malloc_hook-100 (100*8)+1
fastbins
c
print main_arena
x __malloc_hook
x &__malloc_hook
db &__malloc_hook-100 (100*8)+1
c
db &__malloc_hook-100 (100*8)+1
print main_arena
x 0x7f5b07a18b40
break malloc
c
c
c
q
break __libc_malloc
break malloc
break __malloc_hook
b __malloc_hook
b &__malloc_hook
b *__malloc_hook
b *&__malloc_hook
c
delete 3
c
pwndbg heap
vis_heap_chunks
print __mallinfo
x __mallinfo
print &__mallinfo
print *__mallinfo
print __mallinfo
print &__mallinfo
print main_arena
c
break malloc
c
x main_arena.top_check
x main_arena.top_chunk
print main_arena
x 0x7f4854db6b40
x 0x7f4854db6b40
x 0x7f4854db6b40
c
x 0x7f4854db6b40
fastbins
c
x 0x7f4854db6b40
c
x 0x7f4854db6b40
x main_arena
x &main_arena
x &__malloc_hook
x main_arena.top
db main_arena.top
c
c
c
q
print __malloc_hook
print __malloc_hook
fastbins
c
fastbins
c
vis_heap_chunks
c
fastbins
r
c
fastbins
print main_arena
vis_heap
c
fastbins
fastbins
c
fastbins
r
c
quit
|