forked from waidakyaw/Web-Obfuscate-Lab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
obfuscate4.php
60 lines (44 loc) · 1.44 KB
/
obfuscate4.php
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
<!DOCTYPE html>
<html>
<head>
<title>Luna Web Obfuscate 101 Lab</title>
<link rel="stylesheet" type="text/css" href="bulma.css">
</head>
<body>
<div class="container">
<div class="columns">
<div class="column is-one-quarter">
<?php include("menu.php"); ?>
</div>
<div class="column auto">
<h1 class="title">Luna</h1>
<h1 class="subtitle">Web Obfuscation 101 Lab</h1><hr>
<div class="box">
<h1 class="subtitle">Hint</h1>
<p>Case Sensitive !
</p><br>
<h1 class="subtitle">Your Goal</h1>
<p>Your goal is show me an alert box. <br>Example : alert(1)
</p><br>
<h1 class="subtitle">Input</h1>
<p>
<form action="obfuscate4.php" method="get">
<input type="text" name="string" value="Input here">
<input class="button is-primary" type="submit" value="Try to bypass!">
</form>
</p><br>
<h1 class="subtitle">Output</h1>
<p><?php
$filter=["alert"];
if(isset($_GET['string'])){
$string=$_GET['string'];
echo "<script>".str_replace($filter,"ALERT",$string)."</script>";
}
?>
</p>
</div>
<p>Copyright © 2017 @art0flunam00n</p>
</div>
</div>
</body>
</html>