PDA

View Full Version : Help unpacking code



korvix
09-08-2008, 05:57 AM
I would like to use the exit popup that's on this site: www.hotdogcartsecrets.com but the code seems to be packed,
can you help me to unpack it..



eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('3 v=1G;3 F=1E;3 z=\'#1y\';3 14=\'#1z\';3 1t=\'1a://17.1C.1x/1B.1H\';3 1b=\'1a://17.1M.1x/1P/1D.1F\';3 L=0;3 S=8;3 l=0;3 k=0;3 h=8;3 D=8;3 o=w;3 g=w;3 U=12;3 V=12;3 11=-1;3 1q=1;3 G=w;c 1O(){6(q.1n==0){9 w}3 r=q[0];1N(3 i=1;i<q.1n;i++){3 1v=1A 1R(\'\\\\{\'+(i-1)+\'\\\\}\',\'1Q\');r=r.1J(1v,q[i])}9 r};c 1f(e){6(h)9 m;6(16(d.18)==\'1L\'){l=d.18;k=d.1K}n 6(5.f&&(5.f.t||5.f.s)){l=5.f.t;k=5.f.s}n 6(5.7&&(5.7.t||5.7.s)){l=5.7.t;k=5.7.s}3 O=0;3 I=0;6(!e)3 e=d.1I;6(e.19||e.13){O=e.19;I=e.13}n 6(e.1i||e.1j){O=e.1i+5.7.1h+5.f.1h;I=e.1j+5.7.B+5.f.B}U=l/2-v/2;V=k/2-F/2+5.7.B;6(I<10+5.7.B){6(!D)11++;D=m;1w();9 m}n{D=8}9 m};c 1l(N){3 P=d.E;6(16 d.E!=\'c\'){d.E=N}n{d.E=c(){6(P){P()}N()}}};1l(1d);c 1d(){5.2c=1f;3 y=5.1e(\'u\');y.1c(\'K\',\'g\');5.7.1k(y);3 x=5.1e(\'u\');x.1c(\'K\',\'o\');y.1k(x);x.4.1m=\'1u\';x.4.W=\'-15\';x.4.Z=\'-15\';x.4.H=\'#2b\';x.4.A=\'R Q \'+z;x.4.X=v+\'j\';x.4.C=F+\'j\';x.4.p=\'Y\';3 J="<u 4=\'A:R Q "+z+" !b;2f-2e:2h !b;H:"+14+" !b;2g:2k !b;\'><a 2a=\'#\' 4=\'M-2d:2m !b;M-2n:2o !b;M-2i:2l !b;29:#1X !b;\' 1W=\'T(); 9 8;\'>[2j]</a></u>";J+="<1p 4=\'A:R Q "+z+";H:1Y;\' K=\'1s\' 1T=\'1s\' A=\'0\' 1S=\'"+1t+"\' X=\'"+(v-2)+"\' C=\'"+(F-1V)+"\'></1p>";x.1U=J;o=x;g=5.20(\'g\')};c 1w(){6(h)9 8;6(11%1q!=0){h=8;9 8}h=m;3 x=o;x.4.W=V+\'j\';x.4.Z=U+\'j\';x.4.p=\'Y\';3 y=g;y.4.1m=\'1u\';y.4.W=\'1o\';y.4.Z=\'1o\';y.4.X=5.7.26+\'j\';y.4.C=5.7.25+\'j\';y.4.28=\'27\';y.4.p=\'Y\';y.4.H="22(\'"+1b+"\')";5.7.4.C=\'12%\';6(S)5.7.4.1g=\'21\';6(L>0){G=24("T()",L)}9 8};c T(){h=8;o.4.p=\'1r\';g.4.p=\'1r\';6(S)5.7.4.1g=\'23\';6(G)1Z(G);9 8};',62,149,'|||var|style|document|if|body|false|return||important|function|window||documentElement|eg_overlay|opened||px|myHeight|myWidth|true|else|egwind|disp lay|arguments|str|clientHeight|clientWidth|div|eg_width|null|||eg_bordercolor|border|scrollTop|height|is_in|onload|eg_height|autoclose|background|posy|xtext|id| eg_timeout|font|func|posx|oldonload|solid|1px|eg_disable_scrollbar|closeWindow|eg_x|eg_y|top|width|block|left||nrp|100|pageY|eg_bgTitle|1000px|typeof|www|innerW idth|pageX|http|eg_overlayurl|setAttribute|eg_init|createElement|mmove|overflow|scrollLeft|clientX|clientY|appendChild|addLoadEvent|position|length|0px|iframe|n rp_show|none|eg_iframe|eg_htmlfile|absolute|re|openWindow|com|E4E4E4|0099FF|new|ep|hotdogcartsecrets|grey|320|gif|570|html|event|replace|innerHeight|number|psyc hicpops|for|sformat|images|gm|RegExp|src|name|innerHTML|30|onClick|990000|white|clearTimeout|getElementById|hidden|url|auto|setTimeout|scrollHeight|scrollWidth| 999|zIndex|color|href|ffffff|onmousemove|family|align|text|padding|right|size|Close|5px|13px|verdana|weight|bold'.split('|'),0,{}))

codeexploiter
09-08-2008, 08:47 AM
You can unpack the packed code in the following manner:

http://karteek.selfdabba.com/2008/08/unpack-js/

If you are finding difficulty please post that.

Hope this helps.