HEX
Server: Apache/2.4.25 (Debian)
System: Linux server17 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
User: web37 (1062)
PHP: 7.4.30
Disabled: show_source, highlight_file, apache_child_terminate, apache_get_modules, apache_note, apache_setenv, virtual, dl, disk_total_space, posix_getpwnam, posix_getpwuid, posix_mkfifo, posix_mknod, posix_setpgid, posix_setsid, posix_setuid, posix_uname, proc_nice, openlog, syslog, pfsockopen
Upload Files
File: /var/www/web37/htdocs/telefonsex-info/wp-content/plugins/sucuri-scanner/inc/tpl/2fa.html.tpl
<script type="text/javascript">
    jQuery(function ($) {
        const AJAX = '%%SUCURI.AjaxURL.Dashboard%%';
        const NONCE = '%%SUCURI.PageNonce%%';

        const $qr = $('#sucuriscan-totp-qr');
        const $form = $('#sucuriscan-totp-form');
        const $code = $('#sucuriscan-totp-code');
        const $msg = $('#sucuriscan-totp-msg');

        function call(action, extra = {}) {
            return $.post(AJAX, $.extend({
                action: 'sucuriscan_ajax',
                form_action: action,
                sucuriscan_page_nonce: NONCE
            }, extra));
        }

        function refresh() {
            call('2fa_status').done(resp => {
                if (!resp.success) {
                    return error(resp.data);
                }

                const $wrap = $('#sucuriscan-topt-qr');

                const qr = qrcode(0, 'M');

                qr.addData(resp.data.uri);
                qr.make();

                $wrap.html(qr.createImgTag(6, 4));

                switch (resp.data.status) {
                    case 'needs_setup':
                        $qr.show(); $form.show();
                        break;

                    case 'activated':
                        $qr.hide(); $form.hide();
                        $msg.text('TOTP enabled ✔︎').css('color', 'green');
                        break;
                }
            }).fail(() => error('Status request failed'));
        }

        function provision() {
            call('sucuriscan_totp_provision').done(resp => {
                if (!resp.success) {
                    return error(resp.data);
                }

                const qr = qrcode(0, 'M');

                qr.addData(resp.data.uri);
                qr.make();

                $qr.html(qr.createImgTag(6, 4)).show();

                $form.show();
            }).fail(() => error('Provision request failed'));
        }

        function error(txt) { $msg.text(txt).css('color', 'red'); }
    });
</script>


<div id="sucuriscan-tabs-headers">
    <div class="sucuriscan-panel">
        <h3 class="sucuriscan-title">{{Two-Factor Authentication}}</h3>

        %%%SUCURI.TwoFactor.CurrentUser%%%
    </div>

    <div class="sucuriscan-panel">
        <h3 class="sucuriscan-title">{{Two-Factor Authentication Policy}}</h3>

        %%%SUCURI.TwoFactor.Users%%%
    </div>
</div>