We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b3c5ee commit 727bce9Copy full SHA for 727bce9
php/challenge-90.md
@@ -1,9 +1,31 @@
1
# Challenge
2
```php
3
+ <?php
4
+ if(!isset($_GET['c']) && !isset($_GET['re'])) {
5
+ show_source(__FILE__);
6
+ }
7
+
8
+ $selfdir = $_GET['dir'];
9
+ if (!isset($selfdir)) {
10
+ die();
11
12
+ $secret = '/var/www/html/hackme/' . md5("cetcrce" . $selfdir . $_SERVER['REMOTE_ADDR']);
13
+ @chdir('hackme');
14
+ @mkdir($secret);
15
+ @chdir($secret);
16
17
+ if (isset($_GET['c']) && strlen($_GET['c']) <= 5) {
18
+ include('waf.php');
19
+ @exec($_GET['c']);
20
+ }elseif(isset($_GET['re'])) {
21
+ @exec('/bin/rm -rf ' . $secret);
22
+ @exec('touch /var/www/html/hackme/index.php');
23
24
+?>
25
26
```
27
28
# Solution
29
30
# Refference
-+ php-security-calendar-2017
31
++ 赛博地球杯工业互联网安全大赛 请关注工控云管理系统的警告记录
0 commit comments