HEX
Server: Apache
System: Linux andromeda.lojoweb.com 4.18.0-372.26.1.el8_6.x86_64 #1 SMP Tue Sep 13 06:07:14 EDT 2022 x86_64
User: nakedfoamlojoweb (1056)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/cwd/wp-content/plugins/password-protect-page/public/js/dist/ppw-rc-form.bundle.js
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="./dist/",n(n.s=1)}([function(e,t,n){var o,r;
/*!
 * JavaScript Cookie v2.2.1
 * https://github.com/js-cookie/js-cookie
 *
 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
 * Released under the MIT license
 */!function(i){if(void 0===(r="function"==typeof(o=i)?o.call(t,n,t,e):o)||(e.exports=r),!0,e.exports=i(),!!0){var a=window.Cookies,p=window.Cookies=i();p.noConflict=function(){return window.Cookies=a,p}}}(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var o in n)t[o]=n[o]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(o){function r(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},r.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=o.write?o.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var p="";for(var s in i)i[s]&&(p+="; "+s,!0!==i[s]&&(p+="="+i[s].split(";")[0]));return document.cookie=t+"="+n+p}}function a(e,n){if("undefined"!=typeof document){for(var r={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var p=i[a].split("="),s=p.slice(1).join("=");n||'"'!==s.charAt(0)||(s=s.slice(1,-1));try{var c=t(p[0]);if(s=(o.read||o)(s,c)||t(s),n)try{s=JSON.parse(s)}catch(e){}if(r[c]=s,e===c)break}catch(e){}}return e?r[e]:r}}return r.set=i,r.get=function(e){return a(e,!1)},r.getJSON=function(e){return a(e,!0)},r.remove=function(t,n){i(t,"",e(n,{expires:-1}))},r.defaults={},r.withConverter=n,r}(function(){})})},function(e,t,n){"use strict";n.r(t);var o=n(0),r=n.n(o);!function(e){const t="ppw_rc";function n(e,t){e.noReload?t.replaceWith(e.content):location.reload(!0)}function o(o){o.preventDefault();const a=e(this).attr("data-submit"),p=e(this).closest("div"),s=e(this).find("input.ppw-password-input"),c=e(this).find("input");if(!s.length)return;const u=e(this).find("input.ppw-submit"),f=u.attr("data-loading");let l={};c.each(function(){if("submit"!==this.name&&"area"!==this.name&&this.name)if(this.name.indexOf("acf[")>=0){l.acf||(l.acf={});const t=this.name.split(/\[(.*?)\]/g)[1];l.acf[t]=e(this).val()}else l[this.name]=e(this).val()});let d="";if(window.ppwContentGlobal.isUsingPCPRecaptcha)if(l["g-recaptcha-response"])d=l["g-recaptcha-response"],delete l["g-recaptcha-response"];else{let t=e(this).closest("form").find(".g-recaptcha-response")[0];d=e(t).val()}!function(e,t){e.attr("disabled",!0),e.attr("data-text",e.val()),e.val(t)}(u,f||"Loading...");const w=e(s[0]).val(),h=e(this).find("input[name=area]"),m=h?parseInt(h.val()):0,y=e(this),v={fields:l,"g-recaptcha-response":d,area:m,pss:w,idx:p.attr("ppw-data-index"),page:e(this).find("input.ppw-page").val(),formType:p.attr("ppwp-type")||"",metaKey:p.attr("ppwp-metakey")||""};if(m){const t=function(t,n){const o=e(this).find("div.ppw-error");if(n)o.html(n.responseJSON.message),i(u);else{if(!t.success)return o.html(n.responseJSON.message),void i(u);if(t.redirect)return void(window.location.href=t.redirect_to);if(t.reload)return void location.reload(!0);y.replaceWith(t.content)}}.bind(this);!function(t,n,o){n.action="ppw_pcp_validate_password",n.nonce=ppwContentGlobal.ajax_nonce,n.post_id=t,e("#submit").prop("disabled",!0),e.ajax({beforeSend:function(e){e.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),e.setRequestHeader("X-WP-Nonce",ppwContentGlobal.nonce)},url:ppwContentGlobal.ajax_url,type:"POST",data:n,success:function(e){o(e,null)},error:function(e){o(null,e)},timeout:1e4})}(a,v,t)}else{const o=function(o,p){const s=e(this).find("div.ppw-error");if(p)s.html(p.responseJSON.message),i(u);else{if(o.isRedirect)return void(window.location.href=o.redirect_to);o.isValidMaster&&r.a.set(o.masterCookieName,o.masterCookieValue,{expires:new Date(1e3*o.masterCookieExpire),path:"/"}),o.isValid?(!function(e,n,o){const i=function(e,t){return e+"-"+t}(t,e),a=r.a.get(i),p=a?JSON.parse(a):a,s=Array.isArray(p)?p:[],c=s.findIndex(function(t){return t.post_id===e});c>-1?-1===s[c].passwords.indexOf(n)&&s[c].passwords.push(n):s.push({post_id:e,passwords:[n]});r.a.set(i,JSON.stringify(s),{expires:new Date(1e3*o),path:"/"})}(a,w,o.cookie_expired_time),n(o,y)):o.isValidMaster?n(o,y):(s.html(o.message),i(u))}}.bind(this);!function(t,n,o){e("#submit").prop("disabled",!0),e.ajax({beforeSend:function(e){e.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),e.setRequestHeader("X-WP-Nonce",ppwContentGlobal.nonce)},url:ppwContentGlobal.restUrl+"wppp/v1/check-content-password/"+t,type:"POST",data:n,success:function(e){o(e,null)},error:function(e){o(null,e)},timeout:5e3})}(a,v,o)}}function i(e){e.removeAttr("disabled"),e.val(e.attr("data-text"))}Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');let t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");let o=arguments[1],r=0;for(;r<n;){let n=t[r];if(e.call(o,n,r,t))return r;r++}return-1},configurable:!0,writable:!0}),e(document).ready(function(){!function(){const t=window.ppwContentGlobal.supportedClassNames.defaultType;(function(t){const n=e(".ppwp-is-custom-field");for(let o=0;o<n.length;o++){const r=e(n[o]).attr("ppwp-data-mt"),i=e(n[o]).find("."+t);for(let t=0;t<i.length;t++){const n=e(i[t]);n.attr("ppw-data-index",t),n.attr("ppwp-type","cf"),n.attr("ppwp-metakey",r)}}})(t),function(t){const n=e("."+t);let o=[];for(let t=0;t<n.length;t++){const r=e(n[t]).parent().attr("class");"ppwp-is-custom-field"!==r&&o.push(n[t])}for(let t=0;t<o.length;t++)e(o[t]).attr("ppw-data-index",t)}(t)}(),e(".ppw-form").bind("submit",o),e(".ppw-form input.ppw-pcp-checkbox").on("click",function(){var t=e(this),n=t.parent().parent().find("input.ppw-password-input.ppw-pcp-pf-password-input");t.prop("checked")?n.attr("type","text"):n.attr("type","password")})})}(jQuery)}]);