Skrypt, który wklejasz w pole adresu po zalogowaniu się do routera przez przeglądarkę.
Kod: Zaznacz cały
javascript:addButtons(); function currentBand() {$("#dhcp_mask").show();$("#dhcp_dns").show();$.ajax({type:"GET", async : true, url: '/api/device/signal', error:function(request,status,error){alert("Signal Error:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error); }, success:function(data){vars=['rssi','rsrp','rsrq','sinr','dlbandwidth','ulbandwidth','band','cell_id','plmn'];for (i=0;i<vars.length;i++) {window[vars[i]]=extractXML(vars[i],data);$('#'+vars[i]).html(window[vars[i]]); } hex = Number(cell_id).toString(16);hex2= hex.substring(0,hex.length-2);enbid = parseInt(hex2, 16).toString();$('#enbid').html(enbid);if (plmn=='22201'){plmn='2221';} if (plmn=='22299'){plmn='22288';} if ((plmn=='22250') && (enbid.length==6)) {plmn='22288';} link_lte="http://btsearch.pl/szukaj.php?search="+enbid;$("#lteitaly").attr("href",link_lte); link_lte2="http://btsearch.pl/szukaj.php?search="+cell_id; $("#ltepoland").attr("href",link_lte2); }});$.ajax({type:"GET", async : true, url: '/api/net/net-mode', error:function(request,status,error){alert("Signal Error:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error); }, success:function(data){lteband=extractXML('LTEBand',data);$('#allowed').html(_4GType(lteband)); }}); } function extractXML(tag, data) {try {return data.split("</"+tag+">")[0].split("<"+tag+">")[1]; } catch(err) {return err.message; } } function _4GType(data) {if ((data=='20880800C5')||(data=='20000800C5')) return "AUTO"; data_out="";if ((parseInt(data,16)&0x1)==0x1){data_out="B1+";}if ((parseInt(data,16)&0x4)==0x4){data_out+="B3+";}if ((parseInt(data,16)&0x40)==0x40){data_out+="B7+";}if ((parseInt(data,16)&0x80000)==0x80000){data_out+="B20";}data_out=data_out.replace(/\++$/, ""); return data_out; } function ltebandselection() {if(arguments.length==0) {var band = prompt("Wprowad¼ numer wybranego pasma LTE.\nJe¶li chcesz u¿yæ kilku, oddziel je plusem, np. 1+3+20\nJe¶li chcesz u¿yæ wszystkich dostêpnych pasm - wpisz AUTO.\nNumery pasm w LTE:\nLTE 800 MHz to numer 20, LTE 900 MHz to 8\nLTE 1800 MHz to 3, LTE 2100 MHz to 1\nLTE 2600 MHz to 7, a TDD 2600 MHz to 38.","AUTO");if(band==null||band===""){return;} } else var band = arguments[0]; var bs = band.split("+"); var ltesum = 0;if(band.toUpperCase()==="AUTO"){ltesum = "7FFFFFFFFFFFFFFF";} else {for (var i=0;i<bs.length;i++){ltesum = ltesum + Math.pow(2,parseInt(bs[i])-1);} ltesum = ltesum.toString(16); console.log("LTEBand:"+ltesum); } $.ajax({type:"GET", async:true, url:'/html/home.html', error:function(request,status,error){alert("Token Error:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error); }, success:function(data){var datas = data.split('name="csrf_token" content="');var token = datas[datas.length-1].split('"')[0]; setTimeout(function(){$.ajax({type:"POST", async: true, url:'/api/net/net-mode', headers:{'__RequestVerificationToken':token}, contentType: 'application/xml', data:'<request><NetworkMode>03</NetworkMode><NetworkBand>3FFFFFFF</NetworkBand><LTEBand>'+ltesum+'</LTEBand></request>', success:function(nd){$("#band").html("<span style=\"color:green;\">OK</span>"); }, error:function(request,status,error){alert("Net Mode Error:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error); } }); },2000); }}); } window.setInterval(currentBand, 2500); function addButtons() {$("body").prepend("<style> .val{color:red;} </style> <div style=\"width:1000px;padding:20px;margin:0 auto;left:0;\"> <a style=\"font-size:1.4em;margin-right:30px;color:#04a;\" onclick=\"ltebandselection()\">Wybór pasm LTE</a> <div style=\"display:inline;\"> RSRQ:<span class=\"val\" id=\"rsrq\">0</span> RSRP:<span class=\"val\" id=\"rsrp\">0</span> RSSI:<span class=\"val\" id=\"rssi\">0</span> SINR:<span class=\"val\" id=\"sinr\">0</span> ENB ID:<a id=\"lteitaly\" target=\"lteitaly\" href\"#\"><span class=\"val\" style=\"font-weight:bold;text-decoration:underline;\" id=\"enbid\">0</span></a> CELL ID:<a id=\"ltepoland\" target=\"ltepoland\" href\"#\"><span class=\"val\" style=\"font-weight:bold;text-decoration:underline;\" id=\"cell_id\">0</span></a> BAND:<span class=\"val\" id=\"band\">0</span>(<span class=\"val\" id=\"dlbandwidth\">0</span>/ <span class=\"val\" id=\"ulbandwidth\">0</span>) SET:<span class=\"val\" id=\"allowed\">0</span> </div> </div> "); }