PDA

View Full Version : What does this weird javascript do?



newbtophp
02-21-2010, 03:43 AM
What does this weird javascript do? :eek:


<script>
curwin = false;
window.popup0x = function popup0x(id) {

if(!window.errors2) return;
var el = window.errors2['a'+id];
if(!el) return;

var u = el['u'];
var t = el['t'];


if(curwin) {
try {
if(!curwin.closed)
curwin.close();
curwin = false;
}
catch(e){}
}

var f = 'popup'+t+'x(u)';
eval(f);

if(curwin) {
try {
curwin.document.close();
curwin.focus();
}
catch(e) {}
}
}
</script>

<a onclick="popup0x(443094);" href="#" target="_blank">Test</a>

djr33
02-21-2010, 06:39 AM
It looks like it handles making/controlling/closing popups. I don't know the specifics. Someone else can probably explain the individual lines if you need that.

I also don't think that's the whole script-- it looks like there is more going on somewhere else (maybe in the popup window).

newbtophp
02-21-2010, 06:37 PM
Cool, thanks, anyone else can add? : D

dadum01
06-29-2010, 11:00 PM
thats the script for watch-movies-tv.info

the values are dynamicly loaded for that javascript function to work as you can see below. This is the most secure procedure ive seen.


GET moviedata5.php?movieid=20175&0.0945293921977282
http://www.watch-movies-tv.info/moviedata5.php?movieid=20175&0.0945293921977282

200 OK

watch-movies-tv.info

2.8 KB


133ms

152 requests

157.7 KB

(126 KB from cache)
2.62s (onload: 2.77s)

1window.errors2 = new Array();window.errors2["a568974"] = new Array();window.errors2["a568974"]["u"]="";window.errors2["a568974"]["t"]="6";window.errors2["a568974"]["i"]="568974";window.errors2["a568142"] = new Array();window.errors2["a568142"]["u"]="";window.errors2["a568142"]["t"]="6";window.errors2["a568142"]["i"]="568142";window.errors2["a574220"] = new Array();window.errors2["a574220"]["u"]="http://loombo.com/2jpu0r7j710u";window.errors2["a574220"]["t"]="6";window.errors2["a574220"]["i"]="574220";window.errors2["a558799"] = new Array();window.errors2["a558799"]["u"]="";window.errors2["a558799"]["t"]="6";window.errors2["a558799"]["i"]="558799";window.errors2["a559676"] = new Array();window.errors2["a559676"]["u"]="";window.errors2["a559676"]["t"]="6";window.errors2["a559676"]["i"]="559676";window.errors2["a558827"] = new Array();window.errors2["a558827"]["u"]="http://www.wisevid.com/play?v=1tbgfdc9x5fc";window.errors2["a558827"]["t"]="6";window.errors2["a558827"]["i"]="558827";window.errors2["a559675"] = new Array();window.errors2["a559675"]["u"]="http://www.ufliq.com/ztpbv8mgjniq";window.errors2["a559675"]["t"]="6";window.errors2["a559675"]["i"]="559675";window.errors2["a558798"] = new Array();window.errors2["a558798"]["u"]="http://www.movshare.net/video/4312971912cda";window.errors2["a558798"]["t"]="6";window.errors2["a558798"]["i"]="558798";window.errors2["a559653"] = new Array();window.errors2["a559653"]["u"]="http://hqstage.com/Video-577fa31270db20c59dde493c197359c4";window.errors2["a559653"]["t"]="6";window.errors2["a559653"]["i"]="559653";window.errors2["a568141"] = new Array();window.errors2["a568141"]["u"]="http://www.fairyshare.com/watch-fc2275802127404a8";window.errors2["a568141"]["t"]="6";window.errors2["a568141"]["i"]="568141";window.errors2["a559047"] = new Array();window.errors2["a559047"]["u"]="";window.errors2["a559047"]["t"]="6";window.errors2["a559047"]["i"]="559047";window.errors2["a567711"] = new Array();window.errors2["a567711"]["u"]="http://movstore.com/fd.php?Id=1045";window.errors2["a567711"]["t"]="6";window.errors2["a567711"]["i"]="567711";window.errors2["a558797"] = new Array();window.errors2["a558797"]["u"]="http://www.movshare.net/video/31f36950b5ea3";window.errors2["a558797"]["t"]="6";window.errors2["a558797"]["i"]="558797";window.errors2["a567809"] = new Array();window.errors2["a567809"]["u"]="http://frogmovz.com/hldj01ci8v55";window.errors2["a567809"]["t"]="6";window.errors2["a567809"]["i"]="567809";window.errors2["a558712"] = new Array();window.errors2["a558712"]["u"]="http://vidbox.net/file.php?fd=5226943";window.errors2["a558712"]["t"]="6";window.errors2["a558712"]["i"]="558712";window.errors2["a574549"] = new Array();window.errors2["a574549"]["u"]="http://www.divxlink.com/ip34mmm00qme";window.errors2["a574549"]["t"]="6";window.errors2["a574549"]["i"]="574549";window.errors2["a558828"] = new Array();window.errors2["a558828"]["u"]="";window.errors2["a558828"]["t"]="6";window.errors2["a558828"]["i"]="558828";window.errors2["a567709"] = new Array();window.errors2["a567709"]["u"]="http://mpfour.net/fd.php?Id=1845";window.errors2["a567709"]["t"]="6";window.errors2["a567709"]["i"]="567709";window.errors2["a567784"] = new Array();window.errors2["a567784"]["u"]="";window.errors2["a567784"]["t"]="6";window.errors2["a567784"]["i"]="567784";window.errors2["a559065"] = new Array();window.errors2["a559065"]["u"]="";window.errors2["a559065"]["t"]="6";window.errors2["a559065"]["i"]="559065";window.errors2["a568710"] = new Array();window.errors2["a568710"]["u"]="http://www.tomwans.com/video/639cee1ba4926604dda6fcb6904ed940/Splice";window.errors2["a568710"]["t"]="6";window.errors2["a568710"]["i"]="568710";window.errors2["a559711"] = new Array();window.errors2["a559711"]["u"]="http://www.videoweed.com/file/2b8c45acb8b00";window.errors2["a559711"]["t"]="6";window.errors2["a559711"]["i"]="559711";window.errors2["a559018"] = new Array();window.errors2["a559018"]["u"]="";window.errors2["a559018"]["t"]="6";window.errors2["a559018"]["i"]="559018";window.errors2["a559201"] = new Array();window.errors2["a559201"]["u"]="";window.errors2["a559201"]["t"]="6";window.errors2["a559201"]["i"]="559201";window.errors2["a558714"] = new Array();window.errors2["a558714"]["u"]="http://deditv.com/play.php?v=7997823";window.errors2["a558714"]["t"]="6";window.errors2["a558714"]["i"]="558714";window.errors2["a567810"] = new Array();window.errors2["a567810"]["u"]="";window.errors2["a567810"]["t"]="6";window.errors2["a567810"]["i"]="567810";window.errors2["a558715"] = new Array();window.errors2["a558715"]["u"]="";window.errors2["a558715"]["t"]="6";window.errors2["a558715"]["i"]="558715";window.errors2["a559054"] = new Array();window.errors2["a559054"]["u"]="http://www.movshare.net/video/0eea5487029ce";window.errors2["a559054"]["t"]="6";window.errors2["a559054"]["i"]="559054";window.errors2["a559017"] = new Array();window.errors2["a559017"]["u"]="http://loombo.com/71l1g6qit3mn";window.errors2["a559017"]["t"]="6";window.errors2["a559017"]["i"]="559017";window.errors2["a568064"] = new Array();window.errors2["a568064"]["u"]="";window.errors2["a568064"]["t"]="6";window.errors2["a568064"]["i"]="568064";window.errors2["a568063"] = new Array();window.errors2["a568063"]["u"]="http://stillex.com/iowxkhqsi12f/";window.errors2["a568063"]["t"]="6";window.errors2["a568063"]["i"]="568063";window.errors2["a567811"] = new Array();window.errors2["a567811"]["u"]="http://karambavidz.com/ro2gyvzdzddj";window.errors2["a567811"]["t"]="6";window.errors2["a567811"]["i"]="567811";window.errors2["a558780"] = new Array();window.errors2["a558780"]["u"]="http://www.novamov.com/video/a05deb410631a";window.errors2["a558780"]["t"]="6";window.errors2["a558780"]["i"]="558780";window.errors2["a575191"] = new Array();window.errors2["a575191"]["u"]="";window.errors2["a575191"]["t"]="6";window.errors2["a575191"]["i"]="575191";window.errors2["a559005"] = new Array();window.errors2["a559005"]["u"]="http://www.2gb-hosting.com/v/d84df41475f17cfedd281e28f3416547/5849fc2753c8381.avi.html";window.errors2["a559005"]["t"]="6";window.errors2["a559005"]["i"]="559005";window.errors2["a567781"] = new Array();window.errors2["a567781"]["u"]="http://dgvid.com/fd.php?Id=545";
...CONTINUED......