| Server IP : 104.21.25.182 / Your IP : 216.73.217.68 Web Server : Apache System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : nobi37te ( 1003) PHP Version : 8.2.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/nobi37te/public_html/wp-content/plugins/security-malware-firewall/js/ |
Upload File : |
function spbcGet2FAAppQrCode(){var e={};let t={};return e.security=spbcSettings.ajax_nonce,e.action="spbc_get_2fa_app_qr_code",jQuery.ajax({type:"POST",async:!1,url:spbcSettings.ajaxurl,data:e,success:function(e){t=e}}),t}function spbcCheck2FAAppCode(){var e={};e.security=spbcSettings.ajax_nonce,e.action="spbc_check_2fa_app_code",e.code=jQuery("#spbct-2fa-app-qr-code input").val(),jQuery.ajax({type:"POST",async:!1,url:spbcSettings.ajaxurl,data:e,success:function(e){var t;e.success?(jQuery("#spbct-2fa-app-qr-code").dialog("close"),0<(t=jQuery("form#your-profile input#submit")).length&&t.click()):alert(e.data)}})}function spbcDisable2FAApp(e){var t={};t.security=spbcSettings.ajax_nonce,t.action="spbc_disable_2fa_app",t.user_id=jQuery(e).data("user-id"),jQuery.ajax({type:"POST",async:!1,url:spbcSettings.ajaxurl,data:t,success:function(e){e.success?document.location.reload():alert(e.data)}})}function spbcCheckVulnerability(e,t="install"){var s={};s.security=spbcSettings.ajax_nonce,s.action="install"===t?"spbc_check_vulnerability_install":"spbc_check_vulnerability_list",s.list=e,jQuery.ajax({type:"POST",async:!1,url:spbcSettings.ajaxurl,data:s,success:function(e){e.success?("install"===t&&spbcCheckVulnerabilityInstallRender(e.list,e.msg),"list"===t&&spbcCheckVulnerabilityListRender(e.list)):console.log(e)}})}function spbcCheckVulnerabilityListRender(e){let t,s;e.forEach(e=>{(s=document.createElement("div")).classList.add("notice","notice-error","error-message","spbc-vulnerable-notice"),s.innerHTML=e.msg,(t=document.querySelector(".themes .theme[data-slug="+e.slug+"]"))&&t.appendChild(s)})}function spbcCheckVulnerabilityInstallRender(e,t){let s,c=document.createElement("div");c.classList.add("notice"),c.innerHTML="<p>"+t+"</p>",e.forEach(e=>{(s=document.querySelector(".theme-id-container .theme-actions a[data-slug="+e+"]"))&&s.parentNode.parentNode.parentNode.appendChild(c)})}function spbcGetPassLeak(){let t={};t.security=spbcSettings.ajax_nonce,t.action="spbc_check_pass_leak",t.user_ids=[],document.querySelectorAll("table.users #the-list tr[id]").forEach(e=>t.user_ids.push(e.getAttribute("id").split("-")[1])),jQuery.ajax({type:"POST",async:!1,url:spbcSettings.ajaxurl,data:t,success:function(n){document.querySelectorAll("table.users #the-list tr[id]").forEach(e=>{var t,s,c=e.getAttribute("id").split("-")[1];n.data[c]&&((t=document.createElement("span")).textContent=n.data[c].text,"safe"===n.data[c].status&&(t.classList.add("spbcGreen"),(s=document.createElement("img")).src=spbcSettings.img_path+"/yes.png",s.style.marginLeft="5px",t.appendChild(s)),"leaked"===n.data[c].status&&(console.log(n.data[c]),t.classList.add("spbcRed"),(s=document.createElement("i")).classList.add("spbc-icon-attention-alt"),s.style.backgroundColor="#d63638",s.style.color="#fff",s.style.borderRadius="50%",s.style.fontSize="10px",s.style.padding="2px",s.style.marginLeft="5px",t.appendChild(s)),e.querySelector(".column-spbc_pass_check").appendChild(t))})}})}function spbcSummaryShowCDNCheckerTable(){event.preventDefault();var e=document.getElementById("spbc_stats_cdn_checker_table");void 0!==e&&("block"===e.style.display?e.style.display="none":e.style.display="block")}function spbcHandleBannersDismissing(){var e=jQuery("body");e.on("click",".spbct-notice-dismiss-link",function(e){jQuery(e.target).siblings(".notice-dismiss").click()}),e.on("click",".spbc-notice .notice-dismiss",function(c){var n,a,i=jQuery(c.target).parent(".notice").attr("id");if(i&&(spbcSendAJAXRequest({action:"spbc_dismiss_banner",banner_id:i},{}),"undefined"!=typeof spbcSettings)&&spbcSettings.hasOwnProperty("spbctNoticeDismissSuccess")){let e=spbcSettings.spbctNoticeDismissSuccess,t="",s="";if("string"==typeof e){try{e=JSON.parse(e)}catch(c){e=[]}for(var l of e)l.hasOwnProperty("bannerName")&&l.hasOwnProperty("postNoticeText")&&(n=l.bannerName,-1!==i.indexOf(n)&&(t=l.postNoticeText),l.hasOwnProperty("noticeLevel"))&&(s=l.noticeLevel)}""!==t&&(a='<div id="spbct-notice-dismiss-success" class="'+("notice "+s+" is-dismissible")+'"><p>'+t+"</p></div>",jQuery(c.target).parent(".notice").after(a),setTimeout(function(){jQuery("#spbct-notice-dismiss-success").fadeOut()},5e3))}})}function spbcHighlightCriticalFilesNotice(e=!1){var t=-1!==window.location.href.indexOf("spbc_tab=scanner&highlight_critical_files=1"),c=-1===window.location.href.indexOf("spbc_tab=scanner");if(e&&c)window.location.href="options-general.php?page=spbc&spbc_tab=scanner&highlight_critical_files=1";else if(t||e){let t=null;c=document.querySelectorAll("#notice_id_found_critical_files");if(0<c.length&&c.forEach(e=>{null==t&&null!==e.closest("#spbc_tab-scanner")&&(t=e)}),null!==t&&(t.scrollIntoView({behavior:"smooth",block:"start"}),!t.hasOwnProperty("highlighted"))){let e=!1;setInterval(()=>{(e=!e)?(t.classList.remove("notice-warning"),t.classList.add("notice-error"),t.highlighted=!0):(t.classList.remove("notice-error"),t.classList.add("notice-warning"))},1e3)}let s=document.querySelector('h3[aria-controls="spbc_scan_accordion_tab_critical"]');if(null!==s)s.classList.contains("ui-accordion-header-active")||s.click();else{let e=setInterval(()=>{null!==(s=document.querySelector('h3[aria-controls="spbc_scan_accordion_tab_critical"]'))&&(s.classList.contains("ui-accordion-header-active")||s.click(),clearInterval(e))},150)}}}jQuery(document).ready(function(){if(-1<window.location.href.indexOf("themes.php")&&spbcSettings.vulnerabilityShowList){let e=[],t=[],s,c;setInterval(function(){0<(s=document.querySelectorAll(".themes .theme[data-slug]")).length&&(t=[],s.forEach(function(e){c=e.querySelector("img").src?e.querySelector("img").src.match(/ver=([\d\.]+)/)[1]:null,t.push({slug:e.dataset.slug,version:c})})),JSON.stringify(t)!=JSON.stringify(e)&&spbcCheckVulnerability(e=t,"list")},500)}if(-1<window.location.href.indexOf("theme-install.php")&&spbcSettings.vulnerabilityShowInstall){let e=[],t=[],s;setInterval(function(){0<(s=document.querySelectorAll(".theme-id-container .theme-actions a[data-slug]")).length&&(t=[],s.forEach(function(e){t.push(e.dataset.slug)})),JSON.stringify(t)!=JSON.stringify(e)&&spbcCheckVulnerability(e=t)},500)}jQuery(".spbc_update_notice").on("click","button",function(){spbcSetCookie("spbc_update_banner_closed",1,2592e3)}),jQuery(document).on("click","#spbc-g2fa-enable",function(e){e.preventDefault();e=spbcGet2FAAppQrCode();e.success?(jQuery("#spbct-2fa-app-qr-code-img").html(e.data.img+"<p>"+e.data.code+"</p>"),jQuery("#spbct-2fa-app-qr-code input").val(""),jQuery("#spbct-2fa-app-qr-code").dialog({modal:!0,title:"2FA Code (One-time passcode) activation",buttons:{Cancel:function(){jQuery(this).dialog("close")},Ok:function(){spbcCheck2FAAppCode()}},draggable:!1,resizable:!1})):alert(spbcGet2FAAppQrCode.data)}),jQuery(document).on("click","#spbc-2fa-code-disable",function(e){e.preventDefault(),confirm("Are you sure?")&&spbcDisable2FAApp(this)});function e(e,t,s){setTimeout(function(){null!==e&&(jQuery(".spbc-admin_bar--user_counter").html(e.count),e.count<=3?(jQuery("#wp-admin-bar-spbc_admin_bar__online_admins").show(),jQuery(".spbc-admin_bar--online_admins").html(e.users.join(", "))):jQuery("#wp-admin-bar-spbc_admin_bar__online_admins").hide()),spbcSendAJAXRequest(t,s)},15e3)}var t,s;if(1==+spbcSettings.admin_bar__admins_online_counter&&e(null,{action:"spbc_get_authorized_admins"},{callback:e}),spbcHandleBannersDismissing(),1==+spbcSettings.needToWhitelist&&spbcSendAJAXRequest({action:"spbc_private_list_add"},{callback:null}),0<+spbcSettings.critical&&((t=document.createElement("div")).className="spbc_ring-container",t.style.top="0px",t.style.right="70px",(s=document.createElement("div")).className="spbc_ringring",(c=document.createElement("div")).className="spbc_circle",t.appendChild(s),t.appendChild(c),s=document.querySelector("#menu-settings"))&&s.appendChild(t),jQuery(document).on("keyup","#spbc_key",function(e){e.preventDefault();e=jQuery("#spbc_key").val();/^[a-zA-Z0-9]+$/.test(e)&&8<e.length?(jQuery("#spbc-key-manually-link").hide(),jQuery("#spbc_setting_get_key_auto").hide(),jQuery("#spbc_get_key_or_text").hide()):(jQuery("#spbc-key-manually-link").show(),jQuery("#spbc_setting_get_key_auto").show(),jQuery("#spbc_get_key_or_text").show())}),spbcSettings.wl_mode_enabled){jQuery(".plugin-title strong").each(function(e,t){0<=jQuery(t).html().indexOf("Security by CleanTalk")&&jQuery(t).html(jQuery(t).html().replace("CleanTalk",spbcSettings.wl_company_name))});var c=jQuery('.plugin-update-tr[data-slug="security-malware-firewall"] .open-plugin-details-modal');let s=c.text().match(/version (\d+\.\d+)/i)?.[1];c.remove(),jQuery('.plugin-update-tr[data-slug="security-malware-firewall"] p').each(function(){var e=jQuery(`.plugin-update-tr[data-slug="security-malware-firewall"]
a[aria-label="Update Security by CleanTalk now"]`),t="Update now to "+s;e.text(t),jQuery(this).text(jQuery(this).text().replace(" or ","")),jQuery(this).text(jQuery(this).text().replace(t+"."," ")),jQuery(this).append(e)})}-1<window.location.href.indexOf("users.php")&&document.querySelector("#spbc_pass_check")&&spbcGetPassLeak()});
//# sourceMappingURL=spbc-admin.min.js.map