-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
754 lines (409 loc) · 19.2 KB
/
index.html
File metadata and controls
754 lines (409 loc) · 19.2 KB
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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
<!DOCTYPE HTML>
<html>
<head><meta name="generator" content="Hexo 3.8.0">
<meta charset="UTF-8">
<title>H o o k | 潜心习安全</title>
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
<meta name="author" content="hook">
<meta property="og:type" content="website">
<meta property="og:title" content="H o o k | 潜心习安全">
<meta property="og:url" content="https://gloxec.github.com/index.html">
<meta property="og:site_name" content="H o o k | 潜心习安全">
<meta property="og:locale" content="default">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="H o o k | 潜心习安全">
<link rel="alternative" href="/atom.xml" title="H o o k | 潜心习安全" type="application/atom+xml">
<link rel="icon" href="/img/favicon.ico">
<link rel="apple-touch-icon" href="/img/jacman.jpg">
<link rel="apple-touch-icon-precomposed" href="/img/jacman.jpg">
<link rel="stylesheet" href="/css/style.css">
</head>
</html>
<body>
<header>
<div>
<div id="imglogo">
<a href="/"><img src="/img/logo.png" alt="H o o k | 潜心习安全" title="H o o k | 潜心习安全"></a>
</div>
<div id="textlogo">
<h1 class="site-name"><a href="/" title="H o o k | 潜心习安全">H o o k | 潜心习安全</a></h1>
<h2 class="blog-motto"></h2>
</div>
<div class="navbar"><a class="navbutton navmobile" href="#" title="Menu">
</a></div>
<nav class="animated">
<ul>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/archives">Archives</a></li>
<li><a href="/about">About</a></li>
<li>
<form class="search" action="//google.com/search" method="get" accept-charset="utf-8">
<label>Search</label>
<input type="search" id="search" name="q" autocomplete="off" maxlength="20" placeholder="Search">
<input type="hidden" name="q" value="site:gloxec.github.com">
</form>
</li>
</ul>
</ul></nav>
</div>
</header>
<div id="container">
<div id="main">
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2019/04/08/MacOS Heap Exploit/" title="MacOS Heap Exploit" itemprop="url">MacOS Heap Exploit</a>
</h1>
<p class="article-author">By
<a href="/about" title="hook" target="_blank" itemprop="author">hook</a>
</p><p class="article-time">
<time datetime="2019-04-08T03:15:37.000Z" itemprop="datePublished"> Published 2019-04-08</time>
</p>
</header>
<div class="article-content">
<h1 id="MacOS的堆利用"><a href="#MacOS的堆利用" class="headerlink" title="MacOS的堆利用"></a>MacOS的堆利用</h1><p><strong>0CTF / TCTF2019</strong>比赛时出了一道MacOS下的堆利用题目,这里以该题为背景介绍下MacOS下的堆利用攻击。前面主要详细介绍下MacOS系统的堆,如果想看利用可跳到后面的<code>applepie exp编写</code>介绍章节。</p>
<p class="article-more-link">
<a href="/2019/04/08/MacOS Heap Exploit/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/pwn/">pwn</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/Mac-Heap/">Mac Heap</a>
</div>
</div>
<div class="comments-count">
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2018/12/04/LFI 2 RCE/" title="LFI 2 RCE" itemprop="url">LFI 2 RCE</a>
</h1>
<p class="article-author">By
<a href="/about" title="hook" target="_blank" itemprop="author">hook</a>
</p><p class="article-time">
<time datetime="2018-12-04T03:15:37.000Z" itemprop="datePublished"> Published 2018-12-04</time>
</p>
</header>
<div class="article-content">
<h1 id="从本地文件包含到远程代码执行"><a href="#从本地文件包含到远程代码执行" class="headerlink" title="从本地文件包含到远程代码执行"></a>从本地文件包含到远程代码执行</h1><p><strong>RealWorld CTF</strong>比赛期间和队友熬夜成功一血打下<strong>TP-Link摄像头</strong>,撒花兴喜🎉,但因为0day未修复的原因就暂不记录,记录下挺有意思的一道web题。<br>题目来源于<strong>RealWorld CTF</strong>中的<strong>The Return of One Line PHP</strong>,起初题目来源于🍊在<strong>HITCON2018</strong>出的<strong>One Line PHP Change</strong>,利用filter与session.upload构造开头@<?php文件流来进行RCE。</p>
<p class="article-more-link">
<a href="/2018/12/04/LFI 2 RCE/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/Web/">Web</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/LFI/">LFI</a>
</div>
</div>
<div class="comments-count">
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2018/08/09/Use Frida to decrypt communication packets and interact with Burpsuite/" title="Use Frida to decrypt communication packets and interact with Burpsuite" itemprop="url">Use Frida to decrypt communication packets and interact with Burpsuite</a>
</h1>
<p class="article-author">By
<a href="/about" title="hook" target="_blank" itemprop="author">hook</a>
</p><p class="article-time">
<time datetime="2018-08-09T03:15:37.000Z" itemprop="datePublished"> Published 2018-08-09</time>
</p>
</header>
<div class="article-content">
<h1 id="使用Frida解密通信数据包并与Burpsuite交互"><a href="#使用Frida解密通信数据包并与Burpsuite交互" class="headerlink" title="使用Frida解密通信数据包并与Burpsuite交互"></a>使用Frida解密通信数据包并与Burpsuite交互</h1><p>分析App时经常遇到网络通信数据包加密的情况,逆向分析后虽然可以写出解密前信息提示或者修改的插件,但是无法动态修改数据包中指定字段,对于其他自动化测试极为不方便。这里可以使用frida编写插件让其与burpsuite进行交互。</p>
<p class="article-more-link">
<a href="/2018/08/09/Use Frida to decrypt communication packets and interact with Burpsuite/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/iOS/">iOS</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/frida/">frida</a>
</div>
</div>
<div class="comments-count">
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2018/05/04/decryptedSSLpackets/" title="decryptedSSLpackets" itemprop="url">decryptedSSLpackets</a>
</h1>
<p class="article-author">By
<a href="/about" title="hook" target="_blank" itemprop="author">hook</a>
</p><p class="article-time">
<time datetime="2018-05-04T03:15:37.000Z" itemprop="datePublished"> Published 2018-05-04</time>
</p>
</header>
<div class="article-content">
<h1 id="wireshark中对SSL-TLS数据包解密"><a href="#wireshark中对SSL-TLS数据包解密" class="headerlink" title="wireshark中对SSL/TLS数据包解密"></a>wireshark中对SSL/TLS数据包解密</h1><ol>
<li>Master-Secret log解密,常用的解密方法,使用较为方便.</li>
<li>RSA key解密(PEM或PKCS12格式).</li>
</ol>
<p>这里主要记录下RSA key的解密方式,今天遇到了从流量包中提取到RSA private key证书的情况,然后利用证书来解密。</p>
<p class="article-more-link">
<a href="/2018/05/04/decryptedSSLpackets/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/misc/">misc</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/SSL解密/">SSL解密</a>
</div>
</div>
<div class="comments-count">
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2018/04/12/roputils/" title="roputils" itemprop="url">roputils</a>
</h1>
<p class="article-author">By
<a href="/about" title="hook" target="_blank" itemprop="author">hook</a>
</p><p class="article-time">
<time datetime="2018-04-12T03:15:37.000Z" itemprop="datePublished"> Published 2018-04-12</time>
</p>
</header>
<div class="article-content">
<h1 id="roputils体验"><a href="#roputils体验" class="headerlink" title="roputils体验"></a>roputils体验</h1><p>之前rop一般都是自己找,然后拼接生成,像ret2dl这种需要伪造dl_resolve结构的,也都是自己计算各个数据段位置,一不小心就出错。<br>最近又遇到ret2dl的问题,自己构造完数据,exp执行完一直提示DL_FIX相关的错误,在搜问题时突然发现了这个神器,可以直接套用它的模板直接生成dl_resolve解析结构,特此记录下。</p>
<h6 id="好久没写日记了-,今天记录插件时更新了下,索性写一波。。"><a href="#好久没写日记了-,今天记录插件时更新了下,索性写一波。。" class="headerlink" title="好久没写日记了= =,今天记录插件时更新了下,索性写一波。。"></a>好久没写日记了= =,今天记录插件时更新了下,索性写一波。。</h6>
<p class="article-more-link">
<a href="/2018/04/12/roputils/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/pwn/">pwn</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/ret2dl攻击/">ret2dl攻击</a>
</div>
</div>
<div class="comments-count">
</div>
</footer>
</article>
<nav id="page-nav" class="clearfix">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="page-number" href="/page/3/">3</a><a class="page-number" href="/page/4/">4</a><a class="extend next" rel="next" href="/page/2/">Next<span></span></a>
</nav>
</div>
<div class="openaside"><a class="navbutton" href="#" title="Show Sidebar"></a></div>
<div id="asidepart">
<div class="closeaside"><a class="closebutton" href="#" title="Hide Sidebar"></a></div>
<aside class="clearfix">
<div class="github-card">
<p class="asidetitle">Github Card</p>
<div class="github-card" data-github="gloxec" data-theme="medium"></div>
<script type="text/javascript" src="//cdn.jsdelivr.net/github-cards/latest/widget.js"></script>
</div>
<div class="categorieslist">
<p class="asidetitle">Categories</p>
<ul>
<li><a href="/categories/Mac/" title="Mac">Mac<sup>3</sup></a></li>
<li><a href="/categories/Web/" title="Web">Web<sup>1</sup></a></li>
<li><a href="/categories/ctf/" title="ctf">ctf<sup>1</sup></a></li>
<li><a href="/categories/iOS/" title="iOS">iOS<sup>2</sup></a></li>
<li><a href="/categories/misc/" title="misc">misc<sup>1</sup></a></li>
<li><a href="/categories/pwn/" title="pwn">pwn<sup>9</sup></a></li>
</ul>
</div>
<div class="tagslist">
<p class="asidetitle">Tags</p>
<ul class="clearfix">
<li><a href="/tags/ret2dl攻击/" title="ret2dl攻击">ret2dl攻击<sup>3</sup></a></li>
<li><a href="/tags/fmt攻击/" title="fmt攻击">fmt攻击<sup>1</sup></a></li>
<li><a href="/tags/LFI/" title="LFI">LFI<sup>1</sup></a></li>
<li><a href="/tags/MachO格式/" title="MachO格式">MachO格式<sup>1</sup></a></li>
<li><a href="/tags/memory-RWX/" title="memory-RWX">memory-RWX<sup>1</sup></a></li>
<li><a href="/tags/函数签名/" title="函数签名">函数签名<sup>1</sup></a></li>
<li><a href="/tags/debugger/" title="debugger">debugger<sup>1</sup></a></li>
<li><a href="/tags/SSL解密/" title="SSL解密">SSL解密<sup>1</sup></a></li>
<li><a href="/tags/frida/" title="frida">frida<sup>1</sup></a></li>
<li><a href="/tags/Mac-IDA/" title="Mac IDA">Mac IDA<sup>1</sup></a></li>
<li><a href="/tags/Mac-KDBG/" title="Mac KDBG">Mac KDBG<sup>1</sup></a></li>
<li><a href="/tags/Mac-SIP/" title="Mac SIP">Mac SIP<sup>1</sup></a></li>
<li><a href="/tags/docker/" title="docker">docker<sup>1</sup></a></li>
<li><a href="/tags/Mac-Heap/" title="Mac Heap">Mac Heap<sup>1</sup></a></li>
<li><a href="/tags/writeup/" title="writeup">writeup<sup>1</sup></a></li>
</ul>
</div>
<div class="linkslist">
<p class="asidetitle">Links</p>
<ul>
<li>
<a href="http://bestwing.me" target="_blank" title="Swing">Swing</a>
</li>
<li>
<a href="http://www.bodkin.ren" target="_blank" title="老锥">老锥</a>
</li>
<li>
<a href="http://whereisk0shl.top" target="_blank" title="k0shl">k0shl</a>
</li>
<li>
<a href="http://blog.imjun.net" target="_blank" title="杨君">杨君</a>
</li>
<li>
<a href="http://4ch12dy.site" target="_blank" title="小学生">小学生</a>
</li>
<li>
<a href="https://hello-sherlock.github.io" target="_blank" title="凌迟">凌迟</a>
</li>
<li>
<a href="https://drops.org.cn" target="_blank" title="drop">drop</a>
</li>
<li>
<a href="http://pcat.cnblogs.com" target="_blank" title="pcat">pcat</a>
</li>
<li>
<a href="https://peterpan980927.cn" target="_blank" title="peterpan">peterpan</a>
</li>
<li>
<a href="https://daybr4ak.github.io" target="_blank" title="daybr4ak">daybr4ak</a>
</li>
<li>
<a href="https://blog.ret2.io/" target="_blank" title="RET2">RET2</a>
</li>
<li>
<a href="http://byqiyou.github.io" target="_blank" title="七友">七友</a>
</li>
</ul>
</div>
</aside>
</div>
</div>
<footer><div id="footer">
<div class="line">
<span></span>
<div class="author"></div>
</div>
<section class="info">
<p> know it <br>
then hack it</p>
</section>
<div class="social-font">
<a href="https://github.com/gloxec" target="_blank" class="icon-github" title="github"></a>
<a href="mailto:gloxec@gmail.com" target="_blank" class="icon-email" title="Email Me"></a>
</div>
<p class="copyright">
Powered by <a href="http://hexo.io" target="_blank" title="hexo">hexo</a> and Theme by <a href="https://github.com/wuchong/jacman" target="_blank" title="Jacman">Jacman</a> © 2019
<a href="/about" target="_blank" title="hook">hook</a>
</p>
</div>
</footer>
<script src="/js/jquery-2.0.3.min.js"></script>
<script src="/js/jquery.imagesloaded.min.js"></script>
<script src="/js/gallery.js"></script>
<script src="/js/jquery.qrcode-0.12.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.navbar').click(function(){
$('header nav').toggleClass('shownav');
});
var myWidth = 0;
function getSize(){
if( typeof( window.innerWidth ) == 'number' ) {
myWidth = window.innerWidth;
} else if( document.documentElement && document.documentElement.clientWidth) {
myWidth = document.documentElement.clientWidth;
};
};
var m = $('#main'),
a = $('#asidepart'),
c = $('.closeaside'),
o = $('.openaside');
c.click(function(){
a.addClass('fadeOut').css('display', 'none');
o.css('display', 'block').addClass('fadeIn');
m.addClass('moveMain');
});
o.click(function(){
o.css('display', 'none').removeClass('beforeFadeIn');
a.css('display', 'block').removeClass('fadeOut').addClass('fadeIn');
m.removeClass('moveMain');
});
$(window).scroll(function(){
o.css("top",Math.max(80,260-$(this).scrollTop()));
});
$(window).resize(function(){
getSize();
if (myWidth >= 1024) {
$('header nav').removeClass('shownav');
}else{
m.removeClass('moveMain');
a.css('display', 'block').removeClass('fadeOut');
o.css('display', 'none');
}
});
});
</script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css" media="screen" type="text/css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.article-content').each(function(i){
$(this).find('img').each(function(){
if ($(this).parent().hasClass('fancybox')) return;
var alt = this.alt;
if (alt) $(this).after('<span class="caption">' + alt + '</span>');
$(this).wrap('<a href="' + this.src + '" title="' + alt + '" class="fancybox"></a>');
});
$(this).find('.fancybox').each(function(){
$(this).attr('rel', 'article' + i);
});
});
if($.fancybox){
$('.fancybox').fancybox();
}
});
</script>
<!-- Analytics Begin -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?e6d1f421bbc9962127a50488f9ed37d1";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<!-- Analytics End -->
<!-- Totop Begin -->
<div id="totop">
<a title="Back to Top"><img src="/img/scrollup.png"></a>
</div>
<script src="/js/totop.js"></script>
<!-- Totop End -->
<!-- MathJax Begin -->
<!-- mathjax config similar to math.stackexchange -->
<!-- MathJax End -->
<!-- Tiny_search Begin -->
<!-- Tiny_search End -->
</body>
</html>