Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 18.220.110.45
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/3/task/3/cwd/var/www/wordpress/phpMyAdmin/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/3/task/3/cwd/var/www/wordpress/phpMyAdmin/js/u2f.js
/* global u2f */ // js/vendor/u2f-api-polyfill.js

AJAX.registerOnload('u2f.js', function () {
    var $inputReg = $('#u2f_registration_response');
    if ($inputReg.length > 0) {
        var $formReg = $inputReg.parents('form');
        $formReg.find('input[type=submit]').hide();
        setTimeout(function () {
            // A magic JS function that talks to the USB device. This function will keep polling for the USB device until it finds one.
            var request = JSON.parse($inputReg.attr('data-request'));
            u2f.register(request.appId, [request], JSON.parse($inputReg.attr('data-signatures')), function (data) {
                // Handle returning error data
                if (data.errorCode && data.errorCode !== 0) {
                    if (data.errorCode === 5) {
                        Functions.ajaxShowMessage(Messages.strU2FTimeout, false);
                    } else {
                        Functions.ajaxShowMessage(
                            Functions.sprintf(Messages.strU2FError, data.errorCode), false
                        );
                    }
                    return;
                }

                // Fill and submit form.
                $inputReg.val(JSON.stringify(data));
                $formReg.trigger('submit');
            });
        }, 1000);
    }
    var $inputAuth = $('#u2f_authentication_response');
    if ($inputAuth.length > 0) {
        var $formAuth = $inputAuth.parents('form');
        $formAuth.find('input[type=submit]').hide();
        setTimeout(function () {
            // Magic JavaScript talking to your HID
            // appid, challenge, authenticateRequests
            var request = JSON.parse($inputAuth.attr('data-request'));
            u2f.sign(request[0].appId, request[0].challenge, request, function (data) {
                // Handle returning error data
                if (data.errorCode && data.errorCode !== 0) {
                    if (data.errorCode === 5) {
                        Functions.ajaxShowMessage(Messages.strU2FTimeout, false);
                    } else {
                        Functions.ajaxShowMessage(
                            Functions.sprintf(Messages.strU2FError, data.errorCode), false
                        );
                    }
                    return;
                }

                // Fill and submit form.
                $inputAuth.val(JSON.stringify(data));
                $formAuth.trigger('submit');
            });
        }, 1000);
    }
});

Anon7 - 2022
AnonSec Team