Last active
July 15, 2021 02:13
-
-
Save leveryd/40fcaed60727b6163b034145e332640f to your computer and use it in GitHub Desktop.
ctf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
can you alert "flag"? <br> | |
<pre> | |
source code: https://gist.github.com/leveryd/40fcaed60727b6163b034145e332640f | |
</pre> | |
<script> | |
function hello(a, b, c){ | |
if(a=="a" && b=="b" && c=="c"){ | |
alert("flag"); | |
} | |
} | |
var test ={ | |
"a":function a(e){ | |
try{ | |
eval(this.call + ".test") | |
} catch(e){ | |
console.log("bad") | |
} | |
} | |
} | |
<?php | |
$a = $_GET["a"]; | |
$a = str_replace("=", "",$a); | |
$a = str_replace("(", "",$a); | |
$a = str_replace(")", "",$a); | |
$a = str_replace("`", "",$a); | |
$a = str_replace("\\", "",$a); | |
$a = str_replace("/", "",$a); | |
$a = str_replace("[", "",$a); | |
$a = str_replace("]", "",$a); | |
$a = str_replace("<", "<",$a); | |
$a = str_replace(">", ">",$a); | |
echo "var a='$a'"; | |
?> | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://mp.weixin.qq.com/s/0x9pW8FJq2EZ8DoUq-V-bQ