Skip to content

Commit d400e13

Browse files
committed
Updates php/challenge-91.md
Auto commit by GitBook Editor
1 parent 727bce9 commit d400e13

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
* [Challenge 88](php/challenge-88.md)
9595
* [Challenge 89](php/challenge-89.md)
9696
* [Challenge 90](php/challenge-90.md)
97+
* [Challenge 91](php/challenge-91.md)
9798

9899
## RUBY
99100

php/challenge-91.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Challenge
2+
```php
3+
<?php
4+
if ($_SERVER['HTTP_X_FORWARDED_FOR'] === '127.0.0.1') {
5+
6+
echo "<br >Welcome My Admin ! <br >";
7+
8+
$pattern = $_GET[pat];
9+
$replacement = $_GET[rep];
10+
$subject = $_GET[sub];
11+
12+
if (isset($pattern) && isset($replacement) && isset($subject)) {
13+
preg_replace($pattern, $replacement, $subject);
14+
}else{
15+
die();
16+
}
17+
18+
}
19+
?>
20+
```
21+
# Refference
22+
+ 赛博地球杯工业互联网安全大赛 工控云管理系统设备维护中心被植入后门

0 commit comments

Comments
 (0)