Click to See Complete Forum and Search --> : Please Help Me, I can't read this scrambled Javascript, how was this made??
Gill Bates
11-10-2003, 08:58 AM
var rpgd_cs_data = 'efcekPDC=ucin)sl.ea_letflei(sl.oyih_ttmn|!Cprgt.\\.\\ uzYn.aiehm\\cmits(oyih_ttmn)|Lnr.Tc|!cprgt.\\.\\ uzYn.<.he.aiehm\\cm+nm hm.Alrgt eevdits(itoA_sinrTL)eunvre=Lnr.Tc]i(efpa)i(Lnr.Tln|Lnr.Tln.l.egh|/nmtee.o/ts(itoA_ikhe)|/rsne yAieTee.etLnr.Tln.neTx)rtr;se.egh=itoA_ik;o(a =;<slnt;+)vree[]vrx=c_ye;fx[]0|y1<)eunvres(e)ecrettl:.tl;o(a =;<.l.eghj+{a =.l[]i(ccniu;fcetn_Sc)euni(.aNm=""{a s(e)ccrettl:.tl;fcallnt|/eal|et.etc.usr|(scro!"uo&c.usr=_.usr|/lc|ht|[1])3|[E])3/.etc.oo)rtr};hl(.aNm!"OY)i(haigC()rtr;=.aetlmn};a =Lnr.satpito?satpitoLnr.ouetddalfrvri0idlnt;+)vredi;f!)otnevriC=as;o(a =;<slnt;+)i(=e[]{sStu;ra};fiC)otnevres(e)ecrettl:.tl;f!aslt|eaie.etespsto)cniu;a ysrx()vrbokdSflefrvrj0je.eghj+{a sx=c_ye[];fx[]e_y3&x[]e_y1)bokdStu;ra};fbokdSrtr}lglcin=re;efcetn_Sfnto()vre=i5?.urnSyeesyertr(svsblt="idn|e.ipa="oe|/([\\]0.024e(d[24\\)|d^d.%).ete.otie|(.fstit<0&/d.ete.it)|(.fstegt2&/d.ete.egt)|apa+pct=\\\\|13]d/.ete.itr);efsrx=ucine{a =;a =;a =.fstit;a =.fstegtwieetgae=BD"{+eofeLf;+eofeTpeeofePrn}eunxywxhy}cekPDC(;efoln_ssl.niprc_et|^tpits(oainhe)i(lglcin)sl.trLn=ucin)i( niec)tplcto.rf"tp/wwaiehm.o"es{lr(Pes u hsgm nie"}}lesl.trLn=ntkn;efdrco=rdcr s .}cuGpStniol{gf_gicinaaf;{!ef)pngosaeitn/eylht a+lBm egtnntwe:oh.etnpag.s{e_tl!ft(Atsf/iyahf {+eB_ egfafr.+tmlee./.hi|Tteal_iasescei..tsnS.Gccn;H+)+t,;r r[ettAfs=folsb.{y!etsA.ix|Yt"Amiaa(lhth!Hifhe\\rmheWLfreTrn0rr|0Pre)do nmyhc/ls}ieof_(ktn)e4)[udeysan.]ln|.hlh}(rtr\\00eheHhf+ea)=disasy/r&(2idye<ox|]zrnrsas_/ie?\\u\\ndy3e|y|f3v[j|j^a^l"tn+yvscsa"jdf=)itie.(naegl(.rlrtfrteae=s)are=i5u.CriShels}et(el_eehndeuCtc/(s}sere)=ceulr]ax">syr]=xs<ry)ibjk(ir(y2e{v(+Ft{li<s=salo)su=}eileagee_B="rfeetn)Si)ou_esp/ntertuvbd(ieosteuSnr).t5u=n :;tidcms;i.k;b(r C;).sgei{{j g[.ijejnvufalsSf e;rirc0(e]e=ha++fh=ej<i==aeoel}=(nScnouiar__ir?Lurn_yreLyti(/ro}eelEvrte(n.eien_otncv{xDc=ya;t ecwCnae;r(c (;ts}n.;D)}r._0sexwsa)|(o1cse[o&c3&st[={sc.C|robck(itlxet)fu|;ga.l.tiuysc.yangu=?cinc{v A(e)gcce;tt:)tC;iuheiinioy!h;el|edrl)=;nn|l0e.0\\r1r]e\\s1e]S%r[.\\5]=t (;ftS0)[e|f0W(h)0x\\st (;wsh |{oiegi.<i&i/vsfsniT)r/Lhtoli[(nDe2t\\riisisAlt)(st.m_ fntb(tvex!vfy.vlw.onetd.vchmoeeai|;nll.kN_!oOi)k=_fotitf=tf.ts;;._soaitsta[r,r,M]eh.RT_r)Llen/er=rfht i+yese/Ato.ettcnofr+;+!uatldtde sitok|n_oo{io|nesaotoriche=/t./e.mm+euct}dede "iaor|te aetlr.c}esfess=tiklilies(.tefr_oReh l'
requestcode
11-10-2003, 11:36 AM
They could have used a Server Side language such as PHP or Perl to generate it.
Gill Bates
11-10-2003, 01:17 PM
no, I can sure you it's not serverside at all, there's no runat attribute in the whole page, it's an offline web game, no internet connection required, I did see a program called JScriptEncrypt that do that kinda stuff but it require the right password to get the code back to the normal source, i wonder if anyone can help me get this scrambled javascript to normal so i can read it.
zachzach
11-10-2003, 02:22 PM
Microsoft developed a Javascript.Encrypt Language. Its made using random numbers and letters. There is no way to return it to normal form. That was the whole point! But it is a very usful tool, if you do not have the money for copyrighting a small script. Or even a big one.
Gill Bates
11-10-2003, 03:50 PM
NO NO NO, if Internet Explorer can read and understand it, there must be a way to return it back to normal, THERE MUST BE!!!!!! btw, Microsoft didn't create Javascript Encrypt program, it was some dude from the internet *SEARCHING FOR A WAY TO CRACK*
Originally posted by zachzach
...if you do not have the money for copyrighting a small script. Or even a big one. Stuff one creates is automatically copyright. No $$ required.
Gill Bates
11-10-2003, 03:59 PM
What do you mean? where?
I'm talking about the US here, not sure about other countries. http://www.copyright.gov/circs/circ1.html#wccc
Gill Bates
11-11-2003, 06:35 AM
Can you tell me what type of encryption did that script use?
Gollum
11-11-2003, 07:39 AM
As far as I can tell, this code as presented doesn't actually do anything except assign a string to a variable...
var rpgd_cs_data =' lots of what looks like javascript that has been fed through a mincer '
Is there any code after this that does something with the variable rpgd_cs_data? Without seeing that it's difficult to say how to decode the string.
Gill Bates
11-11-2003, 08:36 AM
I think it's some kinda password type encryption but I don't know what type is it, basically it's a game website, if you remove the copyright text, the game won't load.
zachzach
11-11-2003, 03:44 PM
but people take it anyway.Unfortuanetly.So this is still useful.
No, you dont understand. Its using HASH encryption, which is very hard to decode, almost immposible from what I've heard. Only hackers could decode it(I hope you cant decode it ;) )
Gill Bates
11-11-2003, 04:23 PM
so this is called HASH encryption? so hackers can decode it eh? hmm... interesting =^^=
how do I use HASH encryption? I wanna use it.
Jeff Mott
11-11-2003, 04:36 PM
No, you dont understand. Its using HASH encryption, which is very hard to decode, almost immposible from what I've heardzach, it seems to be you that does not understand. First, a hash is a term for a family of encryption schemes, not any particular algorithm. Second, a hash function is one-way. This means that no one, including the browser, can recover the original content. So that means no one could steal your script, but it also means it won't work on your own page.
The script posted does not appear to be Microsoft's JavaScript encryption. And if it were, zach, it is very easy to recover the original script. Last time I searched it was easier to find the crack than it was to find the encrypter itself.
Gollum is correct. It's just one long string literal. So unless there's more to this script that wasn't posted, this script does precisely nothing.
Gill Bates
11-16-2003, 01:21 PM
This is the email I got from the author, here's what he said about this encryption.
===========================================
No. JScriptEncript does not fit my purpose and will not work in my case anyways. I use my own method of JavaScript trick to protect the copyright statement in the game.
The general idea is to use some codes to check the copyright
statement. If it has been removed or modified, some functions will be
performed (in my case the game will not run). To prevent someone from
simply removing the codes, the codes are mixed with some of the core
codes of the game and encrypted in some ways so that they cannot be
simply removed (this is not totally secure but is enough to kick out
some amateurs).
===========================================
From what I can see, his encryption is crackable, the question is... how?
Jeff Mott
11-16-2003, 03:22 PM
From what I can see, his encryption is crackable, the question is... how?As has already been said (twice) there must be more to the script that you did not post. You need to post all of it or provide a link to where you got it.
Note: and when you do, it would probably be helpful to every one if you put it into a [code][/code] block. Or even better if it is really long, attach it as a text file.