Rehber TP-Link - Archer C5V Güncel Yetkilendirme, Gizli Sayfalar, CWMP/TR-069 Ayarları

Merhabalar, Türk Telekom FTTH ve FTTB abonelerine verdiği modemlerden biri olan Archer C5v modem için bir kaç gizli özelik açma ve kapatmayı kapatmayı göstereceğim. Bu cihaza gelen v1.7_220504. (4 Mayıs 2022) ile root erişimi tamamen kapatıldı. Günlerdir çeşitli topluluklar ile çeşitli denemeler yapmaktayız fakat hiçbir şekilde gerçek root erişimi sağlayamadık. Config ile daha önceden Root hesabını aktif edip erişebiliyorduk fakat config'de istediğiniz kadar "Users" kısmıyla oynarsanız oynayın cihaz otomatik varsayılan olarak alıyor o kısmı. Bu sürüme sahipseniz artık Root erişimi sağlayamayacaksınız fakat halen güncellenmediyse cihazınız CWMP ayarlarından TR-069 özeliklerini kapatırsanız güncelleme almayacaktır ve Root erişimine her zaman sahip olacaksınız. Peki imkanız mı Root erişimi? Değil bir kaç yolu var son güncellemede dahi yazılım güncelleme kısmına erişebiliyorsunuz bir kaç yol ile eski bir sürüm bulunursa veya bir arkadaşımız dumplayabilirse paylaşırsa sürüm düşürerek erişim sağlayabiliriz. Bir başka yol ise EPROM programlayıcı ile VR1200 imajını yazmak bunu denemedim henüz fakat denersem sonuçları paylaşacağım. Eğer başarısam cihaz tamamen engellerden kurtulacak ve güncel bir arayüze kavuşacak. Şimdi ise sizinle son güncelleme için yapabileceğiniz bir kaç detay ve Root erişimi sağlamak için uğraşan arkadaşlara yardımcı olarak fonksiyonlar paylaşacağım.

Gizli sayfalara nasıl ulaşabiliriz?
Console -> $.loadMain("Sayfa Adı");
Screenshot_1.png


Sayfalar:
Kod:
var menuargs = new Array(
    ["status", "status.htm", 1, "Status"],

    ["easymenu", "easydiag.htm", 1, "Easy Menu"],
    ["easydiag", "easydiag.htm", 2, "Connection Diagnostic"],
    ["easymode", "easyMode.htm", 2, "Easy Bridge"],
    ["easyWl", "easyWl.htm", 2, "Wireless Settings"],
    ["easypm", "easyPortMapping.htm", 2, "Port Mapping"],
    ["easyra", "easyRemoteAccess.htm", 2, "Remote Access"],
    ["easyla", "easyLocalAccess.htm", 2, "Local Access"],
    ["easyfw", "easyFirewall.htm", 2, "Firewall"],
    ["easydmz", "easyDmz.htm", 2, "DMZ"],
    ["qs", "qsStart.htm", 2, "Quick Setup"],
    ["easysmtp", "easySmtp.htm", 2, "SMTP Access"], 

    ["infomenu", "infoMenuWan.htm", 1, "Info Menu"],
    ["infomenuwan", "infoMenuWan.htm", 2, "WAN Info"],
    ["infomenulan", "infoMenuLan.htm", 2, "LAN Info"],
    ["infomenuwlan", "infoMenuWlan.htm", 2, "Wireless Info"],
    ["infomenusip", "infoMenuSip.htm", 2, "SIP Info"],
    ["infomenuroute", "infoMenuRoute.htm", 2, "Routing Info"],
    ["infomenutraffic", "infoMenuTraffic.htm", 2, "Traffic Info"],

    ["sysmod", "sysMode.htm", 1, "Operation Mode"],
  
    ["network", $.sysMode == "DSL" ? "wan.htm" : "ethMultiWan.htm", 1, "Network"],
    ["wan", $.sysMode == "DSL" ? "wan.htm" : "ethMultiWan.htm", 2, "WAN Settings"],
    ["usb3g",  "usb3g.htm", 2, "3G Settings"],
    ["group", "group.htm", 2, "Interface Grouping"],
      ["lan6", "lan6.htm", 2, "IPv6 LAN Settings"],
    ["macclone", "macClone.htm", 2, "MAC Clone"],
    ["alg", "alg.htm", 2, "ALG Settings"],
    ["dsl", $.sysMode == "DSL" ? "dslcfg.htm" : "no.htm", 2, "DSL Settings"],
    ["autopvc", $.sysMode == "DSL" ? "autoPVC.htm" : "no.htm", 2, "PVC Auto-detection"],
    ["ipsec", "ipsec.htm", 2, "IPSec VPN"],
    ["vpn", INCLUDE_TTNET ? "vpn.htm" : "no.htm", 2, "VPN Settings"],
    ["igmp", INCLUDE_TTNET ? "igmp.htm" : "no.htm", 2, "IGMP Settings"],

    ["iptv", $.sysMode == "DSL" ? "iptv.htm" : "no.htm", 1, "IPTV"],

    ["dhcp", "dhcp.htm", 1, "DHCP Server"],
    ["dhcpserver", "dhcp.htm", 2, "DHCP Settings"],
    ["lan", "lan.htm", 2, "LAN Settings"],
    ["dhcpclient", "dhcpClient.htm", 2, "Clients List"],
    ["addrresrv", "dhcpStatic.htm", 2, "Address Reservation"],
    ["condpool", "dhcpCond.htm", 2, "Conditional Pool"],

    [INCLUDE_LAN_WLAN_DUALBAND ? "wl2g" : "wl", "wlBasic.htm", 1,  "Wireless"],
    ["wlbasic", "wlBasic.htm", 2, "Basic Settings"],
    ["wlqss", "wlQss.htm", 2,  $.qss ? "QSS Settings" : "WPS Settings"],
    ["wlsec", "wlSec.htm", 2, "Wireless Security"],
    ["wlsche", "wlScheEdit.htm", 2, "Wireless Schedule"],
    ["wlacl", "wlAcl.htm", 2, "Wireless MAC Filtering"],
    ["wladv", "wlAdv.htm", 2, "Wireless Advanced"],
    ["wlstat", "wlStats.htm", 2, "Wireless Status"],
  
    ["wl5g", "wlBasic5G.htm", 1, "Wireless 5GHz"],
    ["wlbasic5g", "wlBasic5G.htm", 2, "Basic Settings"],
    ["wlqss5g", "wlQss5G.htm", 2,  $.qss ? "QSS Settings" : "WPS Settings"],
    ["wlsec5g", "wlSec5G.htm", 2, "Wireless Security"],
    ["wlsche5g", "wlScheEdit5G.htm", 2, "Wireless Schedule"],
    ["wlacl5g", "wlAcl5G.htm", 2, "Wireless MAC Filtering"],
    ["wladv5g", "wlAdv5G.htm", 2, "Wireless Advanced"],
    ["wlstat5g", "wlStats5G.htm", 2, "Wireless Status"],

    ["wl", "wlBasic.htm", 1,  "Wireless"],
    ["wlbasic", "wlBasic.htm", 2, "Basic Settings"],
    ["wlqss", "wlQss.htm", 2,  $.qss ? "QSS Settings" : "WPS Settings"],
    ["wlsec", "wlSec.htm", 2, "Wireless Security"],
    ["wlsche", "wlScheEdit.htm", 2, "Wireless Schedule"],
    ["wlacl", "wlAcl.htm", 2, "Wireless MAC Filtering"],
    ["wladv", "wlAdv.htm", 2, "Wireless Advanced"],
    ["wlstat", "wlStats.htm", 2, "Wireless Status"],

    ["wlguest", "wlGuest.htm", 1, "Guest Network"],
    [INCLUDE_LAN_WLAN_DUALBAND ? "wlguestBasic2G" : "wlguestBasic", "wlGuest.htm", 2, "Basic Settings"],
    ["wlguestBasic5g", "wlGuest5G.htm", 2, "Basic Settings 5GHz"],
    [INCLUDE_LAN_WLAN_DUALBAND ? "wlguestStats2G" : "wlguestStats", "wlGuestStats.htm", 2, "Guest Network Status"],
    ["wlguestStats5g", "wlGuestStats5G.htm", 2, "Guest Status 5GHz"],
  
    ["voip", "voice_account.htm", 1, "Voice"],
    ["sipac", "voice_account.htm", 2, "SIP Account"],
    ["dialplan", "voice_dialplan.htm", 2, "Dial Plan"],
    ["planlist", "voice_dialplan.htm", 3, "Dial Plan List"],
    ["fbdcall", "voice_forbiddencall.htm", 3, "Forbidden Call"],
    ["emgcall", "voice_emergencycall.htm", 3, "Emergency Call"],
    ["digitMap", "voice_digitmap.htm", 2, "Digit Map"],
    ["warmline", "voice_warmline.htm", 2, "Warmline"],
    ["sip", "voice_line.htm", 2, "Phone Setup"],
    ["callblock", "voice_callblocks.htm", 2, "Call Blocks"],
    ["callforward", "voice_callforward.htm", 2, "Call Forward"],
    ["sipadv", "voice_advance.htm", 2, "Advanced Setup"],
    ["spddial", "voice_speeddial.htm", 2, "Speed Dial"],
    ["calllog", "voice_calllog.htm", 2, "Call Log"],
    ["siplog", "voice_siplog.htm", 2, "SIP Log"],
    ["callfw", "voice_firewall.htm", 2, "Call Firewall"],
    ["callfwmod", "voice_firewall.htm", 3, "Mode Setting"],
    ["callfwbl", "voice_blacklist.htm", 3, "Black List"],
    ["callfwwl", "voice_whitelist.htm", 3, "White List"],
    ["usbmail", "voice_usbmail.htm", 2, "USB Voice Mail"],
    ["remotesipcall", "voice_remotesipcall.htm", 2, "Remote Sip Call"],
    ["featurecode", "voice_featurecode.htm", 2, "Feature Code Setting"],

    ["usb", INCLUDE_TTNET ? "serviceSettings.htm" : "usbManage.htm", 1, "USB Settings"],
    ["servicesettings", INCLUDE_TTNET ? "serviceSettings.htm" : "no.htm", 2, "Service Settings"],
    ["usbmanage", "usbManage.htm", 2, "USB Mass Storage"],
    ["usbac", "usbUserAccount.htm", 2, "User Accounts"],
    ["samba", "usbSmbSrv.htm", 2, "Storage Sharing"],
    ["ftp", "ftpSrv.htm", 2, "FTP Server"],
    ["dlna", "dlnaManage.htm", 2, "Media Server"],
    ["printer", "printSrv.htm", 2, "Print Server"],

    ["router", INCLUDE_TTNET ? "virtualServer.htm" : "defGateway.htm", 1, "Route Settings"],
    ["vs", "virtualServer.htm", 2, "Virtual Servers"],
    ["pt", "portTrigger.htm", 2, "Port Triggering"],
    ["dmz", "dmz.htm", 2, "DMZ"],
    ["upnp", "upnp.htm", 2, "UPnP"],
    ["gw", INCLUDE_TTNET ? "no.htm" : "defGateway.htm", 2, "Default Gateway"],
    ["rt", "route.htm", 2, "Static Route"],
    ["rip", "rip.htm", 2, "RIP Settings"],
    ["rtList", INCLUDE_TTNET ? "routeList.htm" : "no.htm", 2, "Routing Table"],
  
    ["router6", INCLUDE_TTNET ? "route6.htm" : "defGateway6.htm", 1, "IPv6 Route Settings" ],
    ["gw6", INCLUDE_TTNET ? "no.htm" : "defGateway6.htm", 2, "IPv6 Default Gateway"],
    ["rt6", "route6.htm", 2, "IPv6 Static Route"],
  
    ["fwd", "virtualServer.htm", 1, "Forwarding"],
    ["vs", "virtualServer.htm", 2, "Virtual Servers"],
    ["pt", "portTrigger.htm", 2, "Port Triggering"],
    ["dmz", "dmz.htm", 2, "DMZ"],
    ["upnp", "upnp.htm", 2, "UPnP"],
  
    ["fw", "fwRules.htm", 1, "Firewall"],
    ["fwrule", "fwRules.htm", 2, "Rule"],
    ["fwlan", "fwLan.htm", 2, "LAN Host"],
    ["fwwan", "fwWan.htm", 2, "WAN Host"],
    ["fwsch", "fwSche.htm", 2, "Schedule"],
    ["ddos", "ddos.htm", 2, "DDoS"],
    ["pc", "parentCtrl.htm", 2, "Parent Control"],

    ["fw6", "fw6Rules.htm", 1,  "IPv6 Firewall"],
    ["fw6rule", "fw6Rules.htm", 2,  "IPv6 Rule"],
    ["fw6lan", "fw6Lan.htm", 2,  "IPv6 LAN Host"],
    ["fw6wan", "fw6Wan.htm", 2,  "IPv6 WAN Host"],
    ["fw6sch", "fw6Sche.htm", 2,  "IPv6 Schedule"],

    ["tunnel6", "tunnel6.htm", 1,  "IPv6 Tunnel"],
  
    ["qos", "qos.htm", 1, "Quality of Service"],
    ["qosbasic", "qos.htm", 2, "Basic Settings"],
    ["qoslist", "qosList.htm", 2, "SP/WRR Settings"],
    ["tclist", INCLUDE_QOS ? "trafficCtrl.htm" : "no.htm", 2, "Bandwidth Control"],

    ["tc", INCLUDE_QOS ? "no.htm" : "trafficCtrl.htm", 1, "Bandwidth Control"],
      
    ["arp", "arpBind.htm", 1, "IP & MAC Binding"],
    ["arpbind", "arpBind.htm", 2, "Binding Settings"],
    ["arplist", "arpList.htm", 2, "ARP List"],
  
    ["ddns", "phDDNS.htm", 1, "Dynamic DNS"],

    ["diag", "diagnostic.htm", 1, "Diagnostic"],
  
    ["tools", "log.htm", 1, "System Tools"],
    ["log", "log.htm", 2, "System Log"], 
    ["applist", INCLUDE_TTNET ? "applist.htm" : "no.htm", 2, "Application List"],
    ["time", "time.htm", 2, "Time Settings"],
    ["mcl", "manageCtrl.htm", 2, "Manage Control"],
    ["cwmp", INCLUDE_TTNET ? "cwmp.htm" : "no.htm", 2, "CWMP Settings"],
    ["portmirror", INCLUDE_PORT_MIRRORING ? "portMirror.htm" : "no.htm", 2, "Port Mirror Settings"],
    ["snmp", "snmp.htm", 2, "SNMP Settings"],
    ["bnr", "backNRestore.htm", 2, "Backup & Restore"],
    ["def", "defaultCfg.htm", 2, "Factory Defaults"],
    ["pcap", INCLUDE_PKTCAP ? "packetCapture.htm" : "no.htm", 2, "WAN Packets Capture"],
    ["softup", "softup.htm", 2, "Firmware Upgrade"],
    ["restart", "restart.htm", 2, "Reboot"],
    ["stat", "stat.htm", 2, "Statistics"],
    ["ipDomainTest", "ipDomainTest.htm", 2, "IP & Domain Test"]
);

CWMP/TR-069 ayarlarını nasıl kapatabiliriz?
Console -> $.loadMain("/cwmp.htm");

Modemi nasıl güncelleyebiliriz?
Console -> $.loadMain("/softup.htm");

Sahte root alma (Ayarlar görünür fakat kaydedemezsiniz):
Console ->
$.userType="Admin"
$.loadBanner("./frame/top.htm");
$.loadMenu("./frame/menu.htm");
$.loadMain("/status.htm");

Hesapları listeleme:
Console ->
$.loadMain("manageCtrl.htm");
var Users = $.act(ACT_GL, X_TT_USERS_USER, null, null, ["level", "remoteAccessCapable", "localAccessCapable", "allowed_RA_Protocols", "allowed_LA_Protocols"]);
if ($.exe()) return;
$.each(Users, function() {
console.log(this);
});


Mevcut Hesaplar (v1.7_220504):
Kod:
{

    "__stack": "1,0,0,0,0,0", //admin
    "level": "1",
    "remoteAccessCapable": "0",
    "localAccessCapable": "1",
    "allowed_RA_Protocols": "HTTPS",
    "allowed_LA_Protocols": "HTTP,HTTPS"

}
{

    "__stack": "2,0,0,0,0,0",//root
    "level": "2",
    "remoteAccessCapable": "0",
    "localAccessCapable": "1",
    "allowed_RA_Protocols": "",
    "allowed_LA_Protocols": "HTTP"
}


DoSave() Fonksiyonu:
JavaScript:
function doSave(obj)
{
    var arg;
    var userCfg = {};
    var xttnet_usercfg = {};
    var postfix = "";
    var tmpPortEnd;
    if ($.userType == "Admin")
        postfix = "_admin";
       
    if ($.id("curPwd").value || $.id("newPwd").value || $.id("cfmPwd").value)
    {
        arg = $.id("curPwd").value;
        if (arg === "")
            return $.alert(ERR_USER_OLD_PWD_EMPTY);
        if ($.asc(arg, true))
            return $.alert(ERR_USER_OLD_PWD_ASCII);
        userCfg.oldPwd = arg;
   
        arg = $.id("newPwd").value;
        if (arg === "")
            return $.alert(ERR_USER_PWD_EMPTY);
        if ($.asc(arg, true))
            return $.alert(ERR_USER_PWD_ASCII);
        userCfg.pwd = arg;
       
        if (arg !== $.id("cfmPwd").value)
            return $.alert(ERR_USER_NAME_PWD_CONFLICT);
           
        if (INCLUDE_TTNET)
        {
            if (arg == $.id("curPwd").value)
            {
                return $.alert(ERR_USER_PWD_SAME);
            }
            //if (pwdcheck(arg))

            if (!validatePassword(arg,{
                length:   [8, 15],
                lower:    1,
                upper:    1,
                numeric:  1,
                special:  1,
                badWords: ["password", "steven", "levithan"],
                badSequenceLength: 4
            }))
                return;
        }
    }
    $.each(userList, function() {
        if((this.level == 1 && $.userType == "User") || (this.level == 2 && $.userType == "Admin"))
        {
            for(var i in this){
                if (i != "level")
                    xttnet_usercfg[i] = this[i];  
            }      
        }              
    });
    var httpCfg = {};
    arg = $.id("l_http_en" + postfix).checked;
    httpCfg.httpLocalEnabled = arg ? 1 : 0;

    if (arg) {
        arg = $.id("l_http_port" + postfix).value;
        if ($.num(arg, 80, [1024, 65535], true))
            return $.alert(ERR_HTTP_LOCAL_PORT);
        httpCfg.httpLocalPort = parseInt(arg, 10);
    }

    arg = $.id("r_http_en" + postfix).checked;
    httpCfg.httpRemoteEnabled = arg ? 1 : 0;

    if (arg) {
        if (INCLUDE_TTNET)
        {
            if (bDefaultUserCfg)
                return $.alert(ERR_HTTP_HTTPS_DEFAULT_CONFIG);
        }
       
        arg = $.id("r_http_port" + postfix).value;

        if ($.num(arg, 80, [1024, 65535], true))
        {  
            return $.alert(ERR_HTTP_REMOTE_PORT);
        }
        for (var index = 0; index < pppPortMappingList.length; index++)
        {
            if (pppPortMappingList[index].externalPortEndRange < pppPortMappingList[index].externalPort)
            {
                if (pppPortMappingList[index].X_TP_ExternalPortEnd < pppPortMappingList[index].externalPort)
                {
                    tmpPortEnd = pppPortMappingList[index].externalPort;
                }
                else
                {
                    tmpPortEnd = pppPortMappingList[index].X_TP_ExternalPortEnd;
                }
            }
            else
            {
                tmpPortEnd = pppPortMappingList[index].externalPortEndRange;
            }

            if (arg <= tmpPortEnd && arg >= pppPortMappingList[index].externalPort)
                return $.alert(ERR_HTTP_REMOTE_PM_CONFILICT);
        }
        for (var index = 0; index < ipPortMappingList.length; index++)
        {
            if (ipPortMappingList[index].externalPortEndRange < ipPortMappingList[index].externalPort)
            {
                if (ipPortMappingList[index].X_TP_ExternalPortEnd < ipPortMappingList[index].externalPort)
                {
                    tmpPortEnd = ipPortMappingList[index].externalPort;
                }
                else
                {
                    tmpPortEnd = ipPortMappingList[index].X_TP_ExternalPortEnd;
                }
            }
            else
            {
                tmpPortEnd = ipPortMappingList[index].externalPortEndRange;
            }

            if (arg <= tmpPortEnd && arg >= ipPortMappingList[index].externalPort)
                return $.alert(ERR_HTTP_REMOTE_PM_CONFILICT);
        }
        arg = parseInt(arg, 10);  
        if (arg == httpCfg.httpsLocalPort)
            return $.alert(ERR_HTTP_REMOTE_HTTPS_LOCAL_CONFILICT);
        httpCfg.httpRemotePort = arg;
    }

    arg = $.id("l_https_en" + postfix).checked;
    httpCfg.httpsLocalEnabled = arg ? 1 : 0;
    if(arg)
    {
        arg = $.id("l_https_port" + postfix).value;
        if ($.num(arg, 443, [1024, 65535], true))
            return $.alert(ERR_HTTPS_LOCAL_PORT);
        httpCfg.httpsLocalPort = parseInt(arg, 10);
    }
   
    arg = $.id("r_https_en" + postfix).checked;
    httpCfg.httpsRemoteEnabled = arg ? 1 : 0;
    if (arg) {
        if (INCLUDE_TTNET)
        {
            if (bDefaultUserCfg)
                return $.alert(ERR_HTTP_HTTPS_DEFAULT_CONFIG);
        }
       
        arg = $.id("r_https_port" + postfix).value;
        if ($.num(arg, 443, [1024, 65535], true))
            return $.alert(ERR_HTTPS_REMOTE_PORT);
        arg = parseInt(arg, 10);  
        if (arg == httpCfg.httpssLocalPort)
            return $.alert(ERR_HTTP_REMOTE_HTTPS_LOCAL_CONFILICT);
        httpCfg.httpsRemotePort = arg;
    }
   
    if ($.userType == "Admin")
    {
        arg = $.id("r_telnet_en" + postfix).checked;
        if (arg)
        {
            arg = $.id("r_telnet_port" + postfix).value;
            if ($.num(arg, 23, [1024, 65535], true))
                return $.alert(ERR_TELNET_REMOTE_PORT);
        }
       
        arg = $.id("l_telnet_en" + postfix).checked;
        if (arg)
        {          
            arg = $.id("l_telnet_port" + postfix).value;
            if ($.num(arg, 23, [1024, 65535], true))
                return $.alert(ERR_TELNET_LOCAL_PORT);
        }
       
        arg = $.id("r_ssh_en" + postfix).checked;
        if (arg)
        {
            arg = $.id("r_ssh_port" + postfix).value;
            if ($.num(arg, 22, [1024, 65535], true))
                return $.alert(ERR_SSH_REMOTE_PORT);
        }
       
        arg = $.id("l_ssh_en" + postfix).checked;
        if (arg)
        {          
            arg = $.id("l_ssh_port" + postfix).value;
            if ($.num(arg, 22, [1024, 65535], true))
                return $.alert(ERR_SSH_LOCAL_PORT);
        }
    }
   
    var localAccessProtocolPortList;
    var remoteAccessProtocolPortList;

    localAccessProtocolPortList = UILocalAccess.port.split(',');
    remoteAccessProtocolPortList = UIRemoteAccess.port.split(',');;
   
    UILocalAccess.port = "";
    UIRemoteAccess.port = "";

    if (INCLUDE_TTNET)
    {
        if (httpCfg.httpRemoteEnabled == 1)
        {
            xttnet_usercfg.remoteAccessCapable = 1;
            if (-1 == xttnetCheckProtoInList(xttnet_usercfg.allowed_RA_Protocols, "HTTP"))
            {
                xttnet_usercfg.allowed_RA_Protocols = xttnetAddProtoInList(xttnet_usercfg.allowed_RA_Protocols, "HTTP");
            }
            UIRemoteAccess.port += httpCfg.httpRemotePort + ",";
        }
        else
        {
            if (0 <= xttnetCheckProtoInList(xttnet_usercfg.allowed_RA_Protocols, "HTTP"))
            {
                xttnet_usercfg.allowed_RA_Protocols = xttnetDelProtoFromList(xttnet_usercfg.allowed_RA_Protocols, "HTTP");
            }
            UIRemoteAccess.port += remoteAccessProtocolPortList[0] + ",";
        }
   
        if (httpCfg.httpLocalEnabled == 1)
        {
            xttnet_usercfg.localAccessCapable = 1;
            if (-1 == xttnetCheckProtoInList(xttnet_usercfg.allowed_LA_Protocols, "HTTP"))
            {
                xttnet_usercfg.allowed_LA_Protocols = xttnetAddProtoInList(xttnet_usercfg.allowed_LA_Protocols, "HTTP");
            }
            UILocalAccess.port += httpCfg.httpLocalPort + ",";
        }
        else
        {
            if (0 <= xttnetCheckProtoInList(xttnet_usercfg.allowed_LA_Protocols, "HTTP"))
            {
                xttnet_usercfg.allowed_LA_Protocols = xttnetDelProtoFromList(xttnet_usercfg.allowed_LA_Protocols, "HTTP");
            }
            UILocalAccess.port += localAccessProtocolPortList[0] + ",";
        }

        if (httpCfg.httpsRemoteEnabled == 1)
        {
            xttnet_usercfg.remoteAccessCapable = 1;
            if (-1 == xttnetCheckProtoInList(xttnet_usercfg.allowed_RA_Protocols, "HTTPS"))
            {
                xttnet_usercfg.allowed_RA_Protocols = xttnetAddProtoInList(xttnet_usercfg.allowed_RA_Protocols, "HTTPS");
            }
            UIRemoteAccess.port += httpCfg.httpsRemotePort + ",";
        }
        else
        {
            if (0 <= xttnetCheckProtoInList(xttnet_usercfg.allowed_RA_Protocols, "HTTPS"))
            {
                xttnet_usercfg.allowed_RA_Protocols = xttnetDelProtoFromList(xttnet_usercfg.allowed_RA_Protocols, "HTTPS");
            }
            UIRemoteAccess.port += remoteAccessProtocolPortList[1] + ",";
        }
   
        if (httpCfg.httpsLocalEnabled == 1)
        {
            xttnet_usercfg.localAccessCapable = 1;
            if (-1 == xttnetCheckProtoInList(xttnet_usercfg.allowed_LA_Protocols, "HTTPS"))
            {
                xttnet_usercfg.allowed_LA_Protocols = xttnetAddProtoInList(xttnet_usercfg.allowed_LA_Protocols, "HTTPS");
            }
            UILocalAccess.port += httpCfg.httpsLocalPort + ",";
        }
        else
        {
            if (0 <= xttnetCheckProtoInList(xttnet_usercfg.allowed_LA_Protocols, "HTTPS"))
            {
                xttnet_usercfg.allowed_LA_Protocols = xttnetDelProtoFromList(xttnet_usercfg.allowed_LA_Protocols, "HTTPS");
            }
            UILocalAccess.port += localAccessProtocolPortList[1] + ",";
        }
       
        if ($.userType == "Admin")
        {
            if ($.id("r_telnet_en" + postfix).checked == 1)
            {
                xttnet_usercfg.remoteAccessCapable = 1;
                if (-1 == xttnetCheckProtoInList(xttnet_usercfg.allowed_RA_Protocols, "TELNET"))
                {
                    xttnet_usercfg.allowed_RA_Protocols = xttnetAddProtoInList(xttnet_usercfg.allowed_RA_Protocols, "TELNET");
                }
                UIRemoteAccess.port += $.id("r_telnet_port" + postfix).value + ",";
            }
            else
            {
                if (0 <= xttnetCheckProtoInList(xttnet_usercfg.allowed_RA_Protocols, "TELNET"))
                {
                    xttnet_usercfg.allowed_RA_Protocols = xttnetDelProtoFromList(xttnet_usercfg.allowed_RA_Protocols, "TELNET");
                }
                UIRemoteAccess.port += remoteAccessProtocolPortList[2] + ",";
            }
       
            if ($.id("l_telnet_en" + postfix).checked == 1)
            {
                xttnet_usercfg.localAccessCapable = 1;
                if (-1 == xttnetCheckProtoInList(xttnet_usercfg.allowed_LA_Protocols, "TELNET"))
                {
                    xttnet_usercfg.allowed_LA_Protocols = xttnetAddProtoInList(xttnet_usercfg.allowed_LA_Protocols, "TELNET");
                }
                UILocalAccess.port += $.id("l_telnet_port" + postfix).value + ",";
            }
            else
            {
                if (0 <= xttnetCheckProtoInList(xttnet_usercfg.allowed_LA_Protocols, "TELNET"))
                {
                    xttnet_usercfg.allowed_LA_Protocols = xttnetDelProtoFromList(xttnet_usercfg.allowed_LA_Protocols, "TELNET");
                }
                UILocalAccess.port += localAccessProtocolPortList[2] + ",";
            }
           
            if ($.id("r_ssh_en" + postfix).checked == 1)
            {
                xttnet_usercfg.remoteAccessCapable = 1;
                if (-1 == xttnetCheckProtoInList(xttnet_usercfg.allowed_RA_Protocols, "SSH"))
                {
                    xttnet_usercfg.allowed_RA_Protocols = xttnetAddProtoInList(xttnet_usercfg.allowed_RA_Protocols, "SSH");
                }
                UIRemoteAccess.port += $.id("r_ssh_port" + postfix).value + ",";
            }
            else
            {
                if (0 <= xttnetCheckProtoInList(xttnet_usercfg.allowed_RA_Protocols, "SSH"))
                {
                    xttnet_usercfg.allowed_RA_Protocols = xttnetDelProtoFromList(xttnet_usercfg.allowed_RA_Protocols, "SSH");
                }
                UIRemoteAccess.port += remoteAccessProtocolPortList[3] + ",";
            }
       
            if ($.id("l_ssh_en" + postfix).checked == 1)
            {
                xttnet_usercfg.localAccessCapable = 1;
                if (-1 == xttnetCheckProtoInList(xttnet_usercfg.allowed_LA_Protocols, "SSH"))
                {
                    xttnet_usercfg.allowed_LA_Protocols = xttnetAddProtoInList(xttnet_usercfg.allowed_LA_Protocols, "SSH");
                }
                UILocalAccess.port += $.id("l_ssh_port" + postfix).value + ",";
            }
            else
            {
                if (0 <= xttnetCheckProtoInList(xttnet_usercfg.allowed_LA_Protocols, "SSH"))
                {
                    xttnet_usercfg.allowed_LA_Protocols = xttnetDelProtoFromList(xttnet_usercfg.allowed_LA_Protocols, "SSH");
                }
                UILocalAccess.port += localAccessProtocolPortList[3] + ",";
            }
        }
    }
   
    var appCfg = {};
    arg = $.id("l_host" + postfix).value;
    if (arg !== "" && $.ifip(arg, true) && $.mac(arg, true))
        return $.alert(ERR_APP_LOCAL_HOST);
    if (!$.ifip(arg, true)) appCfg.localHost = $.num2ip($.ip2num(arg));
    else appCfg.localHost = arg.toUpperCase();

    arg = $.id("r_host" + postfix).value;
    if (arg !== "" && $.ifip(arg, true) && $.mac(arg, true))
        return $.alert(ERR_APP_REMOTE_HOST);
    if (!$.ifip(arg, true)) appCfg.remoteHost = $.num2ip($.ip2num(arg));
    else appCfg.remoteHost = arg.toUpperCase();
   
    var refresh;
    var newPort = bSecured ? (clientLocal ? httpCfg.httpsLocalPort : httpCfg.httpsRemotePort) : (clientLocal ? httpCfg.httpLocalPort : httpCfg.httpRemotePort);
    if (clientLocal && appCfg.localHost && appCfg.localHost != clientIp && appCfg.localHost != clientMac
        || !clientLocal && appCfg.remoteHost && appCfg.remoteHost != clientIp && appCfg.remoteHost != clientMac)
    {
        if (!confirm(c_str.refresh_dis)) return;
        refresh = true;
    }
    else if (newPort != oldPort)
    {
        if (!confirm(c_str.refresh)) return;
        refresh = true;
    }
    $.addLoading(obj);
   
    if (INCLUDE_ACL)
    {
        var arg = {};  
        arg.IPStart = "0.0.0.0";
        arg.IPEnd = "0.0.0.0";
        arg.service = "Ping";
        if (($.userType == "User" && ($.id("pingRemote").checked == true || $.id("pingLocal").checked == true)) || ($.userType == "Admin" && ($.id("l_icmp_en" + postfix).checked == true || $.id("r_icmp_en" + postfix).checked == true)))
        {
            if (INCLUDE_TTNET)
            {
                if (bDefaultUserCfg == true && $.id("pingRemote").checked == true)
                {
                    $.removeLoading()
                    return $.alert(ERR_HTTP_HTTPS_DEFAULT_CONFIG);
                }
            }
            arg.enable = 1;
            if (($.userType == "User" && ($.id("pingRemote").checked == true && $.id("pingLocal").checked == true)) || ($.userType == "Admin" && ($.id("l_icmp_en" + postfix).checked == true && $.id("r_icmp_en" + postfix).checked == true)))
            {
                arg.location = "Both";
            }
            else if (($.userType == "User" && $.id("pingRemote").checked == true) || ($.userType == "Admin" && $.id("r_icmp_en" + postfix).checked == true))
            {
                arg.location = "Remote";
            }
            else
            {
                arg.location = "Local";
            }
        }
        else
        {
            arg.enable = 0;
        }  
        $.act(aclStk ? ACT_SET : ACT_ADD, ACL_CFG, aclStk ? aclStk : null, null, arg);
    }
   
    if (userCfg.oldPwd)
    {
        if (INCLUDE_HTTP_RSA_ENCRYPT)
        {
            userCfg.oldPwd = rsaEncrypt(userCfg.oldPwd, nn, ee);
            userCfg.pwd = rsaEncrypt(userCfg.pwd, nn, ee);
        }
        $.act(ACT_CGI, "/cgi/auth", null, null, userCfg);
    }
    $.act(ACT_SET, HTTP_CFG, null, null, httpCfg);
    $.act(ACT_SET, APP_CFG, null, null, appCfg);
    if (INCLUDE_TTNET)
    {      
        $.act(ACT_SET, X_TT_USERS_USER, xttnet_usercfg.__stack, null, xttnet_usercfg);
        $.act(ACT_SET, X_TT_UI_LA, UILocalAccess.__stack, null, {"port": UILocalAccess.port});
        $.act(ACT_SET, X_TT_UI_RA, UIRemoteAccess.__stack, null, {"port": UIRemoteAccess.port});
    }
    $.exe(function(ret){
        if (!ret) {
            if (refresh)
                $.refresh(null, newPort);
            else
            {
                if(userCfg.oldPwd)
                {
                    $.deleteCookie("Authorization");
                }
                    $.reload();
            }
        }
        else
        {
            $.errBack(ret,"manageCtrl.htm");
        }
    });
}
 
Son düzenleyen: Moderatör:
Eline sağlık, güzel bilgi oldu. Bende test ve bazı denemeler içinde kelepir fiyata aldım modemi, kullanmak amacım değil lakin içeriğini merak ediyorum.
 
Cihazı kullanmadığım için güncel durumu için bir şey diyemiyorum ne yazık ki. Sizlere de önerim arza kaydı açtırıp ZTE Wi-Fi 6 modemi talep etmeniz.
 
Cihazı kullanmadığım için güncel durumu için bir şey diyemiyorum ne yazık ki. Sizlere de önerim arza kaydı açtırıp ZTE Wi-Fi 6 modemi talep etmeniz.

VC220-g2u cihazı vardı elimde. Root atıldıktan sonra sayenizde cwmp bölümüne girip tr69u iptal edebildim. Cihaz böyle çok güzel şekilde çalışıyor. Wifi'lerin ülke değişikliği yapabilinse kapsama alanı da yükseltilebilir. Ülke yasalarımıza uymuyor ama işe yarar yani.
 

Geri
Yukarı