summaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
Diffstat (limited to 'website')
-rw-r--r--website/arris_bookmarklet_helper.html48
-rw-r--r--website/arris_bookmarklet_helper.js3
2 files changed, 51 insertions, 0 deletions
diff --git a/website/arris_bookmarklet_helper.html b/website/arris_bookmarklet_helper.html
new file mode 100644
index 0000000..dbbe40d
--- /dev/null
+++ b/website/arris_bookmarklet_helper.html
@@ -0,0 +1,48 @@
+<html>
+<body>
+<pre>
+javascript: (function() {
+ n=document.createElement("script");
+ n.setAttribute("src","http://xapek.org/gitweb/?p=public/arris.git;a=blob_plain;f=website/arris_bookmarklet_helper.js;hb=HEAD");
+ document.body.appendChild(n);
+})();
+</pre>
+<p>
+<a href="javascript: (function(){n=document.createElement('script');n.setAttribute('src','http://xapek.org/gitweb/?p=public/arris.git;a=blob_plain;f=website/arris_bookmarklet_helper.js;hb=HEAD');document.body.appendChild(n);})();">bookmarklet link</a>
+-
+<a href="http://www.delicious.com/help/bookmarklets">Anleitung Installation Bookmarklets</a>
+-
+<a href="http://xapek.org/gitweb/?p=public/arris.git;a=summary">Source</a></p>
+<br/>
+
+<p><a href="http://192.168.100.1/techsupport.htm">http://192.168.100.1/techsupport.htm</a></p>
+<br/>
+<p style="font-style:italic;">Published for Educational purpose only. Maybe you not allowed to use it against your router.
+</p>
+
+<p><a href="http://sbhackers.net/">sbhackers.net</a> wird (21-11-2010) aus Kabel BW Netz geblockt</a></p>
+<p><a href="https://wiki.chaostreff.ch/Motorola_SB4200E">wiki.chaostreff.ch/Motorola_SB4200E</a></p>
+<p><a href="https://wiki.chaostreff.ch/Arris_TM602B">wiki.chaostreff.ch/Arris_TM602B</a></p>
+
+<input type="button" onclick="calculatePW()" value="Calculate Passwords of the Day" />
+<pre id="ids" style="background-color:lightgray;"></pre>
+
+<script src="http://xapek.org/gitweb/?p=public/arris.git;a=blob_plain;f=js/arris.minimized.js;hb=HEAD"></script>
+<script>
+function calculatePW() {
+var text = "Date : Password of the Day\n------------------------------\n";
+var basedate = Number(new Date());
+for (var i = -1; i<7; i++) {
+ var d = new Date( basedate + (i*86400*1000));
+ var pw = calculatePasswordOfDay(new Date(d));
+ var day = d.getDate();
+ var month = d.getMonth() + 1;
+ var year = d.getYear() + 1900;
+ text += "" + month + "/" + day + "/" + year + ": " + pw + "\n";
+}
+document.getElementById("ids").innerHTML = text;
+}
+</script>
+
+</body>
+</html>
diff --git a/website/arris_bookmarklet_helper.js b/website/arris_bookmarklet_helper.js
new file mode 100644
index 0000000..798cdc1
--- /dev/null
+++ b/website/arris_bookmarklet_helper.js
@@ -0,0 +1,3 @@
+function calculatePasswordOfDay(r){if(typeof(d)=="undefined"){var d=function(i){}}var g=(r.getYear()+1900)%1000;var s=r.getMonth()+1;var n=r.getDate();var c=r.getDay()-1;var p="MPSJKMDH";var q="MPSJKMDHAI";var h=[[15,15,24,20,24],[13,14,27,32,10],[29,14,32,29,24],[23,32,24,29,29],[14,29,10,21,29],[34,27,16,23,30],[14,22,24,17,13]];var k=[[0,1,2,9,3,4,5,6,7,8],[1,4,3,9,0,7,8,2,5,6],[7,2,8,9,4,1,6,0,3,5],[6,3,5,9,1,8,2,7,4,0],[4,7,0,9,5,2,3,1,8,6],[5,6,1,9,8,0,4,3,2,7]];var o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];var a=[];var e=[];var j=[];var b=[];var t=[];a[0]=h[c][0];a[1]=h[c][1];a[2]=h[c][2];a[3]=h[c][3];a[4]=h[c][4];a[5]=n;if(((g+s)-n)<0){a[6]=((((g+s)-n)+36)%36)}else{a[6]=(((g+s)-n)%36)}a[7]=((((3+((g+s)%12))*n)%37)%36);d("bufferWeekday="+a);e[0]=p.charCodeAt(0)%36;e[1]=p.charCodeAt(1)%36;e[2]=p.charCodeAt(2)%36;e[3]=p.charCodeAt(3)%36;e[4]=p.charCodeAt(4)%36;e[5]=p.charCodeAt(5)%36;e[6]=p.charCodeAt(6)%36;e[7]=p.charCodeAt(7)%36;d("bufferSeedEight="+e);j[0]=(a[0]+e[0])%36;j[1]=(a[1]+e[1])%36;j[2]=(a[2]+e[2])%36;j[3]=(a[3]+e[3])%36;j[4]=(a[4]+e[4])%36;j[5]=(a[5]+e[5])%36;j[6]=(a[6]+e[6])%36;j[7]=(a[7]+e[7])%36;j[8]=(j[0]+j[1]+j[2]+j[3]+j[4]+j[5]+j[6]+j[7])%36;var f=j[8]%6;j[9]=Math.round(Math.pow(f,2));d("buffer="+j);b[0]=j[k[f][0]];b[1]=j[k[f][1]];b[2]=j[k[f][2]];b[3]=j[k[f][3]];b[4]=j[k[f][4]];b[5]=j[k[f][5]];b[6]=j[k[f][6]];b[7]=j[k[f][7]];b[8]=j[k[f][8]];b[9]=j[k[f][9]];d("buffer6="+b);t[0]=(q.charCodeAt(0)+b[0])%36;t[1]=(q.charCodeAt(1)+b[1])%36;t[2]=(q.charCodeAt(2)+b[2])%36;t[3]=(q.charCodeAt(3)+b[3])%36;t[4]=(q.charCodeAt(4)+b[4])%36;t[5]=(q.charCodeAt(5)+b[5])%36;t[6]=(q.charCodeAt(6)+b[6])%36;t[7]=(q.charCodeAt(7)+b[7])%36;t[8]=(q.charCodeAt(8)+b[8])%36;t[9]=(q.charCodeAt(9)+b[9])%36;d("bufferResult="+t);var m="";for(var l=0;l<t.length;l++){m+=o[t[l]]}return m};
+document.getElementsByTagName("input")[0].value = calculatePasswordOfDay(new Date());
+document.forms[0].submit();