使用混淆 javascript 生成字符串
Generating string using obfuscated javascript
我在 reddit 上看到了这条简洁的评论。
https://www.reddit.com/r/ProgrammerHumor/comments/ak026v/aah_yes_c_my_favorite_soft_drink/ef1wi5c
作者巧妙地使用了 javascript 语句,例如:
!![]+[] // 'true'
![]+[] // 'false'
!![]+![] // 1
[][!![]+![]]+[] // 'undefined'
从这些命名的 JS 基元生成字符串,并使用数组访问从它们构建字符串 (reeeeeeeeee)。
我很想用这种方法来吸引一些朋友,但我想要更多的信件。
true、false 和 undefined 产生字母 "d" "n" "s" "f" "e" "a" "t" "i" "r" "l" "u" - 有没有办法获得其他字母字符?特别是 "p" 和 "o" 但其他字符也很酷吗?
"This is where you can find your answer."
这个混淆是——(16441 个字符)
[][([+!+[]+[!+[]+!+[]]]+(+[()())[!+[]+!+[]+!+[]+[+[]]]+(+(+!+[]+[+[]]+[+!+[]]))[(![+!+[]]+([+(+(+!+[]+[+[]]+[+!+[]]))[(![+!+[]]+(!+(![+!+[]+[!+[]+!+[]]])()
参考 link here 了解更多信息
完整列表conversions
我在 reddit 上看到了这条简洁的评论。
https://www.reddit.com/r/ProgrammerHumor/comments/ak026v/aah_yes_c_my_favorite_soft_drink/ef1wi5c
作者巧妙地使用了 javascript 语句,例如:
!![]+[] // 'true'
![]+[] // 'false'
!![]+![] // 1
[][!![]+![]]+[] // 'undefined'
从这些命名的 JS 基元生成字符串,并使用数组访问从它们构建字符串 (reeeeeeeeee)。
我很想用这种方法来吸引一些朋友,但我想要更多的信件。
true、false 和 undefined 产生字母 "d" "n" "s" "f" "e" "a" "t" "i" "r" "l" "u" - 有没有办法获得其他字母字符?特别是 "p" 和 "o" 但其他字符也很酷吗?
"This is where you can find your answer."
这个混淆是——(16441 个字符)
[][([+!+[]+[!+[]+!+[]]]+(+[()())[!+[]+!+[]+!+[]+[+[]]]+(+(+!+[]+[+[]]+[+!+[]]))[(![+!+[]]+([+(+(+!+[]+[+[]]+[+!+[]]))[(![+!+[]]+(!+(![+!+[]+[!+[]+!+[]]])()
参考 link here 了解更多信息
完整列表conversions