KnujOn

The Geocities Redirection



Spammers use redirection and cipher scripts to load Geocities with junk

If you received junk email with links like these:

http://www.geocities.com/bovusanu
http://www.geocities.com/pukerixa
http://www.geocities.com/sitoraxa
http://www.geocities.com/xapypogi
http://geocities.com/dqdiynxtm18
http://geocities.com/dgpmvwpo5fu
http://www.geocities.com/lekydudo

then you are probably familiar with the redirection spam that is plaguing Geocities. The free Geocities pages actaully contain scripting that conceals the destiniation of the browser redirect. The spammers hide the real site name to prevent Geocities from conducting a simple scan to look for spammer pages. Below is one of the scripts:

var pbjbogbydt="lmwakwsxjkdtaunmliizobou";
var meygestqeb=0;
var eqaslfinby,lzcrbbuv,gzvneoguth="501e1413020707584a...
lzcrbbuv='';
var yyvqjazwb;
for( eqaslfinby=0;eqaslfinby< gzvneoguth.length;eqaslfinby+=2){
yyvqjazwb=unescape( '%'+gzvneoguth.substr( eqaslfinby,2));
lzcrbbuv+= String.fromCharCode( yyvqjazwb.charCodeAt(0) ^ pbjbogbydt.charCodeAt(meygestqeb++) );
if ( meygestqeb >= pbjbogbydt.length ) meygestqeb = 0;
}
document.write(lzcrbbuv);
Yikes! What is all this garbage? First, let's reduce the confusion by replacing the wierd variable names with simple ones:


var s1="lmwakwsxjkdtaunmliizobou";
var i1=0;
var i2,s2,s3="501e1413020707584a07051a...
var myS
s2='';
var s4;
for( i2=0;i2 < s3.length;i2+=2){
s4=unescape( '%'+s3.substr( i2,2));
s2+= String.fromCharCode( s4.charCodeAt(0) ^ s1.charCodeAt(i1++) );
if ( i1 >= s1.length ) i1 = 0; 
}
document.write(s2);
What is going on in this script?

s1="lmwakwsxjkdtaunmliizobou"; is the key for this cipher.

s3="501e1413020707584a07051a06000f
0a09544b300e140e260f1f1e111f554d0f
0305001b165b1a021c4705150c031b1c03
035909191215584a4b44544155534d4b01
1d0e1f58405a1f0211150312011a0b0717
5a021a034a575546090c1006051853";
is the encoded string. These are hex values.

unescape( '%'+s3.substr( i2,2)) turns each pair of hex values into the ASCII equivalent. s4.charCodeAt(0) ^ s1.charCodeAt(i1++) Uses the bitwise exclusive OR to to generate a new number for the ASCII value of the coded string and the ASCII value of the key

s2+= String.fromCharCode Converts the XORed value back into a character.

For example the first pair/hex number in the coded string is 50. This becomes %50 and is unescaped to P. P and the first letter of the key string, l are converted into ascii numbers: 80 and 108, respectively. If we XOR ^ 80 and 108 the result is 60. Converting this back to an character value produces <.

The fully converted string is:
<script language="JavaScript">window.top.location.href='http://softherbals.com';</script>
which launches the browser redirect.



Other Recent Examples

http://www.geocities.com/Eldridgeuas29177
var i,y,x="3c7363726970743e0d0a77696e646f772e746f702e6c6f636174696f6e2e687265663d22687474703a2f2f616e68657262616c2e636f6d223b0d0a3c2f7363726970743e";y='';for(i=0;iis anherbal.com, redirects to herbal-land.com
http://www.geocities.com/ecyxadpuu
var xwxgufq="jkrueqbpbsiyjrmhjiiig";var xkknmz=0;var finozzvi,dqpwoki,hfsblih="561811070c011650425349594a520109040e1c08000f56503f04070323010100091e50531f03070d0610441f1d054b1d0d1303070016045c051a0f0f4949474a4b525545515f50425349594a524d484d011d1d1750445d060a17161807010b180601430b05044e525b451811070c01164e" ; dqpwoki='' ; var trxfqml ; for( finozzvi=0 ; finozzvi< hfsblih.length ; finozzvi+=2){trxfqml=unescape( '%'+hfsblih.substr( finozzvi,2)); dqpwoki+= String.fromCharCode( trxfqml.charCodeAt(0) ^ xwxgufq.charCodeAt(xkknmz++) ); if ( xkknmz >= xwxgufq.length ) xkknmz = 0; }
is softherbals.com, redirects to herbal-land.com
http://www.geocities.com/kdzidnbdc
var i,y,x="3c7363726970743e0d0a3c212d2d0d0a646f63756d656e742e777269746528756e65736361706528222533437363726970742532306c616e67756167652533442532324a61766153637269707425323225334525304425304177696e646f772e746f702e6c6f636174696f6e2e68726566253344253237687474702533412f2f736f667468657262616c732e636f6d2532372533422530442530412533432f7363726970742533452229293b0d0a2f2f2d2d3e0d0a3c2f7363726970743e" ; y='';for( i=0 ; i< x.length; i+=2){y+=unescape('%'+x.substr(i,2)) ; }
is softherbals.com, redirects to herbal-land.com
http://www.geocities.com/lysybuko
var jhgmgbypo="amdzvmjndwdgkbfdwywxsjabzg";var lsiwu=0;var zqlvoefo,eudxbx,idtpfr="5d1e07081f1d1e4e445744474b42464457151616141f00051f5a4327050c173e091c0d07104555150f0a131600560705114c1608020c101319034406161202474b42464457595745534a41451213151d5e55591a051c081307121b50565d4e5714171e4d5a5e5514021f0d0a0253" ; eudxbx='' ; var utrmbn; for( zqlvoefo=0 ; zqlvoefo< idtpfr.length ; zqlvoefo+=2){utrmbn=unescape( '%'+idtpfr.substr( zqlvoefo,2)); eudxbx+= String.fromCharCode( utrmbn.charCodeAt(0) ^ jhgmgbypo.charCodeAt(lsiwu++) ) ; if ( lsiwu >= jhgmgbypo.length ) lsiwu = 0; }
is softherbals.com, redirects to herbal-land.com
http://www.geocities.com/pwyzyoek
var i,y,x="3c7363726970743e0d0a3c212d2d0d0a646f63756d656e742e777269746528756e65736361706528222533437363726970742532306c616e67756167652533442532324a61766153637269707425323225334525304425304177696e646f772e746f702e6c6f636174696f6e2e68726566253344253237687474702533412f2f736f667468657262616c732e636f6d2532372533422530442530412533432f7363726970742533452229293b0d0a2f2f2d2d3e0d0a3c2f7363726970743e"; y=''; for( i=0; i< x.length; i+=2){y+=unescape('%'+x.substr(i,2)) ; }
is softherbals.com, redirects to herbal-land.com


Sample full conversion:
50l8010860<
1ew3097115s
14a2011999c
13k19120114r
02w2107105i
07s7116112p
07x7117116t
58j8810932SPACE
4ak7410532SPACE
07d7122108l
05t59897a
1aa26117110n
06u6119103g
00n0107117u
0fm1511597a
0al10106103g
09i9100101e
54i849761=
4bz7511034"
30o4810874J
0eb1410597a
14o20111118v
0eu1411197a
26l3810883S
0fw159799c
1fa31119114r
1ek30120105i
11w17107112p
1fs31116116t
55x8511734"
4dj7710962>
0fk15105119w
03d3122105i
05t598110n
00a0117100d
1bu27119111o
16n22107119w
5bm9111546.
1al26106116t
02i2100111o
1ci2897112p
47z7111046.
05o5108108l
15b21105111o
0co1211199c
03u311197a
1bl27108116t
1cw2897105i
03a3119111o
03k3120110n
59w8910746.
09s9116104h
19x25117114r
12j18109101e
15k21105102f
58d8812232SPACE
4at749832SPACE
4ba7511732SPACE
44u6811932SPACE
54n8410732SPACE
41m6511532SPACE
55l8510632SPACE
53i8310061=
4di779732SPACE
4bz7511039'
01o1108104h
1db29105116t
0eo14111116t
1fu31111112p
58l8810858:
40w649747/
5aa9011947/
1fk31120115s
02w2107111o
11s17116102f
15x21117116t
03j3109104h
12k18105101e
01d1122114r
1at269898b
0ba1111797a
07u7119108l
17n23107115s
5am9011546.
02l210699c
1ai26100111o
03i397109m
4az7411039'
57o8710859;
55b8510560<
46o7011147/
09u9111115s
0cl1210899c
10w1697114r
06a6119105i
05k5120112p
18w24107116t
53s8311662>


Privacy Policy and Mission Statement