403Webshell
Server IP : 193.86.120.172  /  Your IP : 216.73.216.67
Web Server : Apache/2.4.63 (Unix)
System : Linux JServices 3.10.108 #86003 SMP Wed Oct 22 13:20:46 CST 2025 x86_64
User : kubec ( 1026)
PHP Version : 8.2.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /volume1/@appstore/SynologyApplicationService/ui/guest/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /volume1/@appstore/SynologyApplicationService/ui/guest/js/webapi.js
!function(){var t,e,n;t=window,n={},(e=function(){}).GuestPageLocation="/webman/3rdparty/SynologyApplicationService/guest/index.html",e.Request=function(t,e,n){return new Promise((function(s,u){var o=new XMLHttpRequest;o.open(t,e),o.onload=function(){this.status>=200&&this.status<300?s(o.response):u({status:this.status,statusText:o.statusText})},o.onerror=function(){u({status:this.status,statusText:o.statusText})},n&&""!==n?o.send(n):o.send()}))},e.APIRequest=function(t,n,s,u,o,r){var i=r||"/webapi/entry.cgi",a=window.location.pathname.replace(e.GuestPageLocation,i),c=window.location.origin+a;c=c+"?api="+t+"&method="+n+"&version="+s;var f="GET"==o?"GET":"POST",S="";if(u){for(var h in u)S=(S+=""===S?"":"&")+encodeURIComponent(h)+"="+encodeURIComponent(u[h]);"GET"==f&&(c+="&"+S,S="")}return new Promise((function(t,n){e.Request(f,c,S).then((function(e){try{var s=JSON.parse(e);t(s)}catch(t){n({success:!1,error:"network"})}})).catch((function(t){n({success:!1,error:"network"})}))}))},e.GetStrings=function(t){return e.Request("GET","../texts/"+t+"/strings").then((function(t){var e;t.match(/[^\r\n]+/g).forEach((function(t){if("#"!=t[0]){var s=t.match(/\[(.*?)\]/);if(null!==s&&2==s.length)return e=s[1],void(n[e]={});var u=t.match(/\s*(.*?)\s*=\s*"(.*)"\s*/);null!==u&&3==u.length&&(n[e][u[1]]=u[2])}}))}))},e.StatGuestRequest=function(t){return e.APIRequest("SYNO.SAS.Guest","stat","1",{jwt:t})},e.GetGuestRequest=function(t,n){return e.APIRequest("SYNO.SAS.Guest","get","1",{jwt:t,account:JSON.stringify(n)})},e.SetGuestRequest=function(t,n,s){return e.APIRequest("SYNO.SAS.Guest","set","1",{jwt:t,account:JSON.stringify(n),passwd:JSON.stringify(s)})},e.IsChineseArea=function(){return navigator.language.toUpperCase()=="zh-CN".toUpperCase()},t.SYNO=e,t.STRINGS=n}();

Youez - 2016 - github.com/yon3zu
LinuXploit