{"id":149896,"date":"2020-09-02T07:31:16","date_gmt":"2020-09-01T23:31:16","guid":{"rendered":"http:\/\/4563.org\/?p=149896"},"modified":"2020-09-02T07:31:16","modified_gmt":"2020-09-01T23:31:16","slug":"%e5%a6%82%e4%bd%95%e6%9e%84%e9%80%a0-v1-%e5%92%8c-v2-%e6%89%8d%e8%83%bd%e8%af%bb%e5%8f%96%e5%88%b0-1-txt","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=149896","title":{"rendered":"\u5982\u4f55\u6784\u9020 v1 \u548c v2 \u624d\u80fd\u8bfb\u53d6\u5230 1.txt"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5982\u4f55\u6784\u9020 v1 \u548c v2 \u624d\u80fd\u8bfb\u53d6\u5230 1.txt               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Esc410 <\/span>  <span><i><\/i> 11<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4ee3\u7801\u5982\u4e0b\uff0c\u5982\u4f55\u6784\u9020 v1 \u548c v2 \u624d\u80fd\u8bfb\u53d6\u5230 1.txt<\/p>\n<pre><code>&lt;?php $v1 = $_GET['v1']; $v2 = $_GET['v2']; $v1 = (string)$v1; if(strlen($v1) &gt; 5 || strlen($v2) &gt; 5){     die(\"too long\"); } if($v1 !== $v2 &amp;&amp; md5($v1) === md5($v2) &amp;&amp; $v1 != $v2){     echo file_get_contents(\"\/1.txt\"); } <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>10<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3034136\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : emeab <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             md5 \u2014 \u8ba1\u7b97\u5b57\u7b26\u4e32\u7684 MD5 \u6563\u5217\u503c \u8c8c\u4f3c\u6ca1\u529e\u6cd5\u8bfb\u5230\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3034137\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kernelpanic <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             muouim.github.io\/2019\/01\/30\/MD5 \u78b0\u649e \/                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3034138\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : emeab <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u8fc7\u8c8c\u4f3c php \u7684 md5 \u4f1a\u6709 bug \u4f20\u5165\u6570\u7ec4 \u4f1a\u8fd4\u56de null \u6240\u4ee5\u4f20\u5165 2 \u4e2a\u4e0d\u540c\u7684\u6570\u7ec4\u5c31\u53ef\u4ee5\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3034139\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hellos <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6ca1$v1 = (string)$v1;\u53ef\u4ee5 v1[]=1 v2[]=2 \u3002<br \/>\u4f46 (string)$v1 \u53ea\u80fd md5 \u78b0\u649e\u4e86\uff0c\u4f46\u53c8\u9650\u5236\u957f\u5ea6\u3002<br \/>\u4e0d\u77e5\u9053                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3034140\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 0clickjacking0 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @kernelpanic \u8fd9\u91cc\u9650\u5236\u4e86\u957f\u5ea6\uff0c\u4f60\u535a\u5ba2\u91cc\u5199\u7684\u65b9\u6cd5\u4e0d\u80fd\u7528\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3034141\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mx1700 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             v1[]=1&amp;v2=Array                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3034142\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mx1700 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mx1700 \u597d\u5427\uff0c\u4e0d\u5bf9\uff0c\u770b\u9519\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3034143\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : masker <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6253 ctf \u90fd\u627e\u522b\u4eba\u5e2e\u4f60\u767d\u5ad6\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3034144\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ben1024 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u957f\u5ea6\u5c0f\u4e8e 5 \u7684 MD5 \u78b0\u649e\uff0c\u6709\u70b9\u610f\u601d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3034145\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : goodboy95 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u73b0\u5728 ctf \u8fd9\u4e48\u6709\u610f\u601d\u4e86\u5417\uff0c\u8981\u4e0d\u5c31\u5199\u4e2a\u7a0b\u5e8f\u6162\u6162\u8dd1\u5427\uff08\u53ea\u8003\u8651\u5b57\u6bcd\u548c\u6570\u5b57\uff09\uff0c\u5982\u679c\u7b54\u6848\u5b58\u5728\u7684\u8bdd\uff0c\u82b1\u51e0\u5929\u65f6\u95f4\u5e94\u8be5\u80fd\u8dd1\u51fa\u6765                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u6784\u9020 v1 \u548c v2 \u624d\u80fd\u8bfb\u53d6&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/149896"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=149896"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/149896\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=149896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=149896"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=149896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}