-
Notifications
You must be signed in to change notification settings - Fork 0
/
text2.txt
253 lines (234 loc) · 39.2 KB
/
text2.txt
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
Script started on Tue 22 Oct 2019 12:25:14 PM KST
]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ d[Kans1.txt[K[K[K[K[K[K[K[Ktu[Koucb s[Kans1.txt
No command 'toucb' found, did you mean:
Command 'touch' from package 'coreutils' (main)
toucb: command not found
]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ toucb ans1.txt[1P[C[1P ans1.txtc ans1.txth ans1.txt
]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ vim d[Kans1.txt
[?1049h[?1h=[2;1H▽[6n[2;1H [1;1H]11;?[1;49r[?12;25h[?12l[?25h[27m[23m[m[H[2J[?25l[49;1H"ans1.txt" 0L, 0C[>c[2;1H[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [41;1H~ [42;1H~ [43;1H~ [44;1H~ [45;1H~ [46;1H~ [47;1H~ [48;1H~ [m[49;72H0,0-1[9CAll[1;1H[?12l[?25h[?25l[49;1H[1m-- INSERT --[m[49;13H[K[49;72H0,1[11CAll[1;1H[?12l[?25h[?25l0[49;72H1,2[1;2H[?12l[?25h[?25l0[49;74H3[1;3H[?12l[?25h[?25l0[49;74H4[1;4H[?12l[?25h[?25l[1;3H[K[49;74H3[1;3H[?12l[?25h[?25l[49;74H4[1;4H[?12l[?25h[?25l0[49;74H5[1;5H[?12l[?25h[?25l0[49;74H6[1;6H[?12l[?25h[?25l[49;74H7[1;7H[?12l[?25h[?25l0[49;74H8[1;8H[?12l[?25h[?25l0[49;74H9[1;9H[?12l[?25h[?25l[49;74H10[1;10H[?12l[?25h[?25l0[49;75H1[1;11H[?12l[?25h[?25l0[49;75H2[1;12H[?12l[?25h[?25l[49;75H3[1;13H[?12l[?25h[?25l0[49;75H4[1;14H[?12l[?25h[?25l0[49;75H5[1;15H[?12l[?25h[?25l[49;75H6[1;16H[?12l[?25h[?25l0[49;75H7[1;17H[?12l[?25h[?25l0[49;75H8[1;18H[?12l[?25h[?25l[49;75H9[1;19H[?12l[?25h[?25l0[49;74H20[1;20H[?12l[?25h[?25l0[49;75H1[1;21H[?12l[?25h[?25l[49;75H2[1;22H[?12l[?25h[?25l0[49;75H3[1;23H[?12l[?25h[?25l0[49;75H4[1;24H[?12l[?25h[49;1H[K[1;23H[?25l[49;72H1,23[10CAll[1;23H[?12l[?25h[?25l[49;1H[1m-- INSERT --[m[49;72H[K[49;72H1,23[10CAll[1;23H[?12l[?25h[?25l[49;75H4[1;24H[?12l[?25h[?25l[2;1H[K[49;72H2,1 [2;1H[?12l[?25h[49;1H[K[2;1H[?25l[49;72H2,0-1[9CAll[2;1H[?12l[?25h[?25l
00 00 00 00 00 00 00 00[3;24H[K[49;72H3,1 [3;1H[?12l[?25h[?25l
00 00 00 00 00 00 00 00[4;24H[K[49;72H4[4;1H[?12l[?25h[?25l
00 00 00 00 00 00 00 00[5;24H[K[49;72H5[5;1H[?12l[?25h[?25l
00 00 00 00 00 00 00 00[6;24H[K[49;72H6[6;1H[?12l[?25h[?25l
00 00 00 00 00 00 00 00[7;24H[K[49;72H7[7;1H[?12l[?25h[?25l
00 00 00 00 00 00 00 00[8;24H[K[49;72H8[8;1H[?12l[?25h[?25l
00 00 00 00 00 00 00 00[9;24H[K[49;72H9[9;1H[?12l[?25h[?25l[49;72H8[8;1H[?12l[?25h[?25l[49;72H7[7;1H[?12l[?25h[?25l[49;72H6[6;1H[?12l[?25h[?25l[49;72H5[5;1H[?12l[?25h[?25l[49;72H4[4;1H[?12l[?25h[?25l[49;72H3[3;1H[?12l[?25h[?25l[49;72H2,0-1[2;1H[?12l[?25h[?25l[2;48r[48;1H
[1;49r[48;1H[1m[34m~ [m[49;72H[K[49;72H2,1[11CAll[2;1H[?12l[?25h[?25l[49;74H2[2;2H[?12l[?25h[?25l[49;74H3[2;3H[?12l[?25h[?25l[49;72H3[3;3H[?12l[?25h[?25l[49;72H4[4;3H[?12l[?25h[?25l[49;72H5[5;3H[?12l[?25h[?25l[49;72H6[6;3H[?12l[?25h[?25l[49;74H4[6;4H[?12l[?25h[?25l[49;72H[K[49;1H:[?12l[?25hw[?25l[?12l[?25hq[?25l[?12l[?25h[?25l"ans1.txt" 8L, 192C written
[?1l>[?12l[?25h[?1049l]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ s[Kvim s[Kans1.txt
[?1049h[?1h=[2;1H▽[6n[2;1H [1;1H]11;?[1;49r[?12;25h[?12l[?25h[27m[23m[m[H[2J[?25l[49;1H"ans1.txt" 8L, 192C[>c[1;1H00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
[1m[34m~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [41;1H~ [42;1H~ [43;1H~ [44;1H~ [45;1H~ [46;1H~ [47;1H~ [48;1H~ [m[49;72H1,1[11CAll[1;1H[?12l[?25h[?25l[49;72H2[2;1H[?12l[?25h[?25l[49;72H3[3;1H[?12l[?25h[?25l[49;72H4[4;1H[?12l[?25h[?25l[49;72H5[5;1H[?12l[?25h[?25l[49;72H6[6;1H[?12l[?25h[?25l[49;72H7[7;1H[?12l[?25h[?25l[49;72H8[8;1H[?12l[?25h[?25l[49;74H2[8;2H[?12l[?25h[?25l[49;74H3[8;3H[?12l[?25h[?25l[49;74H4[8;4H[?12l[?25h[?25l[49;74H5[8;5H[?12l[?25h[?25l[49;74H6[8;6H[?12l[?25h[?25l[49;74H7[8;7H[?12l[?25h[?25l[49;74H8[8;8H[?12l[?25h[?25l[49;74H9[8;9H[?12l[?25h[?25l[49;74H10[8;10H[?12l[?25h[?25l[49;75H1[8;11H[?12l[?25h[?25l[49;75H2[8;12H[?12l[?25h[?25l[49;75H3[8;13H[?12l[?25h[?25l[49;75H4[8;14H[?12l[?25h[?25l[49;75H5[8;15H[?12l[?25h[?25l[49;75H6[8;16H[?12l[?25h[?25l[49;75H7[8;17H[?12l[?25h[?25l[49;75H8[8;18H[?12l[?25h[?25l[49;75H9[8;19H[?12l[?25h[?25l[49;74H20[8;20H[?12l[?25h[?25l[49;1H[1m-- INSERT --[m[49;13H[K[49;72H8,20[10CAll[8;20H[?12l[?25h[?25l[49;75H1[8;21H[?12l[?25h[?25l[49;75H2[8;22H[?12l[?25h[?25l[49;75H3[8;23H[?12l[?25h[?25l[49;75H4[8;24H[?12l[?25h[?25l[9;1H[K[49;72H9,1 [9;1H[?12l[?25h[49;1H[K[9;1H[?25l[49;72H9,0-1[9CAll[9;1H[?12l[?25h[?25l[49;72H[K[49;1H:[8;1H[K[9;1H[1m[34m~ [m[40;1H[7mans1.txt [+] 9,0-1 Bot[m[41;1H[1m[34m:[m[33mq[m![41;4H[K[42;1H[1m[34m:[m[33mq[m[42;3H[K[43;1H[1m[34m:[m[33mwq[m[43;4H[K[44;1H[1m[34m:[m[44;2H[K[45;1H[1m[34m:
:
:[45;2H~
:~
:~[m
[1m[7m[Command Line] 4,0-1 All[44;2H[?12l[?25h[?25l[m[49;1H[K[49;1H:[?12l[?25hw[?25l[?12l[?25hq[?25l[?12l[?25h[?25l[1m[37m[41mE11: Invalid in command-line window; <CR> executes, CTRL-C quits[44;2H[?12l[?25h[?25l[m[49;1H:[1m[37m[41m1[m[49;2H[K[49;2H[?12l[?25hq[?25l[?12l[?25h![?25l[?12l[?25h[?25l[49;1H[K[49;1H[?1l>[?12l[?25h[?1049l]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ cat ans1.txt
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ d[Kd[Kc[Kvi s[K[K s[Kctarget.txt
[?1049h[?1h=[2;1H▽[6n[2;1H [1;1H]11;?[1;49r[?12;25h[?12l[?25h[27m[23m[m[H[2J[?25l[49;1H"ctarget.txt" 21959L, 1093765C[>c[2;1Hctarget: file format elf64-x86-64
Disassembly of section .interp:
0000000000400238 <.interp>:
400238:[7C2f[22C(bad)
400239:[7C6c[22Cinsb (%dx),%es:(%rdi)
40023a:[7C69 62 36 34 2f 6c 64 imul $0x646c2f34,0x36(%rdx),%esp
400241:[7C2d 6c 69 6e 75[10Csub $0x756e696c,%eax
400246:[7C78 2d[19Cjs 400275 <_init-0x9d3>
400248:[7C78 38[19Cjs 400282 <_init-0x9c6>
40024a:[7C36 2d 36 34 2e 73[7Css sub $0x732e3436,%eax
400250:[7C6f[22Coutsl %ds:(%rsi),(%dx)
400251:[7C2e 32 00[16Cxor %cs:(%rax),%al
Disassembly of section .note.ABI-tag:
0000000000400254 <.note.ABI-tag>:
400254:[7C04 00[19Cadd $0x0,%al
400256:[7C00 00[19Cadd %al,(%rax)
400258:[7C10 00[19Cadc %al,(%rax)
40025a:[7C00 00[19Cadd %al,(%rax)
40025c:[7C01 00[19Cadd %eax,(%rax)
40025e:[7C00 00[19Cadd %al,(%rax)
400260:[7C47[22Crex.RXB
400261:[7C4e 55[19Crex.WRX push %rbp
400263:[7C00 00[19Cadd %al,(%rax)
400265:[7C00 00[19Cadd %al,(%rax)
400267:[7C00 02[19Cadd %al,(%rdx)
400269:[7C00 00[19Cadd %al,(%rax)
40026b:[7C00 06[19Cadd %al,(%rsi)
40026d:[7C00 00[19Cadd %al,(%rax)
40026f:[7C00 20[19Cadd %ah,(%rax)
400271:[7C00 00[19Cadd %al,(%rax)[37;9H...
Disassembly of section .note.gnu.build-id:
0000000000400274 <.note.gnu.build-id>:
400274:[7C04 00[19Cadd $0x0,%al
400276:[7C00 00[19Cadd %al,(%rax)
400278:[7C14 00[19Cadc $0x0,%al
40027a:[7C00 00[19Cadd %al,(%rax)
40027c:[7C03 00[19Cadd (%rax),%eax
40027e:[7C00 00[19Cadd %al,(%rax)
400280:[7C47[22Crex.RXB[49;72H1,0-1[9CTop[1;1H[?12l[?25h[?25l[49;1H[K[49;1H/[?12l[?25hd[?25l[?12l[?25h[?25l[49;2H[K[49;2H[?12l[?25ht[?25l[?12l[?25ho[?25l[?12l[?25hu[?25l[?12l[?25hc[?25l[?12l[?25hh[?25l[?12l[?25h[?25l[27m[23m[m[H[2J[1;3H4017f6:[7Ceb 0a[19Cjmp 401802 <scramble+0x473>
4017f8:[7C89 d1[19Cmov %edx,%ecx
4017fa:[7C8b 0c 8c[16Cmov (%rsp,%rcx,4),%ecx
4017fd:[7C01 c8[19Cadd %ecx,%eax
4017ff:[7C83 c2 01[16Cadd $0x1,%edx
401802:[7C83 fa 09[16Ccmp $0x9,%edx
401805:[7C76 f1[19Cjbe 4017f8 <scramble+0x469>
401807:[7C48 8b 74 24 28[10Cmov 0x28(%rsp),%rsi
40180c:[7C64 48 33 34 25 28 00 xor %fs:0x28,%rsi
401813:[7C00 00
401815:[7C74 05[19Cje 40181c <scramble+0x48d>
401817:[7Ce8 d4 f4 ff ff[10Ccallq 400cf0 <__stack_chk_fail@plt>
40181c:[7C48 83 c4 38[13Cadd $0x38,%rsp
401820:[7Cc3[22Cretq
0000000000401821 <getbuf>:
401821:[7C48 83 ec 38[13Csub $0x38,%rsp
401825:[7C48 89 e7[16Cmov %rsp,%rdi
401828:[7Ce8 7e 02 00 00[10Ccallq 401aab <Gets>
40182d:[7Cb8 01 00 00 00[10Cmov $0x1,%eax
401832:[7C48 83 c4 38[13Cadd $0x38,%rsp
401836:[7Cc3[22Cretq
0000000000401837 <touch1>:
401837:[7C48 83 ec 08[13Csub $0x8,%rsp
40183b:[7Cc7 05 d7 2c 20 00 01 movl $0x1,0x202cd7(%rip)[8C# 60451c <vlevee[27;1Hl>
401842:[7C00 00 00
401845:[7Cbf 75 31 40 00[10Cmov $0x403175,%edi
40184a:[7Ce8 81 f4 ff ff[10Ccallq 400cd0 <puts@plt>
40184f:[7Cbf 01 00 00 00[10Cmov $0x1,%edi
401854:[7Ce8 97 04 00 00[10Ccallq 401cf0 <validate>
401859:[7Cbf 00 00 00 00[10Cmov $0x0,%edi
40185e:[7Ce8 ed f5 ff ff[10Ccallq 400e50 <exit@plt>
0000000000401863 <touch2>:
401863:[7C48 83 ec 08[13Csub $0x8,%rsp
401867:[7C89 fa[19Cmov %edi,%edx
401869:[7Cc7 05 a9 2c 20 00 02 movl $0x2,0x202ca9(%rip)[8C# 60451c <vlevee[40;1Hl>
401870:[7C00 00 00
401873:[7C39 3d ab 2c 20 00[7Ccmp %edi,0x202cab(%rip)[8C# 604524 <cookii[43;1He>
401879:[7C75 20[19Cjne 40189b <touch2+0x38>
40187b:[7Cbe 98 31 40 00[10Cmov $0x403198,%esi
401880:[7Cbf 01 00 00 00[10Cmov $0x1,%edi
401885:[7Cb8 00 00 00 00[10Cmov $0x0,%eax
40188a:[7Ce8 71 f5 ff ff[10Ccallq 400e00 <__printf_chk@plt>[49;72H1679,19[8C7%[24;19H[?12l[?25h[?25l[49;72H[K[49;1H:[?12l[?25hw[?25l[?12l[?25hq[?25l[?12l[?25h[?25l[49;3H[K[49;3H[?12l[?25h[?25l[49;2H[K[49;2H[?12l[?25hq[?25l[?12l[?25h[?25l[49;1H[K[49;1H[?1l>[?12l[?25h[?1049l]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ vi ctarget.txt [2Pcat ans1[C[C[C[C[Cvim[C[C[C[C[C[C[C[C[C[C
[?1049h[?1h=[2;1H▽[6n[2;1H [1;1H]11;?[1;49r[?12;25h[?12l[?25h[27m[23m[m[H[2J[?25l[49;1H"ans1.txt" 8L, 192C[>c[1;1H00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
[1m[34m~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [41;1H~ [42;1H~ [43;1H~ [44;1H~ [45;1H~ [46;1H~ [47;1H~ [48;1H~ [m[49;72H1,1[11CAll[1;1H[?12l[?25h[?25l[49;72H2[2;1H[?12l[?25h[?25l[49;72H3[3;1H[?12l[?25h[?25l[49;72H4[4;1H[?12l[?25h[?25l[49;72H5[5;1H[?12l[?25h[?25l[49;72H6[6;1H[?12l[?25h[?25l[49;72H7[7;1H[?12l[?25h[?25l[49;72H8[8;1H[?12l[?25h[?25l[49;1H[1m-- INSERT --[m[49;13H[K[49;72H8,1[11CAll[8;1H[?12l[?25h[?25l[49;74H2[8;2H[?12l[?25h[?25l[49;74H3[8;3H[?12l[?25h[?25l[49;74H4[8;4H[?12l[?25h[?25l[49;74H5[8;5H[?12l[?25h[?25l[49;74H6[8;6H[?12l[?25h[?25l[49;74H7[8;7H[?12l[?25h[?25l[49;74H8[8;8H[?12l[?25h[?25l[49;74H9[8;9H[?12l[?25h[?25l[49;74H10[8;10H[?12l[?25h[?25l[49;75H1[8;11H[?12l[?25h[?25l[49;75H2[8;12H[?12l[?25h[?25l[49;75H3[8;13H[?12l[?25h[?25l[49;75H4[8;14H[?12l[?25h[?25l[49;75H5[8;15H[?12l[?25h[?25l[49;75H6[8;16H[?12l[?25h[?25l[49;75H7[8;17H[?12l[?25h[?25l[49;75H8[8;18H[?12l[?25h[?25l[49;75H9[8;19H[?12l[?25h[?25l[49;74H20[8;20H[?12l[?25h[?25l[49;75H1[8;21H[?12l[?25h[?25l[49;75H2[8;22H[?12l[?25h[?25l[49;75H3[8;23H[?12l[?25h[?25l[49;75H4[8;24H[?12l[?25h[?25l[9;1H[K[49;72H9,1 [9;1H[?12l[?25h[?25l3[49;74H2[9;2H[?12l[?25h[?25l7[49;74H3[9;3H[?12l[?25h[?25l[49;74H4[9;4H[?12l[?25h[?25l1[49;74H5[9;5H[?12l[?25h[?25l8[49;74H6[9;6H[?12l[?25h[?25l[49;74H7[9;7H[?12l[?25h[?25l4[49;74H8[9;8H[?12l[?25h[?25l0[49;74H9[9;9H[?12l[?25h[?25l[49;74H10[9;10H[?12l[?25h[?25l0[49;75H1[9;11H[?12l[?25h[?25l0[49;75H2[9;12H[?12l[?25h[?25l[49;75H3[9;13H[?12l[?25h[?25l0[49;75H4[9;14H[?12l[?25h[?25l0[49;75H5[9;15H[?12l[?25h[?25l[49;75H6[9;16H[?12l[?25h[?25l0[49;75H7[9;17H[?12l[?25h[?25l0[49;75H8[9;18H[?12l[?25h[?25l[49;75H9[9;19H[?12l[?25h[?25l0[49;74H20[9;20H[?12l[?25h[?25l0[49;75H1[9;21H[?12l[?25h[?25l[49;75H2[9;22H[?12l[?25h[?25l0[49;75H3[9;23H[?12l[?25h[?25l0[49;75H4[9;24H[?12l[?25h[?25l[49;72H8[8;24H[?12l[?25h[49;1H[K[8;23H[?25l[49;72H8,23[10CAll[8;23H[?12l[?25h[?25l[8;48r[48;1H
[1;49r[48;1H[1m[34m~ [m[49;72H[K[49;72H8,1[11CAll[8;1H[?12l[?25h[?25l[49;72H7[7;1H[?12l[?25h[?25l[49;72H6[6;1H[?12l[?25h[?25l[49;72H5[5;1H[?12l[?25h[?25l[49;72H4[4;1H[?12l[?25h[?25l[49;72H3[3;1H[?12l[?25h[?25l[49;72H2[2;1H[?12l[?25h[?25l[49;72H1[1;1H[?12l[?25h[?25l[49;72H[K[49;1H:[?12l[?25hw[?25l[?12l[?25hq[?25l[?12l[?25h[?25l"ans1.txt" 8L, 192C written
[?1l>[?12l[?25h[?1049l]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ vi d[Kans[K[K[K[K[K[Kcat [K[K[K[Kvim ans1.txt
[?1049h[?1h=[2;1H▽[6n[2;1H [1;1H]11;?[1;49r[?12;25h[?12l[?25h[27m[23m[m[H[2J[?25l[49;1H"ans1.txt" 8L, 192C[>c[1;1H00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
37 18 40 00 00 00 00 00
[1m[34m~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [41;1H~ [42;1H~ [43;1H~ [44;1H~ [45;1H~ [46;1H~ [47;1H~ [48;1H~ [m[49;72H1,1[11CAll[1;1H[?12l[?25h[?25l[49;72H2[2;1H[?12l[?25h[?25l[3;48r[3;1H[L[1;49r[3;1H00 00 00 00 00 00 00 00[49;1H[K[49;72H3,1[11CAll[3;1H[?12l[?25h[?25l[49;72H[K[49;1H:[?12l[?25hW[?25l[?12l[?25hq[?25l[?12l[?25h[?25l[1m[37m[41mE492: Not an editor command: Wq[m[40C3,1[11CAll[3;1H[?12l[?25h[?25l[49;1H[K[49;1H:[?12l[?25hw[?25l[?12l[?25hq[?25l[?12l[?25h[?25l"ans1.txt" 9L, 216C written
[?1l>[?12l[?25h[?1049l]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ d[Ks[K./s[Kctarget -q d[K-[K[K[K[K[K[K[K[K[K[K[K[K[K[Kh[K./hex2raw < t[Kans1.txt > d[K-[Kans1.txt [K[K[K[Kraw
]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ ls
ans1.raw cookie.txt ctarget.txt README text.txt
ans1.txt [0m[01;32mctarget[0m [01;32mhex2raw[0m text2.txt
]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ d[K./d[Kctarget < [K[K-q -i d[Ks[Kans1.a=[K=[K[Kraw [K
Cookie: 0x47db4e3a
Ouch!: You caused a segmentation fault!
Better luck next time
FAIL: Would have posted the following:
user id bovik
course 15213-f15
lab attacklab
result 2:FAIL:0xffffffff:ctarget:0:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 37 18 40 00 00 00 00 00
]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ c[Kc[Kc[Kls[Kl
total 1240
drwxrwxr-x 3 sp27 sp27 4096 Oct 22 12:35 [0m[01;34m.[0m/
drwxrwxr-x 4 sp27 sp27 4096 Oct 22 12:10 [01;34m..[0m/
-rw-rw-r-- 1 sp27 sp27 73 Oct 22 12:35 ans1.raw
-rw-rw-r-- 1 sp27 sp27 216 Oct 22 12:35 ans1.txt
-rw-rw-r-- 1 sp27 sp27 11 Oct 22 12:10 cookie.txt
-rwxrwxr-x 1 sp27 sp27 69560 Oct 22 12:10 [01;32mctarget[0m*
-rw-rw-r-- 1 sp27 sp27 1093765 Oct 22 12:14 ctarget.txt
drwxrwxr-x 8 sp27 sp27 4096 Oct 22 12:10 [01;34m.git[0m/
-rwxrwxr-x 1 sp27 sp27 21720 Oct 22 12:10 [01;32mhex2raw[0m*
-rw-rw-r-- 1 sp27 sp27 843 Oct 22 12:10 README
-rw-rw-r-- 1 sp27 sp27 28672 Oct 22 12:34 text2.txt
-rw-rw-r-- 1 sp27 sp27 18054 Oct 22 12:24 text.txt
]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ d[Kca[K[Kca[K[Kcs[K[Kd[Kd[Kvim d[K[K[K[K[Kll -all
total 1244
drwxrwxr-x 3 sp27 sp27 4096 Oct 22 12:35 [0m[01;34m.[0m/
drwxrwxr-x 4 sp27 sp27 4096 Oct 22 12:10 [01;34m..[0m/
-rw-rw-r-- 1 sp27 sp27 73 Oct 22 12:35 ans1.raw
-rw-rw-r-- 1 sp27 sp27 216 Oct 22 12:35 ans1.txt
-rw-rw-r-- 1 sp27 sp27 11 Oct 22 12:10 cookie.txt
-rwxrwxr-x 1 sp27 sp27 69560 Oct 22 12:10 [01;32mctarget[0m*
-rw-rw-r-- 1 sp27 sp27 1093765 Oct 22 12:14 ctarget.txt
drwxrwxr-x 8 sp27 sp27 4096 Oct 22 12:10 [01;34m.git[0m/
-rwxrwxr-x 1 sp27 sp27 21720 Oct 22 12:10 [01;32mhex2raw[0m*
-rw-rw-r-- 1 sp27 sp27 843 Oct 22 12:10 README
-rw-rw-r-- 1 sp27 sp27 32768 Oct 22 12:37 text2.txt
-rw-rw-r-- 1 sp27 sp27 18054 Oct 22 12:24 text.txt
]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ ./ d[K[Ks[K[K[Kobjdump d[K-d[Kd s[K[K[K[K[K[K[K[K[K[K[K[Kv[Kvim [K[K[K[Kvi ans1.txt
[?1049h[?1h=[2;1H▽[6n[2;1H [1;1H]11;?[1;49r[?12;25h[?12l[?25h[27m[23m[m[H[2J[?25l[49;1H"ans1.txt" 9L, 216C[>c[1;1H00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
37 18 40 00 00 00 00 00
[1m[34m~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [41;1H~ [42;1H~ [43;1H~ [44;1H~ [45;1H~ [46;1H~ [47;1H~ [48;1H~ [m[49;72H1,1[11CAll[1;1H[?12l[?25h[?25l[1;48r[48;1H
[1;49r[48;1H[1m[34m~ [m[49;1H[K[49;72H1,1[11CAll[1;1H[?12l[?25h[?25l[49;72H[K[49;1H:[?12l[?25hw[?25l[?12l[?25hq[?25l[?12l[?25h[?25l"ans1.txt" 8L, 192C written
[?1l>[?12l[?25h[?1049l]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ d[Krm s[Kans1.raw
]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ d[K./r[Khex2raw -[K> [K[K< d[K[K ta[K[Kans1.txt > [K ans1.rq[K[Ka[Kraw
]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ ls
ans1.raw cookie.txt ctarget.txt README text.txt
ans1.txt [0m[01;32mctarget[0m [01;32mhex2raw[0m text2.txt
]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ d[K./d[Ks[Kx[Kctarget -q -i s[Kans1.raw
Cookie: 0x47db4e3a
Touch1!: You called touch1()
Valid solution for level 1 with target ctarget
PASS: Would have posted the following:
user id bovik
course 15213-f15
lab attacklab
result 2:PASS:0xffffffff:ctarget:1:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 37 18 40 00 00 00 00 00
]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ ll
total 1252
drwxrwxr-x 3 sp27 sp27 4096 Oct 22 12:38 [0m[01;34m.[0m/
drwxrwxr-x 4 sp27 sp27 4096 Oct 22 12:10 [01;34m..[0m/
-rw-rw-r-- 1 sp27 sp27 65 Oct 22 12:38 ans1.raw
-rw-rw-r-- 1 sp27 sp27 192 Oct 22 12:38 ans1.txt
-rw-rw-r-- 1 sp27 sp27 11 Oct 22 12:10 cookie.txt
-rwxrwxr-x 1 sp27 sp27 69560 Oct 22 12:10 [01;32mctarget[0m*
-rw-rw-r-- 1 sp27 sp27 1093765 Oct 22 12:14 ctarget.txt
drwxrwxr-x 8 sp27 sp27 4096 Oct 22 12:10 [01;34m.git[0m/
-rwxrwxr-x 1 sp27 sp27 21720 Oct 22 12:10 [01;32mhex2raw[0m*
-rw-rw-r-- 1 sp27 sp27 843 Oct 22 12:10 README
-rw-rw-r-- 1 sp27 sp27 36864 Oct 22 12:37 text2.txt
-rw-rw-r-- 1 sp27 sp27 18054 Oct 22 12:24 text.txt
]0;sp27@j200: ~/sp_hw3/sp_attacklabsp27@j200:~/sp_hw3/sp_attacklab$ exit text2.txt
exit
bash: exit: text2.txt: numeric argument required
Script done on Tue 22 Oct 2019 12:41:28 PM KST