Файловый менеджер - Редактировать - /var/www/html/plg_multifactorauth_webauthn.zip
Ðазад
PK ! #��y� � images/passkeys.svgnu �[��� <svg width="113" viewBox="0 0 112 30" xmlns="http://www.w3.org/2000/svg"> <rect x="-4" y="-2" width="119.522" height="34.182" style="fill:none;"/> <g> <path d="M12.648,0.445c3.829,0 6.937,3.109 6.937,6.938c0,3.829 -3.108,6.937 -6.937,6.937c-3.829,0 -6.937,-3.108 -6.937,-6.937c-0,-3.829 3.108,-6.938 6.937,-6.938Zm18.5,13.875c-0.004,2.223 -1.38,4.226 -3.454,5.026l1.912,1.911l-2.313,2.313l2.313,2.312l-3.854,3.854l-2.313,-2.312l0,-8.248c-1.879,-0.891 -3.083,-2.794 -3.083,-4.875c0,-2.96 2.436,-5.396 5.396,-5.396c2.96,0 5.396,2.436 5.396,5.396c-0,0.006 -0,0.013 -0,0.019Zm-5.396,0c0.846,0 1.541,-0.696 1.541,-1.542c0,-0.845 -0.695,-1.541 -1.541,-1.541c-0.846,-0 -1.542,0.696 -1.542,1.541c0,0.846 0.696,1.542 1.542,1.542Zm-7.03,3.114c0.539,1.195 1.365,2.239 2.405,3.037l-0,8.495l-20.041,-0l-0,-3.084c-0,-5.074 4.175,-9.249 9.25,-9.249l4.624,-0c1.297,0 2.578,0.273 3.762,0.801Z"/> <path d="M44.369,16.591l-2.438,-0l-0,4.129l-2.385,0l0,-11.485l5.003,0c1.153,0 2.072,0.296 2.758,0.888c0.686,0.593 1.028,1.509 1.028,2.751c0,1.356 -0.342,2.314 -1.028,2.875c-0.686,0.561 -1.665,0.842 -2.938,0.842Zm1.122,-2.392c0.312,-0.276 0.468,-0.712 0.468,-1.309c-0,-0.598 -0.157,-1.024 -0.472,-1.278c-0.314,-0.255 -0.754,-0.382 -1.32,-0.382l-2.236,-0l-0,3.382l2.236,-0c0.566,-0 1.007,-0.138 1.324,-0.413Z" style="fill-rule:nonzero;"/> <path d="M50.275,13.147c0.587,-0.748 1.595,-1.122 3.024,-1.122c0.93,-0 1.755,0.184 2.477,0.553c0.723,0.369 1.084,1.065 1.084,2.088l-0,3.896c-0,0.27 0.005,0.597 0.015,0.982c0.016,0.291 0.06,0.488 0.133,0.592c0.072,0.104 0.181,0.189 0.327,0.257l-0,0.327l-2.416,0c-0.067,-0.171 -0.114,-0.332 -0.14,-0.483c-0.026,-0.15 -0.047,-0.322 -0.062,-0.514c-0.307,0.332 -0.66,0.615 -1.06,0.849c-0.478,0.276 -1.018,0.413 -1.621,0.413c-0.768,0 -1.403,-0.219 -1.905,-0.658c-0.501,-0.439 -0.752,-1.061 -0.752,-1.866c0,-1.044 0.403,-1.8 1.208,-2.268c0.442,-0.254 1.091,-0.436 1.948,-0.545l0.756,-0.094c0.41,-0.052 0.704,-0.117 0.88,-0.194c0.317,-0.136 0.476,-0.346 0.476,-0.632c-0,-0.348 -0.121,-0.588 -0.363,-0.72c-0.241,-0.133 -0.596,-0.199 -1.063,-0.199c-0.525,-0 -0.896,0.13 -1.114,0.39c-0.156,0.192 -0.26,0.451 -0.312,0.779l-2.143,-0c0.047,-0.743 0.255,-1.353 0.623,-1.831Zm1.652,5.968c0.208,0.172 0.463,0.257 0.764,0.257c0.478,0 0.918,-0.14 1.321,-0.42c0.402,-0.281 0.611,-0.793 0.627,-1.535l-0,-0.826c-0.14,0.088 -0.282,0.159 -0.425,0.214c-0.143,0.054 -0.339,0.105 -0.588,0.152l-0.499,0.093c-0.467,0.083 -0.802,0.185 -1.005,0.304c-0.343,0.203 -0.514,0.517 -0.514,0.943c-0,0.379 0.106,0.652 0.319,0.818Z" style="fill-rule:nonzero;"/> <path d="M64.683,12.617c0.664,0.426 1.046,1.158 1.145,2.197l-2.221,0c-0.031,-0.286 -0.111,-0.512 -0.241,-0.678c-0.244,-0.301 -0.66,-0.452 -1.247,-0.452c-0.483,0 -0.827,0.076 -1.032,0.226c-0.206,0.151 -0.308,0.328 -0.308,0.53c-0,0.255 0.109,0.439 0.327,0.553c0.218,0.12 0.99,0.325 2.314,0.616c0.883,0.208 1.546,0.522 1.987,0.943c0.436,0.426 0.655,0.958 0.655,1.597c-0,0.841 -0.313,1.528 -0.939,2.061c-0.626,0.532 -1.594,0.799 -2.903,0.799c-1.335,-0 -2.32,-0.282 -2.957,-0.846c-0.636,-0.563 -0.954,-1.282 -0.954,-2.154l2.252,-0c0.046,0.395 0.148,0.675 0.304,0.841c0.275,0.296 0.784,0.444 1.527,0.444c0.436,0 0.783,-0.065 1.04,-0.194c0.257,-0.13 0.386,-0.325 0.386,-0.585c-0,-0.249 -0.104,-0.439 -0.312,-0.569c-0.208,-0.129 -0.979,-0.353 -2.314,-0.67c-0.961,-0.239 -1.639,-0.537 -2.034,-0.896c-0.395,-0.353 -0.592,-0.862 -0.592,-1.527c-0,-0.784 0.308,-1.458 0.923,-2.022c0.616,-0.564 1.482,-0.845 2.599,-0.845c1.06,-0 1.924,0.21 2.595,0.631Z" style="fill-rule:nonzero;"/> <path d="M73.557,12.617c0.665,0.426 1.047,1.158 1.146,2.197l-2.221,0c-0.031,-0.286 -0.112,-0.512 -0.241,-0.678c-0.245,-0.301 -0.66,-0.452 -1.247,-0.452c-0.483,0 -0.827,0.076 -1.033,0.226c-0.205,0.151 -0.307,0.328 -0.307,0.53c-0,0.255 0.109,0.439 0.327,0.553c0.218,0.12 0.989,0.325 2.314,0.616c0.883,0.208 1.545,0.522 1.987,0.943c0.436,0.426 0.654,0.958 0.654,1.597c0,0.841 -0.312,1.528 -0.938,2.061c-0.626,0.532 -1.594,0.799 -2.903,0.799c-1.335,-0 -2.321,-0.282 -2.957,-0.846c-0.636,-0.563 -0.954,-1.282 -0.954,-2.154l2.251,-0c0.047,0.395 0.149,0.675 0.304,0.841c0.276,0.296 0.785,0.444 1.528,0.444c0.436,0 0.783,-0.065 1.04,-0.194c0.257,-0.13 0.385,-0.325 0.385,-0.585c0,-0.249 -0.103,-0.439 -0.311,-0.569c-0.208,-0.129 -0.979,-0.353 -2.314,-0.67c-0.961,-0.239 -1.639,-0.537 -2.034,-0.896c-0.395,-0.353 -0.592,-0.862 -0.592,-1.527c-0,-0.784 0.308,-1.458 0.923,-2.022c0.616,-0.564 1.482,-0.845 2.599,-0.845c1.059,-0 1.924,0.21 2.594,0.631Z" style="fill-rule:nonzero;"/> <path d="M84.372,20.72l-2.68,0l-2.034,-3.631l-0.919,0.959l-0,2.672l-2.182,0l0,-11.446l2.182,0l-0,6.187l2.766,-3.195l2.75,0l-2.968,3.249l3.085,5.205Z" style="fill-rule:nonzero;"/> <path d="M92.725,18.227c-0.057,0.504 -0.319,1.015 -0.787,1.535c-0.727,0.826 -1.745,1.239 -3.054,1.239c-1.081,-0 -2.034,-0.348 -2.86,-1.044c-0.826,-0.696 -1.239,-1.829 -1.239,-3.398c0,-1.47 0.373,-2.597 1.118,-3.381c0.746,-0.785 1.713,-1.177 2.903,-1.177c0.706,0 1.343,0.133 1.909,0.398c0.566,0.265 1.034,0.683 1.402,1.254c0.333,0.504 0.548,1.088 0.647,1.753c0.057,0.39 0.081,0.951 0.07,1.683l-5.812,0c0.031,0.852 0.298,1.45 0.802,1.792c0.307,0.213 0.675,0.32 1.107,0.32c0.457,-0 0.828,-0.13 1.114,-0.39c0.156,-0.14 0.293,-0.335 0.413,-0.584l2.267,-0Zm-2.197,-2.603c-0.037,-0.587 -0.214,-1.032 -0.534,-1.336c-0.319,-0.304 -0.715,-0.456 -1.188,-0.456c-0.514,0 -0.913,0.161 -1.196,0.483c-0.283,0.322 -0.461,0.759 -0.534,1.309l3.452,0Z" style="fill-rule:nonzero;"/> <path d="M97.782,18.492l1.753,-6.265l2.361,0l-2.914,8.353c-0.561,1.61 -1.005,2.609 -1.332,2.996c-0.328,0.387 -0.982,0.58 -1.964,0.58c-0.197,0 -0.356,-0.001 -0.475,-0.003c-0.12,-0.003 -0.299,-0.012 -0.538,-0.028l0,-1.776l0.281,0.015c0.218,0.011 0.426,0.003 0.623,-0.023c0.197,-0.026 0.364,-0.086 0.499,-0.179c0.129,-0.089 0.25,-0.273 0.362,-0.553c0.112,-0.281 0.157,-0.452 0.136,-0.515l-3.116,-8.867l2.47,0l1.854,6.265Z" style="fill-rule:nonzero;"/> <path d="M109.057,12.617c0.665,0.426 1.046,1.158 1.145,2.197l-2.221,0c-0.031,-0.286 -0.111,-0.512 -0.241,-0.678c-0.244,-0.301 -0.66,-0.452 -1.247,-0.452c-0.483,0 -0.827,0.076 -1.032,0.226c-0.205,0.151 -0.308,0.328 -0.308,0.53c0,0.255 0.109,0.439 0.327,0.553c0.218,0.12 0.99,0.325 2.314,0.616c0.884,0.208 1.546,0.522 1.987,0.943c0.437,0.426 0.655,0.958 0.655,1.597c-0,0.841 -0.313,1.528 -0.939,2.061c-0.626,0.532 -1.593,0.799 -2.902,0.799c-1.335,-0 -2.321,-0.282 -2.957,-0.846c-0.637,-0.563 -0.955,-1.282 -0.955,-2.154l2.252,-0c0.047,0.395 0.148,0.675 0.304,0.841c0.275,0.296 0.784,0.444 1.527,0.444c0.436,0 0.783,-0.065 1.04,-0.194c0.257,-0.13 0.386,-0.325 0.386,-0.585c-0,-0.249 -0.104,-0.439 -0.312,-0.569c-0.208,-0.129 -0.979,-0.353 -2.314,-0.67c-0.961,-0.239 -1.639,-0.537 -2.034,-0.896c-0.394,-0.353 -0.592,-0.862 -0.592,-1.527c0,-0.784 0.308,-1.458 0.923,-2.022c0.616,-0.564 1.482,-0.845 2.599,-0.845c1.06,-0 1.925,0.21 2.595,0.631Z" style="fill-rule:nonzero;"/> </g> </svg> PK ! i�5 5 images/webauthn.svgnu �[��� <svg clip-rule="evenodd" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" viewBox="0 0 212 45" width="113" xmlns="http://www.w3.org/2000/svg"><g fill-rule="nonzero"><path d="m59.787 3.63c-4.187.158-7.648 3.423-8.051 7.593h.55c.184-1.781.975-3.446 2.24-4.713.284.262.594.495.924.695-.608 1.177-.98 2.556-1.082 4.018h.135c.105-1.467.485-2.819 1.065-3.947.745.434 1.623.754 2.577.94-.168 1.247-.252 2.504-.25 3.763h-.847v.135h.847c.003 1.334.09 2.617.25 3.764-.954.185-1.832.506-2.577.94-.497-.985-.827-2.045-.978-3.137h-.137c.164 1.16.502 2.25.997 3.208-.33.2-.64.433-.924.695-1.304-1.307-2.104-3.035-2.255-4.875h-.551c.387 4.312 4.044 7.656 8.373 7.656 4.583 0 8.365-3.748 8.407-8.331.001-1.146-.234-2.281-.688-3.333-1.37-3.177-4.568-5.198-8.025-5.072zm.315.546c.155 0 .31.005.464.014.365.34.708 1.07.983 2.114.152.59.271 1.187.357 1.79-.595.107-1.199.16-1.804.16s-1.209-.053-1.805-.16c.086-.603.205-1.2.357-1.79.275-1.045.618-1.775.983-2.114.155-.009.31-.014.465-.014zm-.665.028c-.345.392-.658 1.093-.913 2.065-.153.593-.273 1.194-.36 1.8-.939-.183-1.802-.498-2.533-.926.686-1.283 1.635-2.264 2.73-2.775.354-.079.714-.134 1.076-.164zm1.33 0c.365.031.727.087 1.084.168 1.092.513 2.037 1.492 2.721 2.771-.73.428-1.594.743-2.533.927-.087-.606-.207-1.207-.36-1.8-.255-.972-.568-1.673-.912-2.066zm-2.972.314c-.655.407-1.257.989-1.776 1.73-.185.265-.354.54-.506.825-.318-.194-.617-.418-.891-.67.892-.873 1.98-1.519 3.173-1.885zm4.624.006c1.188.367 2.273 1.01 3.164 1.877-.275.253-.574.478-.893.672-.152-.285-.321-.56-.506-.825-.516-.738-1.115-1.318-1.765-1.724zm3.26 1.985c.692.697 1.248 1.517 1.638 2.419.417.963.635 2.001.642 3.051h-2.095c-.01-1.74-.398-3.396-1.11-4.774.331-.201.641-.434.925-.696zm-1.044.767c.679 1.32 1.084 2.945 1.094 4.703h-3.42c.001-1.259-.082-2.516-.251-3.763.954-.186 1.833-.506 2.577-.94zm-6.357.965c.602.107 1.212.161 1.824.16.611.001 1.221-.053 1.823-.16.16 1.138.246 2.413.249 3.738h-1.178c-.027.047-.058.093-.093.135h1.27c.002 1.251-.081 2.5-.248 3.739-1.206-.215-2.441-.215-3.647 0-.167-1.239-.25-2.489-.248-3.739h1.294c-.034-.042-.064-.088-.09-.135h-1.204c.003-1.325.088-2.6.248-3.738zm-11.22 1.129c-1.319.014-2.427 1.036-2.547 2.35-.142 1.541 1.064 2.842 2.566 2.842 1.26 0 2.312-.917 2.533-2.124h4.44v.972h.946v-.972h.837v1.431h.945v-2.376h-7.168c-.223-1.227-1.305-2.127-2.552-2.123zm-.058.965c.023-.001.045-.001.068-.001.899 0 1.639.739 1.639 1.638-.001.899-.74 1.637-1.639 1.638-.889-.015-1.612-.75-1.612-1.639 0-.863.682-1.586 1.544-1.636zm13.09.388c-.403.012-.728.346-.728.75 0 .271.147.522.383.654l-.383 1.958h1.5l-.383-1.958c.237-.132.384-.383.384-.654 0-.412-.339-.75-.75-.75-.008 0-.015 0-.023 0zm2.218 1.391h3.421c-.01 1.758-.415 3.384-1.094 4.704-.744-.434-1.623-.755-2.577-.94.168-1.248.252-2.505.25-3.764zm3.556 0h2.095c-.012 2.052-.832 4.018-2.281 5.47-.284-.262-.594-.495-.924-.696.712-1.378 1.1-3.033 1.11-4.774zm-5.52 3.703c.524.012 1.046.064 1.562.156-.086.603-.205 1.201-.357 1.791-.275 1.045-.618 1.774-.982 2.114-.31.018-.62.018-.93 0-.365-.34-.708-1.07-.983-2.114-.152-.59-.271-1.187-.357-1.79.676-.121 1.362-.173 2.048-.157zm1.695.181c.94.184 1.803.5 2.533.926-.686 1.284-1.635 2.265-2.73 2.776-.354.079-.713.134-1.075.164.344-.393.657-1.094.913-2.065.153-.593.273-1.194.359-1.8zm-3.874 0c.086.606.206 1.207.359 1.8.255.973.568 1.674.913 2.066-.362-.03-.721-.085-1.075-.164-1.096-.511-2.045-1.492-2.731-2.775.73-.428 1.594-.743 2.534-.927zm-2.652.997c.152.285.321.56.506.825.52.741 1.121 1.323 1.776 1.73-1.193-.366-2.282-1.012-3.174-1.884.275-.252.573-.476.892-.67zm9.178 0c.318.194.617.418.891.67-.892.873-1.98 1.519-3.173 1.885.654-.407 1.256-.989 1.775-1.73.185-.265.354-.54.507-.825z" transform="matrix(2.56781 0 0 2.56781 -113.267 -8.30436)"/><g transform="matrix(1 0 0 .596952 2 9.06859)"><path d="m72.564 40.498-5.698-35.973h2.915l3.267 23.581c.351 2.47.654 4.924.908 7.362.547-3.845.869-6.061.967-6.65l4.087-24.293h3.428l3.076 18.207c.771 4.515 1.328 8.761 1.67 12.736.273-2.274.629-4.883 1.069-7.828l3.369-23.115h2.857l-5.889 35.973h-2.739l-4.527-27.409c-.381-2.291-.605-3.698-.674-4.221-.224 1.652-.434 3.059-.629 4.221l-4.556 27.409z"/><path d="m106.9 32.106 2.725.564c-.43 2.667-1.226 4.736-2.388 6.209-1.162 1.472-2.646 2.208-4.453 2.208-2.275 0-4.079-1.174-5.412-3.521-1.333-2.348-2-5.64-2-9.877 0-4.384.674-7.787 2.022-10.208 1.347-2.421 3.095-3.632 5.244-3.632 2.08 0 3.779 1.186 5.097 3.558 1.319 2.372 1.978 5.71 1.978 10.012 0 .262-.005.655-.015 1.178h-11.601c.097 2.863.581 5.055 1.45 6.576.869 1.522 1.953 2.283 3.252 2.283.967 0 1.792-.426 2.475-1.276.684-.851 1.226-2.209 1.626-4.074zm-8.657-7.141h8.687c-.117-2.192-.45-3.836-.996-4.932-.84-1.701-1.929-2.552-3.267-2.552-1.211 0-2.229.679-3.054 2.037s-1.282 3.173-1.37 5.447z"/><path d="m115.367 40.498h-2.446v-35.973h2.637v12.833c1.113-2.339 2.534-3.509 4.262-3.509.957 0 1.863.323 2.718.97.854.646 1.557 1.554 2.109 2.723.552 1.17.984 2.581 1.296 4.233.313 1.653.469 3.419.469 5.301 0 4.466-.659 7.917-1.977 10.355-1.319 2.437-2.901 3.656-4.747 3.656-1.835 0-3.276-1.284-4.321-3.852zm-.029-13.226c0 3.125.254 5.382.762 6.773.83 2.274 1.953 3.411 3.369 3.411 1.152 0 2.148-.839 2.988-2.516s1.26-4.175 1.26-7.496c0-3.403-.403-5.914-1.209-7.534-.805-1.619-1.779-2.429-2.922-2.429-1.152 0-2.148.838-2.988 2.515s-1.26 4.102-1.26 7.276z"/><path d="m127.599 40.498 8.247-35.973h3.061l8.789 35.973h-3.237l-2.505-10.895h-8.979l-2.359 10.895zm6.196-14.772h7.28l-2.241-9.963c-.684-3.026-1.191-5.513-1.523-7.459-.274 2.306-.66 4.596-1.158 6.87z"/><path d="m159.825 40.498v-3.828c-1.211 2.945-2.856 4.417-4.936 4.417-.918 0-1.775-.294-2.571-.883s-1.387-1.329-1.773-2.221c-.385-.891-.656-1.983-.813-3.276-.107-.867-.161-2.241-.161-4.122v-16.147h2.637v14.454c0 2.306.054 3.86.161 4.662.166 1.161.518 2.073 1.055 2.736.537.662 1.201.994 1.992.994s1.533-.34 2.227-1.019c.693-.679 1.184-1.603 1.472-2.772.288-1.17.432-2.867.432-5.092v-13.963h2.637v26.06z"/><path d="m172.071 36.548.381 3.901c-.742.262-1.406.393-1.992.393-.957 0-1.699-.254-2.227-.761-.527-.507-.898-1.174-1.113-2s-.322-2.564-.322-5.214v-14.993h-1.934v-3.436h1.934v-6.453l2.622-2.651v9.104h2.651v3.436h-2.651v15.238c0 1.26.046 2.07.139 2.43.093.359.244.646.454.858.21.213.51.319.901.319.293 0 .679-.057 1.157-.171z"/><path d="m174.649 40.498v-35.973h2.637v12.907c1.231-2.389 2.783-3.583 4.658-3.583 1.153 0 2.154.381 3.003 1.141.85.761 1.458 1.812 1.824 3.154.366 1.341.549 3.288.549 5.84v16.514h-2.636v-16.514c0-2.209-.286-3.816-.857-4.822-.572-1.006-1.38-1.509-2.425-1.509-.781 0-1.516.339-2.204 1.018-.689.679-1.179 1.599-1.472 2.761-.293 1.161-.44 2.764-.44 4.809v14.257z"/><path d="m191.334 40.498v-26.06h2.373v3.706c1.143-2.863 2.793-4.295 4.951-4.295.938 0 1.8.282 2.586.847.786.564 1.374 1.304 1.765 2.221.39.916.664 2.004.82 3.263.098.818.147 2.25.147 4.295v16.023h-2.637v-15.852c0-1.799-.103-3.145-.308-4.036-.205-.892-.569-1.604-1.091-2.135-.523-.532-1.135-.798-1.838-.798-1.123 0-2.093.597-2.908 1.792-.816 1.194-1.223 3.46-1.223 6.797v14.232z"/></g></g></svg> PK ! ^�*5J J js/webauthn.jsnu �[��� /** * @package Joomla.Plugin * @subpackage Multifactorauth.webauthn * * @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ ((Joomla, document) => { let authData = null; const arrayToBase64String = a => btoa(String.fromCharCode(...a)); const base64url2base64 = input => { let output = input.replace(/-/g, '+').replace(/_/g, '/'); const pad = output.length % 4; if (pad) { if (pad === 1) { throw new Error('InvalidLengthError: Input base64url string is the wrong length to determine padding'); } output += new Array(5 - pad).join('='); } return output; }; const displayError = message => { try { Joomla.renderMessages({ error: message }); } catch (e) { alert(message); } }; const handleError = message => { try { document.getElementById('plg_multifactorauth_webauthn_validate_button').style.disabled = 'null'; } catch (e) { // Do nothing } displayError(message); }; const setUp = e => { e.preventDefault(); // Make sure the browser supports Webauthn if (!('credentials' in navigator)) { displayError(Joomla.Text._('PLG_MULTIFACTORAUTH_WEBAUTHN_ERR_NOTAVAILABLE_HEAD')); return false; } const rawPKData = document.forms['com-users-method-edit'].querySelectorAll('input[name="pkRequest"]')[0].value; const publicKey = JSON.parse(atob(rawPKData)); // Convert the public key information to a format usable by the browser's credentials manager publicKey.challenge = Uint8Array.from(window.atob(base64url2base64(publicKey.challenge)), c => c.charCodeAt(0)); publicKey.user.id = Uint8Array.from(window.atob(publicKey.user.id), c => c.charCodeAt(0)); if (publicKey.excludeCredentials) { publicKey.excludeCredentials = publicKey.excludeCredentials.map(data => { data.id = Uint8Array.from(window.atob(base64url2base64(data.id)), c => c.charCodeAt(0)); return data; }); } // Ask the browser to prompt the user for their authenticator navigator.credentials.create({ publicKey }).then(data => { const publicKeyCredential = { id: data.id, type: data.type, rawId: arrayToBase64String(new Uint8Array(data.rawId)), response: { clientDataJSON: arrayToBase64String(new Uint8Array(data.response.clientDataJSON)), attestationObject: arrayToBase64String(new Uint8Array(data.response.attestationObject)) } }; // Store the WebAuthn reply document.getElementById('com-users-method-code').value = btoa(JSON.stringify(publicKeyCredential)); // Submit the form document.forms['com-users-method-edit'].submit(); }, error => { // An error occurred: timeout, request to provide the authenticator refused, hardware / software // error... handleError(error); }); return false; }; const validate = () => { // Make sure the browser supports Webauthn if (!('credentials' in navigator)) { displayError(Joomla.Text._('PLG_MULTIFACTORAUTH_WEBAUTHN_ERR_NOTAVAILABLE_HEAD')); return; } const publicKey = authData; if (!publicKey.challenge) { handleError(Joomla.Text._('PLG_MULTIFACTORAUTH_WEBAUTHN_ERR_NO_STORED_CREDENTIAL')); return; } publicKey.challenge = Uint8Array.from(window.atob(base64url2base64(publicKey.challenge)), c => c.charCodeAt(0)); if (publicKey.allowCredentials) { publicKey.allowCredentials = publicKey.allowCredentials.map(data => { data.id = Uint8Array.from(window.atob(base64url2base64(data.id)), c => c.charCodeAt(0)); return data; }); } navigator.credentials.get({ publicKey }).then(data => { const publicKeyCredential = { id: data.id, type: data.type, rawId: arrayToBase64String(new Uint8Array(data.rawId)), response: { authenticatorData: arrayToBase64String(new Uint8Array(data.response.authenticatorData)), clientDataJSON: arrayToBase64String(new Uint8Array(data.response.clientDataJSON)), signature: arrayToBase64String(new Uint8Array(data.response.signature)), userHandle: data.response.userHandle ? arrayToBase64String(new Uint8Array(data.response.userHandle)) : null } }; document.getElementById('users-mfa-code').value = btoa(JSON.stringify(publicKeyCredential)); document.getElementById('users-mfa-captive-form').submit(); }, error => { // Example: timeout, interaction refused... handleError(error); }); }; const onValidateClick = event => { event.preventDefault(); authData = JSON.parse(window.atob(Joomla.getOptions('com_users.authData'))); document.getElementById('users-mfa-captive-button-submit').style.disabled = 'disabled'; validate(); return false; }; document.getElementById('multifactorauth-webauthn-missing').style.display = 'none'; if (typeof navigator.credentials === 'undefined') { document.getElementById('multifactorauth-webauthn-missing').style.display = 'block'; document.getElementById('multifactorauth-webauthn-controls').style.display = 'none'; } window.addEventListener('DOMContentLoaded', () => { if (Joomla.getOptions('com_users.pagetype') === 'validate') { document.getElementById('users-mfa-captive-button-submit').addEventListener('click', onValidateClick); } else { document.querySelectorAll('.multifactorauth_webauthn_setup').forEach(btn => btn.addEventListener('click', setUp)); } }); })(Joomla, document); PK ! �iG� js/webauthn.min.js.gznu �[��� � �Wms7��_�h���r�I;\�LRl2~i?d2��[%B�H{&s����0N��c�V���ϳ+����}�{��/*?%>�2~����4��*E�U�1�Q|F��7u���|��������!`ɹ+} �D!� ��T��&�Eh�f3�y���U�2:��ޞ^��`�+C>�#�S�_�����8O�B�G$ �~��==� ��O�c!Q\���Җ���$Z�l��)v�^�\���v&�w\L��'&:�kA��P�;h� }N��e-���{ �q�ӫ#=f�/ⷔ�%ljw3baF��;�h�^)��~�_ۚ�g��H��U� 5F�� ��w6'�� �O�R�,�6���˘�������N[F%�,�%P%�� ��"6!�[@ +^� ��B�ȐWU���)�v L��y/c�0�pz�0�k��*��Dt�rpn@d:���L�X"��X��.����(<\��c�� ��SFSX���-��J� ��|�Oǂ��o(��~��\�/z�;����Ż���7�y:잝 O�ڽ~�M�;|�mSΓ�/W����i�HS7m�|hL'.k@��~_K��s0w�6�=ӱ�����ŗ3�ZB@����⓸R�����SQ(�)t#���{�N���y�-�Z�&,�i�����v˓��ʖ����md/8O�����vFZ{=���̠ss�{{l�Yn3��*��-fbjΓR��0,�_���x+�(��'̛��'`c�Ų��\�$8/�iE|$^�zYS�(�l̊�E�>��� �Ejtd�B˷u��W�u�<�-1�B��`�Rܹ|Û�:�T�+S��K�ɺ��L[6=��2by�ԡM52^E>,2fyUQ%�d|)ΝJ\�g ��P-K�2�}�)�"�"����Y�x�9�wO/z�4�ݚ�;�ق�<E��q��b�4�MS-�-��B��������V ^��*�J`�ةآ��c�4f� غl��ޜ'��v�,��*,=�\����&��lf�f�7�ݸqތ�l�LW���k}�� �WЈ ��t�T�� ��U���m~���mB���ᄺ��uy��R�������ĵe�_��I�K����'���T�P�wn�F�%��� ��d+�[��{{�H62.�B��:�ޙ� p�\�"˺�`}0^�=�t��hs*��V7��U��)P.����/���TnLjt�xΛj��CŃ� X�ǩ�U鄡l����<r��埔$sia�'� �>:� PK ! �>:� � js/webauthn.min.jsnu �[��� /** * @package Joomla.Plugin * @subpackage Multifactorauth.webauthn * * @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */((s,a)=>{let c=null;const i=t=>btoa(String.fromCharCode(...t)),l=t=>{let e=t.replace(/-/g,"+").replace(/_/g,"/");const r=e.length%4;if(r){if(r===1)throw new Error("InvalidLengthError: Input base64url string is the wrong length to determine padding");e+=new Array(5-r).join("=")}return e},o=t=>{try{s.renderMessages({error:t})}catch{alert(t)}},d=t=>{try{a.getElementById("plg_multifactorauth_webauthn_validate_button").style.disabled="null"}catch{}o(t)},y=t=>{if(t.preventDefault(),!("credentials"in navigator))return o(s.Text._("PLG_MULTIFACTORAUTH_WEBAUTHN_ERR_NOTAVAILABLE_HEAD")),!1;const e=a.forms["com-users-method-edit"].querySelectorAll('input[name="pkRequest"]')[0].value,r=JSON.parse(atob(e));return r.challenge=Uint8Array.from(window.atob(l(r.challenge)),n=>n.charCodeAt(0)),r.user.id=Uint8Array.from(window.atob(r.user.id),n=>n.charCodeAt(0)),r.excludeCredentials&&(r.excludeCredentials=r.excludeCredentials.map(n=>(n.id=Uint8Array.from(window.atob(l(n.id)),u=>u.charCodeAt(0)),n))),navigator.credentials.create({publicKey:r}).then(n=>{const u={id:n.id,type:n.type,rawId:i(new Uint8Array(n.rawId)),response:{clientDataJSON:i(new Uint8Array(n.response.clientDataJSON)),attestationObject:i(new Uint8Array(n.response.attestationObject))}};a.getElementById("com-users-method-code").value=btoa(JSON.stringify(u)),a.forms["com-users-method-edit"].submit()},n=>{d(n)}),!1},p=()=>{if(!("credentials"in navigator)){o(s.Text._("PLG_MULTIFACTORAUTH_WEBAUTHN_ERR_NOTAVAILABLE_HEAD"));return}const t=c;if(!t.challenge){d(s.Text._("PLG_MULTIFACTORAUTH_WEBAUTHN_ERR_NO_STORED_CREDENTIAL"));return}t.challenge=Uint8Array.from(window.atob(l(t.challenge)),e=>e.charCodeAt(0)),t.allowCredentials&&(t.allowCredentials=t.allowCredentials.map(e=>(e.id=Uint8Array.from(window.atob(l(e.id)),r=>r.charCodeAt(0)),e))),navigator.credentials.get({publicKey:t}).then(e=>{const r={id:e.id,type:e.type,rawId:i(new Uint8Array(e.rawId)),response:{authenticatorData:i(new Uint8Array(e.response.authenticatorData)),clientDataJSON:i(new Uint8Array(e.response.clientDataJSON)),signature:i(new Uint8Array(e.response.signature)),userHandle:e.response.userHandle?i(new Uint8Array(e.response.userHandle)):null}};a.getElementById("users-mfa-code").value=btoa(JSON.stringify(r)),a.getElementById("users-mfa-captive-form").submit()},e=>{d(e)})},g=t=>(t.preventDefault(),c=JSON.parse(window.atob(s.getOptions("com_users.authData"))),a.getElementById("users-mfa-captive-button-submit").style.disabled="disabled",p(),!1);a.getElementById("multifactorauth-webauthn-missing").style.display="none",typeof navigator.credentials>"u"&&(a.getElementById("multifactorauth-webauthn-missing").style.display="block",a.getElementById("multifactorauth-webauthn-controls").style.display="none"),window.addEventListener("DOMContentLoaded",()=>{s.getOptions("com_users.pagetype")==="validate"?a.getElementById("users-mfa-captive-button-submit").addEventListener("click",g):a.querySelectorAll(".multifactorauth_webauthn_setup").forEach(t=>t.addEventListener("click",y))})})(Joomla,document); PK ! �~�. . joomla.asset.jsonnu �[��� { "$schema": "https://developer.joomla.org/schemas/json-schema/web_assets.json", "name": "plg_multifactorauth_webauthn", "version": "4.0.0", "description": "WebAuthn integration for Joomla Multi-factor Authentication", "license": "GPL-2.0-or-later", "assets": [ { "name": "plg_multifactorauth_webauthn.webauthn", "type": "script", "uri": "plg_multifactorauth_webauthn/webauthn.min.js", "dependencies": [ "core" ], "attributes": { "defer": true }, "version": "8e8e14" } ] }PK ! #��y� � images/passkeys.svgnu �[��� PK ! i�5 5 images/webauthn.svgnu �[��� PK ! ^�*5J J �6 js/webauthn.jsnu �[��� PK ! �iG� M js/webauthn.min.js.gznu �[��� PK ! �>:� � zR js/webauthn.min.jsnu �[��� PK ! �~�. . �_ joomla.asset.jsonnu �[��� PK � �a
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка