Guest User

w793n v1.7 parental control command output

a guest
Dec 13th, 2015
221
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. samantha@samantha-desktop:/tftpboot$ curl -o - -b 'tLargeScreenP=1; subType=pcSub; Authorization=Basic%20YWRtaW46YWRtaW40Mg%3D%3D; ChgPwdSubTag=' --referer 'http://192.168.1.1/userRpm/ParentCtrlRpm.htm' 'http://192.168.1.1/userRpm/ParentCtrlRpm.htm?ctrl_enable=1&parent_mac_addr=00-00-00-00-00-02&Page=1'
  2. <script type="text/javascript">
  3. var parent_ctrl_global_cfg_dyn_array = new Array(
  4. 1,
  5. 0,
  6. "00-00-00-00-00-02",
  7. "00-1c-c0-da-f3-a7",
  8. 0,0 );
  9. </SCRIPT>
  10. <script type="text/javascript">
  11. var parent_ctrl_data_param = new Array(
  12. 0,0 );
  13. </SCRIPT>
  14. <script type="text/javascript">
  15. var parent_ctrl_page_param = new Array(
  16. 1, 0, 0, 5, 0,
  17. 0,0 );
  18. </SCRIPT>
  19. <META http-equiv=Content-Type content="text/html; charset=gb2312">
  20. <HTML>
  21. <HEAD><TITLE>TL-WR703N</TITLE>
  22. <META http-equiv=Pragma content=no-cache>
  23. <META http-equiv=Expires content="wed, 26 Feb 1997 08:21:57 GMT">
  24. <LINK href="/dynaform/css_main.css" rel=stylesheet type="text/css">
  25. <SCRIPT language="javascript" src="/dynaform/common.js" type="text/javascript"></SCRIPT>
  26. <SCRIPT language="javascript" type="text/javascript"><!--
  27. if(window.parent == window){window.location.href="http://192.168.1.1";}
  28. function Click(){ return false;}
  29. document.oncontextmenu=Click;
  30. //--></SCRIPT>
  31.  
  32. <META http-equiv=Content-Type content="text/html; charset=gb2312">
  33. <script language="Javascript"><!--
  34. var LP = location.pathname;
  35. function doAll(val){if(val=="DelAll"){if(!confirm("ɾ��������Ŀ?")) return;} location.href="ParentCtrlRpm.htm?doAll="+val+"&Page="+curPage;}
  36. function doAdd(nPage){location.href="ParentCtrlRpm.htm?Add=Add&Page="+nPage;}
  37. function doPage(nPage){location.href="ParentCtrlRpm.htm?Page="+nPage;}
  38. function doHelp(){location.href="/help/ParentCtrlHelpRpm.htm";}
  39.  
  40. function ResetStatus(strInfo){window.status='';return true;}
  41. /*
  42. function enableId(id){
  43.     var enable;
  44.     if(document.forms[0].elements['enable'+id].checked == true)
  45.         enable = 1;
  46.     else
  47.         enable = 0;
  48.     location.href = LP + "?enable=" + enable + "&enableId=" + id +"&Page=" + parent_ctrl_page_param[1];
  49. }
  50. */
  51.  
  52. function doSave()
  53. {
  54.     var DF = document.forms[0];
  55.     var bEnabled = DF.elements['ctrl_enable'][0].checked?0:1;
  56.     //var bMode = DF.elements['mode_choose'][0].checked?0:1;
  57.     var pMac =  DF.elements['parent_mac_addr'].value;
  58.     //if (bMode == 0)
  59.     //{
  60.         if (false == is_macaddr(document.forms[0].parent_mac_addr.value))
  61.         {
  62.             var element = document.forms[0].parent_mac_addr;
  63.             if(element)
  64.             {
  65.                 element.focus();
  66.                 element.select();
  67.             }
  68.             return false;
  69.         }
  70.     //}
  71.     location.href = LP + "?ctrl_enable=" + bEnabled + "&parent_mac_addr=" + pMac + "&Page=" + parent_ctrl_page_param[0];
  72.     return true;
  73. }
  74. /*
  75. function doSwitchTr()
  76. {
  77.     str=style_display_on();
  78.     document.getElementById("set_pmac").style.display=(document.forms[0].mode_choose[0].checked)?str:"none";
  79. }
  80. */
  81. function doWriteMac()
  82. {
  83.     document.forms[0].parent_mac_addr.value = document.forms[0].man_mac.value.toUpperCase();
  84. }
  85. //--></script>
  86. </head>
  87. <body><center><form action="ParentCtrlRpm.htm" enctype="multipart/form-data" method="get" >
  88. <table width="662" border="0" cellspacing="0" cellpadding="0">
  89. <tr><td width="7" class="title"><img src="/images/arc.gif" width="7" height="24"></td>
  90. <td width="640" align="left" valign="middle" class="title">�ҳ���������</td></tr>
  91. <tr><td colspan="2"><table width="662" border="0" cellspacing="0" cellpadding="0">
  92. <tr><td class="vline" rowspan="15"><br></td><td width="660">
  93. <table width="610" border="0" align="center" cellpadding="0" cellspacing="0" class="space">
  94. <tr><td>��Ϊ�ҳ���������ͨ����ҳ���������ã�����С����������Ϊ��ʹ��С����PCֻ����ָ��ʱ������ָ������վ��</td></tr>
  95. <tr><td><font color="#ff0000">���ڹ����б��еķǼҳ�PC���޷�������</font></td></tr>
  96. </table>
  97. <table width="610" border="1" align="center" cellpadding="0" cellspacing="0" class="space">
  98. <tr><td>
  99. <table align="center" border="0" width="590" cellspacing="2" cellpadding="2" class="space">
  100. <TR>
  101.     <TD width="140">�ҳ����ƣ�</TD>
  102.     <TD><input name="ctrl_enable" type="radio" value="0">������&nbsp;&nbsp;<input name="ctrl_enable" type="radio" value="1" Checked>����</TD>
  103. </TR>
  104. <!--
  105. <tr><td>&nbsp;</td></tr>
  106. <tr><td width="590" align="left" colspan="2">&nbsp;&nbsp;ģʽѡ��</td></tr>
  107. <tr>
  108.     <td colspan="2" align="left">&nbsp;&nbsp;<input name="mode_choose" type="radio" value="0" onclick="doSwitchTr(0)">��Ҫ���üҳ�PC��MAC��ַ����������������PC</td>
  109. </tr>
  110. <tr>
  111.     <td colspan="2" align="left">&nbsp;&nbsp;<input name="mode_choose" type="radio" value="1" onclick="doSwitchTr(1)" Checked>��Ҫ�ڸ߼�����������С��PC��MAC��ַ</td>
  112. </tr>
  113. -->
  114. <tr id="set_pmac">
  115.     <td>�ҳ�PC��MAC��ַ��</td>
  116.     <td><input name="parent_mac_addr" type="text" class="text" value="" size="17" maxlength="17"></td>
  117. </tr>
  118. <tr id="manPc_mac">
  119.     <td>��ǰ����PC��MAC��ַ��</td>
  120.     <td><input name="man_mac" type="text" class="text" value="" size="17" maxlength="17" disabled>&nbsp;&nbsp;<input name="writeMac" type="button" class="button" id="writeMac" onClick="doWriteMac();" value="��Ϊ�ҳ�PC"  ></td>
  121. </tr>
  122.  
  123.  
  124. <tr><td align="left" colspan="2">&nbsp;&nbsp;<input type="button" value="�� ��" name="save" class="button" onclick="doSave();"></td></tr>
  125. </table>
  126. </td></tr>
  127. </table>
  128. <table width="610" border="1" align="center" cellpadding="0" cellspacing="0" class="space">
  129. <tr>
  130.     <td align="center">ID</td>
  131.     <td align="center" width="150">MAC ��ַ</td>
  132.     <td align="center" nowrap>��վ�б�</td>
  133.     <td align="center" nowrap>�ճ̼ƻ�</td>
  134.     <td align="center" nowrap>״̬</td>
  135.     <td align="center" nowrap>����</td>
  136. </tr>
  137. <script language="JavaScript">
  138. if (parent_ctrl_page_param[2] > 0)
  139. {
  140.     var row = 0;
  141.     var idStart = (parent_ctrl_page_param[0] - 1) * 8;
  142.     for(var i = 0; i < parent_ctrl_page_param[2]; i++)
  143.     {
  144.     idStart++;
  145.     row = i * parent_ctrl_page_param[3];
  146.  
  147.     document.write('<tr id="tr'+idStart+'"><td align="center">' + idStart + '</td>');
  148.     if (parent_ctrl_data_param[row] == "")
  149.         document.write('<td align="center">' + '��' + parent_ctrl_global_cfg_dyn_array[2] + '</td>');
  150.     else
  151.         document.write('<td align="center">' + parent_ctrl_data_param[row] + '</td>');
  152.        
  153.     document.write('<td align="center">' + parent_ctrl_data_param[row+1] + '</td>');
  154.  
  155.     if (parent_ctrl_data_param[row+2]==255)
  156.         document.write('<td align="center">' + '����' + '</td>');
  157.     else
  158.         document.write('<td align="center">' + parent_ctrl_data_param[row+3] + '</td>');
  159.     if (parent_ctrl_data_param[row+4] == 0)
  160.         document.write('<td align="center">' + 'ʧЧ' + '</td>');
  161.     else
  162.         document.write('<td align="center">' + '��Ч' + '</td>');
  163.     document.write('<td align="center"><a href=\"ParentCtrlRpm.htm?Modify=' +
  164.                     i+'&Page='+parent_ctrl_page_param[0]+
  165.                     '\" OnMouseOver=\"return ResetStatus(\'modify\');\">�༭</a>&nbsp;<a href=\"ParentCtrlRpm.htm?Del='+
  166.                     i+'&Page='+parent_ctrl_page_param[0]+
  167.                     '\" OnMouseOver=\"return ResetStatus(\'delete\');\">ɾ��</a></td></tr>');
  168.     }
  169.     }
  170. else
  171. {
  172.     document.write('<tr><td align="center" colspan=8>��ǰ�б�Ϊ��</td>');
  173. }
  174. </script>
  175. </table>
  176. <table width="610" align="center" border="0" cellpadding="0" cellspacing="0" class="space">
  177. <tr><td colspan="3" width="608">
  178. <input type="button" value="���ӵ�����Ŀ" name="Add" class="button" onClick="doAdd(curPage);">
  179. <input type="button" value="ʹ������Ŀ��Ч" name="EnAll" class="button" onClick="doAll('EnAll');">
  180. <input type="button" value="ʹ������ĿʧЧ" name="DisAll" class="button" onClick="doAll('DisAll');">
  181. <input type="button" value="ɾ��������Ŀ" name="DelAll" class="button" onClick="doAll('DelAll');">
  182. <!--<input type="button" value="����ָ����Ŀ" name="Find" class="button" onClick="location.href=LP + '?Find=Find';">-->
  183. </td></tr>
  184. </table>
  185. </td><td class="vline" rowspan="15"><br> </td></tr>
  186. <tr><td class="hline"><img src="/images/empty.gif" width="1" height="1"></td></tr>
  187. <tr><td height="30" class="tail">&nbsp;
  188. <input name="previous" type="button" class="button" onClick="doPage(prePage);" value="��һҳ" Disabled>
  189. &nbsp;<input name="next" type="button" class="button" onClick="doPage(NextPage);" value="��һҳ" Disabled>
  190. &nbsp;��ǰ��
  191. <select onchange="doPage(document.forms[0].selPage.value);" size="1" name="selPage" class="list">
  192. <script language="JavaScript">
  193. var pageNum = parent_ctrl_page_param[4]/8 + 1;
  194. var pIndex = 1;
  195. do
  196. {
  197.     document.write("<option value='" + pIndex + "' selected>"+ pIndex +"</option>");
  198. }while(++pIndex < pageNum)
  199. </script>
  200. </select>
  201. ҳ
  202. &nbsp; <input name="Page" type="hidden" value="1">
  203. <input name="help" type="button" class="button" onClick="doHelp();" value="�� ��"></td></tr>
  204. <tr><td class="hline"><img src="/images/empty.gif" width="1" height="1"></td></tr>
  205. </table></td></tr></table></form></center>
  206. <script language="JavaScript">
  207. var curPage = parent_ctrl_page_param[0];
  208. var prePage = (parent_ctrl_page_param[0] == 1)?1:parent_ctrl_page_param[0]-1;
  209. var NextPage = parent_ctrl_page_param[0]+1;
  210. function style_display_on()
  211. {
  212.     if (window.ActiveXObject)
  213.     { // IE
  214.         return "block";
  215.     }
  216.     else if (window.XMLHttpRequest)
  217.     { // Mozilla, Safari,...
  218.         return "table-row";
  219.     }
  220. }
  221. if (parent_ctrl_global_cfg_dyn_array[0] == 1)   document.forms[0].ctrl_enable[1].checked =true;
  222. else document.forms[0].ctrl_enable[0].checked =true;
  223. document.forms[0].parent_mac_addr.value = parent_ctrl_global_cfg_dyn_array[2];
  224. document.forms[0].Page.value = curPage;
  225. document.forms[0].previous.disabled = (parent_ctrl_page_param[0] < 2)? true : false;
  226. document.forms[0].next.disabled = (parent_ctrl_page_param[1] > 0)? false : true;
  227. document.forms[0].EnAll.disabled = (parent_ctrl_page_param[2] > 0)? false : true;
  228. document.forms[0].DisAll.disabled = (parent_ctrl_page_param[2] > 0)? false : true;
  229. document.forms[0].DelAll.disabled = (parent_ctrl_page_param[2] > 0)? false : true;
  230. //document.forms[0].Find.disabled = (parent_ctrl_page_param[2] > 0)?false:true;
  231.  
  232. document.forms[0].selPage.value = curPage;
  233. document.forms[0].man_mac.value = parent_ctrl_global_cfg_dyn_array[3].toUpperCase();
  234. </script>
  235. </body><head><meta http-equiv="pragma" content="no-cache"></head></html>
RAW Paste Data