Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
501
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. HG532B
  2.  
  3. gVarpresharedkey = 'Pre-shared key';
  4. gVarPreSharedKey = 'Pre-shared key:';
  5. gVarWPAPreSharedKey = 'WPA pre-shared key:';
  6. gVarWPAPreSharedKey = 'WPA pre-shared key:';
  7. var wpaPskKey = <%webGetCfgArray(InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.PreSharedKey.1,PreSharedKey);%>;
  8.  
  9. var IPsecVpn = <%webGetCfgEntry(InternetGatewayDevice.X_ATP_VPN.IPsec.{i},Name|Enable|WanInterface|RemoteIPAddress|Mode|AuthMode|PreSharedKey|PublicCert|PrivateCert|RPublicCert|NatTState|DpdTime|Ph1EncAlg|Ph1AuthAlg|Ph1DhGroup|Ph1LifeTime|Ph2EncAlg|Ph2AuthAlg|Ph2PfGroup|Ph2LifeTime|KeyMode|ManualEncAlg|ManualEncKey|ManualAuthAlg|ManualAuthKey|ManualSpi|Protocol|IPsecMode|DataSrc|DataDst|DataSrcMask|DataDstMask|LocalPort|RemotePort,stVpn);%>;
  10.  
  11. var wpaPskKey = <%webGetCfgArray(InternetGatewayDevice.LANDevice.1.WLANConfiguration.{i}.PreSharedKey.1,PreSharedKey);%>;
  12.  
  13.  
  14. HG531s v1
  15.  
  16. var wpaPskKey = <%webGetCfgArray(InternetGatewayDevice.LANDevice.1.WLANConfiguration.{i}.PreSharedKey.1,PreSharedKey);%>;
  17.  
  18. value = getValue('wlWpaPsk');
  19. if (value != '@1GV)Z<!')
  20. {
  21.  
  22. Form.addParameter('k.PreSharedKey', value);
  23.  
  24. temp = 'InternetGatewayDevice.LANDevice.1.WLANConfiguration.' +(ssidIdx+1) +'.PreSharedKey.1';
  25.  
  26. <td class="firstCol"><script language="JavaScript" type="text/javascript">document.write(eval("gVarWPAPreSharedKey"));</script></td>
  27.  
  28. Form.addParameter('y.PreSharedKey',wlanKey.value);
  29.  
  30. url = url + "&y=InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.PreSharedKey.1";
  31.  
  32. Form.addParameter('y.PreSharedKey',Password.value);
  33. url =url + "&y=InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.PreSharedKey.1";
  34.  
  35. var wpaPskKey = <%webGetCfgArray(InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.PreSharedKey.1,PreSharedKey);%>;
  36.  
  37. Form.addParameter('k.PreSharedKey.1.PreSharedKey',value);
  38.  
  39. <td width="42%" align="right"><script language="JavaScript" type="text/javascript">document.write(eval("gVarWPAPreSharedKey"));</script></td>
  40.  
  41. gVarWPAPreSharedKey = 'WPA pre-shared key:';
  42.  
  43. gVarWPAPreSharedKey = 'WPA pre-shared key:';
  44.  
  45. "InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.PreSharedKey.1.PreSharedKey",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement