diff --git a/README.md b/README.md index c883a96..d27432f 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ http://120.26.93.115:12306/05e8309820953e7620a1ee47441243b6/
分值:200
开题金币:200
奖励金币:200
-源码:
+源码: https://github.com/hduisa/hctf2015-all-problems/tree/master/mmd
=================================================================== diff --git a/mmd/check.php b/mmd/check.php new file mode 100644 index 0000000..1367091 --- /dev/null +++ b/mmd/check.php @@ -0,0 +1,20 @@ + HCTF; + $collection = $db -> login; + + $name = $_POST["name"]; + $password = $_POST["password"]; + $function = "function(){if(this.name == '$name' && this.password == '$password') return true}"; + $result = $collection->find(array('$where'=>$function)); + $check = $result->count(); + echo "
"; + if ($check>0){ + echo "开心吗~233333"; + } + else{ + echo "nonono"; + } +?> diff --git a/mmd/index.html b/mmd/index.html new file mode 100644 index 0000000..58ba280 --- /dev/null +++ b/mmd/index.html @@ -0,0 +1,14 @@ + + + + +
+
+ 用户名: +
+
+ 密码: +
+ +
+