{"id":503818,"date":"2026-11-18T18:15:38","date_gmt":"2026-11-18T15:15:38","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=503818"},"modified":"2026-11-18T18:15:38","modified_gmt":"2026-11-18T15:15:38","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=503818","title":{"rendered":"\u041a\u0430\u043a \u044f \u0441\u0434\u0430\u0432\u0430\u043b \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u0447\u0435\u0440\u0435\u0437 \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u044b\u0439 \u0431\u044d\u043a\u0434\u043e\u0440 \u0432 Safe Exam Browser"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<blockquote>\n<p>\u041b\u043e\u043d\u0433\u0440\u0438\u0434 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a Moodle \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u00ab\u0442\u043e\u0442 \u043b\u0438 \u044d\u0442\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u00bb, \u043f\u043e\u0447\u0435\u043c\u0443 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u0438 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 Chrome \u0443\u0431\u0435\u0434\u0438\u043b \u0441\u0435\u0440\u0432\u0435\u0440, \u0447\u0442\u043e \u043e\u043d Safe Exam Browser. \u0412\u043d\u0443\u0442\u0440\u0438: SHA256, mitmproxy, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u0438 \u0441 \u043a\u0440\u043e\u0441\u0441\u0432\u043e\u0440\u0434\u0430\u043c\u0438 \u0438 \u0433\u0440\u0430\u0444\u0438\u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432.<\/p>\n<\/blockquote>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/08\/06\/9f\/08069f35d55f4d7e65807687fbb87b43.png\" alt=\"\u0421\u0445\u0435\u043c\u0430 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/08\/06\/9f\/08069f35d55f4d7e65807687fbb87b43.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/08\/06\/9f\/08069f35d55f4d7e65807687fbb87b43.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0421\u0445\u0435\u043c\u0430 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430<\/figcaption><\/div>\n<\/figure>\n<h3>\u0414\u0430\u043d\u043e<\/h3>\n<p>\u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0441\u043a\u0438\u0439 \u043a\u0443\u0440\u0441 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u0432 Moodle. \u041c\u0435\u0436\u0434\u0443 \u0431\u043b\u043e\u043a\u0430\u043c\u0438 \u0441 \u043b\u0435\u043a\u0446\u0438\u044f\u043c\u0438 \u0432\u0438\u0441\u044f\u0442 \u043a\u0432\u0438\u0437\u044b \u043d\u0430 \u0431\u0430\u043b\u043b\u044b, \u0430 \u0434\u0432\u0430 \u0433\u043b\u0430\u0432\u043d\u044b\u0445 (Midterm \u0438 Final) \u043e\u0442\u043a\u0440\u044b\u0442\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 Safe Exam Browser: \u043f\u0440\u043e\u043f\u0440\u0438\u0435\u0442\u0430\u0440\u043d\u044b\u0439 \u043a\u0438\u043e\u0441\u043a-\u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u0432\u0441\u0451, \u043a\u0440\u043e\u043c\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0442\u0435\u0441\u0442\u0430. \u041f\u043e\u0441\u0442\u0430\u0432\u0438\u043b, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b, \u0441\u0434\u0430\u043b. \u041d\u043e \u0443 \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u0435\u0441\u0442\u044c \u043c\u0438\u043d\u0443\u0441\u044b: SEB \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u0436\u0438\u0432\u0451\u0442 \u0441\u0432\u043e\u0435\u0439 \u0436\u0438\u0437\u043d\u044c\u044e, \u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u043a\u043e\u0433\u0434\u0430 \u0440\u0435\u0448\u0430\u0435\u0448\u044c \u0442\u0435\u0441\u0442\u044b \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c, SEB \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0435\u0448\u0430\u0435\u0442.<\/p>\n<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u0441\u0430\u043c\u0430: <strong>\u0440\u0435\u0448\u0430\u0442\u044c \u0432\u0441\u0435 \u0442\u0435\u0441\u0442\u044b \u0438\u0437 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \u0447\u0442\u043e\u0431\u044b \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u044b\u043b \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u044d\u0442\u043e SEB<\/strong>. \u0411\u0435\u0437 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a, \u0431\u0435\u0437 admin-\u043f\u0440\u0430\u0432, \u0431\u0435\u0437 \u043f\u0430\u0442\u0447\u0435\u043d\u043d\u044b\u0445 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u043e\u0432.<\/p>\n<h3>\u041f\u0435\u0440\u0432\u0430\u044f \u0440\u0430\u0437\u0432\u0435\u0434\u043a\u0430<\/h3>\n<p>Moodle \u0434\u043b\u044f SEB-\u043a\u0432\u0438\u0437\u043e\u0432 \u0441\u0442\u0430\u0432\u0438\u0442 \u043f\u043b\u0430\u0433\u0438\u043d <code>quizaccess_seb<\/code>. \u0415\u0441\u043b\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0442\u0435\u0441\u0442\u0430 \u0438\u0437 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, Moodle \u0440\u0430\u0434\u043e\u0441\u0442\u043d\u043e \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442: \u00abThis quiz has been configured to use the Safe Exam Browser\u00bb. \u041d\u043e \u0434\u043e \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0442\u0435\u0441\u0442 \u0434\u043e\u043b\u0435\u0442\u0430\u0435\u0442 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0443 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0435\u0441\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0445.<\/p>\n<p>\u041e\u0442\u043a\u0440\u044b\u043b DevTools, \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043b \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u043c\u0438, \u043d\u0430\u0447\u0430\u043b \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0442\u044c. \u0411\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0448\u043b\u0430\u0441\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430: \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u043d\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a <code>X-SafeExamBrowser-ConfigKeyHash<\/code>. \u0415\u0441\u043b\u0438 \u043e\u043d \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439, \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442, <code>\"error\": \"Invalid config key\"<\/code>.<\/p>\n<p>\u0421\u0430\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u043a:<\/p>\n<pre><code>SHA256( URL_\u0431\u0435\u0437_query_string + ConfigKey )<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper\"><\/span><\/a><\/div><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u0434\u0432\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u0430. \u041e\u0442\u043a\u0443\u0434\u0430 \u0431\u0435\u0440\u0451\u0442\u0441\u044f <code>ConfigKey<\/code> \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440 \u043c\u043e\u0436\u0435\u0442 \u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u043a\u043b\u0438\u0435\u043d\u0442 \u0435\u0433\u043e \u0441\u0430\u043c \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b?<\/p>\n<h3>\u041e\u0442\u043a\u0443\u0434\u0430 \u0431\u0435\u0440\u0451\u0442\u0441\u044f ConfigKey<\/h3>\n<p>\u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e SEB-\u043a\u0432\u0438\u0437\u0430 \u0432 Moodle \u0435\u0441\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442:<\/p>\n<pre><code>GET \/mod\/quiz\/accessrule\/seb\/config.php?cmid=&lt;id&gt;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u041e\u043d \u043e\u0442\u0434\u0430\u0451\u0442 XML property list \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 SEB \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430: \u043a\u0430\u043a\u0438\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u044b, \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d \u043b\u0438 Wi-Fi, \u043a\u0443\u0434\u0430 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f, \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435. \u041d\u0438\u043a\u0430\u043a\u043e\u0439 \u043c\u0430\u0433\u0438\u0438, \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/f7\/0e\/45\/f70e45f0697df57cb057ed9e087cdf46.png\" alt=\"\u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d ConfigKey\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/f7\/0e\/45\/f70e45f0697df57cb057ed9e087cdf46.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/f7\/0e\/45\/f70e45f0697df57cb057ed9e087cdf46.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d ConfigKey<\/figcaption><\/div>\n<\/figure>\n<p>ConfigKey \u044d\u0442\u043e SHA256 \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0430, \u043d\u043e \u043d\u0435 \u00ab\u043a\u0430\u043a \u0435\u0441\u0442\u044c\u00bb, \u0430 \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u043d\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438. \u0412\u043e\u0442 \u0432\u0435\u0441\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c (\u0438\u0437 <code>seb_bypass\/configkey.py<\/code>):<\/p>\n<pre><code class=\"python\">def _sort_recursively(obj):    \"\"\"Sort every dict in the structure by (casefolded key, raw key).\"\"\"    if isinstance(obj, dict):        return {            k: _sort_recursively(v)            for k, v in sorted(obj.items(), key=lambda kv: (kv[0].casefold(), kv[0]))        }    if isinstance(obj, list):        return [_sort_recursively(item) for item in obj]    return objdef compute_config_key(seb_config: bytes) -&gt; str:    plist = plistlib.loads(seb_config)    if not isinstance(plist, dict):        raise ValueError(\"SEB config root must be a &lt;dict&gt; plist\")    # 1. SEB strips its own version marker before hashing.    plist.pop(\"originatorVersion\", None)    # 2-3. Canonicalise and serialize to compact JSON.    canonical = json.dumps(        _sort_recursively(plist),        separators=(\",\", \":\"),        ensure_ascii=False,    )    # 4. Hash.    return hashlib.sha256(canonical.encode(\"utf-8\")).hexdigest()<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0427\u0435\u0442\u044b\u0440\u0435 \u0448\u0430\u0433\u0430, \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u0430\u0436\u0435\u043d:<\/p>\n<ol>\n<li>\n<p><strong>\u0423\u0431\u0440\u0430\u0442\u044c <\/strong><code><strong>originatorVersion<\/strong><\/code><strong>.<\/strong> SEB \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433 \u0441\u0432\u043e\u044e \u0432\u0435\u0440\u0441\u0438\u044e, \u043d\u043e \u0432 \u0445\u0435\u0448 \u043e\u043d\u0430 \u043d\u0435 \u0432\u0445\u043e\u0434\u0438\u0442. \u041f\u043b\u0430\u0433\u0438\u043d \u0435\u0451 \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0434 \u043f\u043e\u0434\u0441\u0447\u0451\u0442\u043e\u043c. \u0415\u0441\u043b\u0438 \u0437\u0430\u0431\u044b\u0442\u044c, \u0445\u0435\u0448 \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u043c.<\/p>\n<\/li>\n<li>\n<p><strong>\u0420\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438<\/strong> \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u043b\u043e\u0432\u0430\u0440\u0435, \u0431\u0435\u0437 \u0443\u0447\u0451\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 (<code>casefold<\/code>). \u041f\u043e\u0440\u044f\u0434\u043e\u043a \u043a\u043b\u044e\u0447\u0435\u0439 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u0445\u0435\u0448.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u044b\u0439 JSON:<\/strong> \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432, <code>ensure_ascii=False<\/code>, \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 <code>(',', ':')<\/code>. \u041b\u044e\u0431\u0430\u044f \u043b\u0438\u0448\u043d\u044f\u044f \u0437\u0430\u043f\u044f\u0442\u0430\u044f \u0438\u043b\u0438 <code>\\u<\/code>-\u044d\u043a\u0440\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043b\u043e\u043c\u0430\u0435\u0442 \u0445\u0435\u0448.<\/p>\n<\/li>\n<li>\n<p><strong>SHA256 \u043e\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438.<\/strong> \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c ConfigKey: 64 hex-\u0441\u0438\u043c\u0432\u043e\u043b\u0430, \u00ab\u043f\u0430\u0441\u043f\u043e\u0440\u0442\u00bb \u043a\u0432\u0438\u0437\u0430.<\/p>\n<\/li>\n<\/ol>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0445\u0435\u0448, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e ConfigKey \u043e\u043d \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u0443 \u0441\u0435\u0431\u044f \u043f\u043e \u0442\u043e\u043c\u0443 \u0436\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0430\u043c \u0436\u0435 \u043e\u0442\u0434\u0430\u043b. \u041a\u043b\u0438\u0435\u043d\u0442 \u0434\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b \u043a\u043e\u043d\u0444\u0438\u0433 \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0435\u0433\u043e \u043a\u0430\u043d\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b.<\/p>\n<p>\u041a\u043b\u044e\u0447 \u043a\u0430\u043d\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u044f \u0441\u0432\u0435\u0440\u0438\u043b \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c SEB: \u0441\u043e\u0431\u0440\u0430\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u0441 \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u0432\u0438\u0437\u043e\u0432, \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043b \u0445\u0435\u0448\u0438, \u0441\u0440\u0430\u0432\u043d\u0438\u043b \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u043f\u0440\u0438\u0441\u044b\u043b\u0430\u0435\u0442 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 SEB. \u0421\u043e\u0432\u043f\u0430\u043b\u043e. \u0417\u0430\u0442\u0435\u043c \u043f\u043e\u043a\u0440\u044b\u043b \u044d\u0442\u043e \u0442\u0435\u0441\u0442\u0430\u043c\u0438, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043a\u0435\u0439\u0441, \u043a\u043e\u0433\u0434\u0430 \u0434\u0432\u0430 \u043a\u043b\u044e\u0447\u0430 \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u043c: <code>{'a': 1, 'A': 2}<\/code> \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u0435\u0442\u0435\u0440\u043c\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e, \u043f\u043e \u043f\u0430\u0440\u0435 <code>(casefold, raw)<\/code>.<\/p>\n<h3>\u041f\u043e\u0447\u0435\u043c\u0443 Moodle \u00ab\u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442\u00bb \u0432\u0430\u0441<\/h3>\n<p>\u0421\u0430\u043c\u043e\u0435 \u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0431\u044b\u043b\u043e \u0434\u0430\u043b\u044c\u0448\u0435. \u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0437\u0430\u0445\u043e\u0434\u0430 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0442\u0435\u0441\u0442\u0430 Moodle \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0444\u0430\u043a\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432 PHP-\u0441\u0435\u0441\u0441\u0438\u044e:<\/p>\n<pre><code class=\"php\">$SESSION-&gt;quizaccess_seb_access[$cmid] = true;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0410 \u0434\u0430\u043b\u044c\u0448\u0435 \u0441\u0435\u0441\u0441\u0438\u044f \u0441 \u0432\u0430\u043b\u0438\u0434\u043d\u044b\u043c \u0444\u043b\u0430\u0433\u043e\u043c \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432. \u0422\u043e \u0435\u0441\u0442\u044c SEB-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043d\u0443\u0436\u0435\u043d \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u0447\u0442\u043e\u0431\u044b \u00ab\u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c\u0441\u044f\u00bb, \u043f\u043e\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0445\u043e\u0434\u0438\u0442\u044c \u043f\u043e \u0442\u0435\u0441\u0442\u0443 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440. \u042d\u0442\u043e \u0440\u0435\u0437\u043a\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u0436\u0438\u0437\u043d\u044c: \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0445\u043e\u0434 \u043d\u0430 \u043a\u0432\u0438\u0437, \u0430 \u043d\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/11\/a6\/7d\/11a67d654856ff7d78efd8f44da7553e.png\" alt=\"\u0412\u0441\u0451, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/11\/a6\/7d\/11a67d654856ff7d78efd8f44da7553e.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/11\/a6\/7d\/11a67d654856ff7d78efd8f44da7553e.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0412\u0441\u0451, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430<\/figcaption><\/div>\n<\/figure>\n<h3>\u041f\u0440\u043e\u043a\u0441\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0438\u0434, \u0447\u0442\u043e \u0432\u044b SEB<\/h3>\n<p>\u0411\u044b\u043b\u043e \u0434\u0432\u0430 \u043f\u0443\u0442\u0438:<\/p>\n<ol>\n<li>\n<p><strong>Headless-\u043a\u043b\u0438\u0435\u043d\u0442 \u043d\u0430 Python:<\/strong> \u043b\u043e\u0433\u0438\u043d, <code>sesskey<\/code>, \u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432, \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u043e\u0442\u0432\u0435\u0442\u043e\u0432. \u0412\u0441\u0451 \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0439 \u043f\u0440\u043e\u043a\u0441\u0438:<\/strong> \u0441\u0438\u0434\u0438\u0448\u044c \u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u043c Chrome, \u043a\u043b\u0438\u043a\u0430\u0435\u0448\u044c \u0440\u0443\u043a\u0430\u043c\u0438, \u0430 \u043c\u0435\u0436\u0434\u0443 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c \u0438 Moodle \u0441\u0442\u043e\u0438\u0442 mitmproxy, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 SEB-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0432 \u043d\u0443\u0436\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/p>\n<\/li>\n<\/ol>\n<p>\u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b \u043e\u0431\u0430, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438. \u041a\u043b\u0438\u0435\u043d\u0442 \u0443\u0434\u043e\u0431\u0435\u043d \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 (\u00ab\u0440\u0435\u0448\u0438 \u0432\u0441\u0435 \u043a\u0432\u0438\u0437\u044b\u00bb), \u043f\u0440\u043e\u043a\u0441\u0438 \u0443\u0434\u043e\u0431\u0435\u043d \u0434\u043b\u044f \u0436\u0438\u0432\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0447\u0435\u0442 \u043a\u043b\u0438\u043a\u0430\u0442\u044c \u043c\u044b\u0448\u043a\u043e\u0439 \u0438 \u0432\u0438\u0434\u0435\u0442\u044c \u0442\u0435\u0441\u0442 \u0433\u043b\u0430\u0437\u0430\u043c\u0438.<\/p>\n<p>\u041f\u0440\u043e\u043a\u0441\u0438 \u044d\u0442\u043e \u0441\u0430\u043c\u044b\u0439 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u0444\u0430\u0439\u043b \u043f\u0440\u043e\u0435\u043a\u0442\u0430, <code>mitm_addon.py<\/code>. \u041b\u043e\u0433\u0438\u043a\u0430: \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442 <code>config.php<\/code>, \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c ConfigKey, \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043f\u043e <code>cmid<\/code>. \u041f\u043e\u0442\u043e\u043c \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u043a \u0445\u043e\u0441\u0442\u0443 Moodle \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u0432\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430:<\/p>\n<pre><code class=\"python\">flow.request.headers[\"X-SafeExamBrowser-ConfigKeyHash\"] = digestua = flow.request.headers.get(\"User-Agent\", \"\")if \"SafeExamBrowser\" not in ua:    flow.request.headers[\"User-Agent\"] = ua + \" SafeExamBrowser\/3.7.0\"<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"bash\">mitmdump -s seb_bypass\/mitm_addon.py --set seb_url=https:\/\/moodle.example.org<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u041f\u043b\u044e\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c mitmproxy-\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442, \u0447\u0442\u043e\u0431\u044b HTTPS \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u043b\u0441\u044f. \u0414\u0430\u043b\u044c\u0448\u0435 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u0440\u043e\u043a\u0441\u0438 \u0441\u0442\u0430\u0432\u0438\u0448\u044c <code>127.0.0.1:8080<\/code>, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0448\u044c Moodle, \u0437\u0430\u0445\u043e\u0434\u0438\u0448\u044c \u043d\u0430 \u0442\u0435\u0441\u0442. \u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0438\u0434\u0438\u0442 SEB.<\/p>\n<h3>\u0413\u0440\u0430\u0431\u043b\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u043b<\/h3>\n<p><strong>\u041a\u0440\u043e\u0441\u0441\u0432\u043e\u0440\u0434.<\/strong> \u041e\u0434\u0438\u043d \u0438\u0437 \u043a\u0432\u0438\u0437\u043e\u0432 \u0431\u044b\u043b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u00ab\u043a\u0440\u043e\u0441\u0441\u0432\u043e\u0440\u0434\u00bb: \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0441 \u0441\u0435\u0442\u043a\u043e\u0439, \u0431\u0443\u043a\u0432\u044b \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u043a\u043b\u0435\u0442\u043a\u0430\u043c. HTML-\u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u0435\u043d, \u043d\u0430\u0434\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0433\u043b\u0430\u0437\u0430\u043c\u0438. \u041f\u043e\u043c\u043e\u0433\u043b\u0438 PIL (\u043d\u0430\u0440\u0435\u0437\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u043d\u0430 \u0441\u0435\u043a\u0442\u043e\u0440\u0430) \u0438 Tesseract OCR (\u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c \u0432\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0441\u043b\u043e\u0432\u0430). \u041e\u0434\u043d\u043e \u0441\u043b\u043e\u0432\u043e \u00abtechno\u00bb \u0443\u043f\u043e\u0440\u043d\u043e \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043a\u043b\u0435\u0442\u043a\u0438 \u0432\u0440\u0443\u0447\u043d\u0443\u044e. \u0422\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0438, \u043d\u043e 20\/20 \u0432 \u0438\u0442\u043e\u0433\u0435.<\/p>\n<p><strong>\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0435.<\/strong> \u0421\u0430\u043c\u0430\u044f \u043a\u043e\u0432\u0430\u0440\u043d\u0430\u044f \u043b\u043e\u0432\u0443\u0448\u043a\u0430 \u0431\u044b\u043b\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c. \u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u0441\u0434\u0430\u0447\u0435 \u043a\u0432\u0438\u0437\u0430 Moodle \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043d\u043e\u0432\u044b\u0439 attempt \u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 <code>qubaid<\/code> \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0448\u0430\u0442\u044c \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432. \u041f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437 \u044f \u043d\u0430 \u044d\u0442\u043e\u043c \u043f\u043e\u0433\u043e\u0440\u0435\u043b: \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b payload \u0441 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0437\u0430\u0445\u043e\u0434\u0430, \u043e\u0442\u0432\u0435\u0442\u044b \u043f\u043e\u0435\u0445\u0430\u043b\u0438 \u043d\u0435 \u043d\u0430 \u0442\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0443\u0448\u043b\u0430 \u0432 0\/20.<\/p>\n<p>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434: <strong>\u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u044b\u043c POST \u043f\u0435\u0440\u0435\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043f\u043e\u043f\u044b\u0442\u043a\u0438<\/strong>, \u0432\u044b\u0442\u0430\u0449\u0438\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 <code>qubaid<\/code>, <code>sequencecheck<\/code> \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043b\u043e\u0442\u0430 \u0438 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u0441 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u043c\u0438 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443, \u0430 \u043d\u0435 \u043f\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c:<\/p>\n<pre><code class=\"python\"># q&lt;qubaid&gt;:&lt;slot&gt;_:sequencecheck \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u0435\u043d \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043b\u043e\u0442\u0430,# \u0438 \u043e\u043d \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u043c\u0438seq_key = f\"q{qubaid}:{slot}_:sequencecheck\"flagged = f\"q{qubaid}:{slot}_:flagged\"<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p><strong>\u0410\u0443\u0434\u0438\u043e \u0432 listening.<\/strong> \u0410\u0443\u0434\u0438\u043e\u0444\u0430\u0439\u043b\u044b \u043b\u0435\u0436\u0430\u0442 \u0432 \u043c\u0435\u0434\u0438\u0430\u0442\u0435\u043a\u0435 Moodle. \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043a\u0435\u0439\u0441: \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0430\u0442\u044c, \u0437\u0430\u043a\u043e\u043d\u0441\u043f\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c. \u0421\u043a\u0440\u0438\u043f\u0442\u0443 \u044d\u0442\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e, \u0441\u043b\u0443\u0448\u0430\u043b \u0441\u0430\u043c, \u043d\u043e \u043e\u0442\u0432\u0435\u0442\u044b \u043f\u043e\u0442\u043e\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u0442\u0435\u043c \u0436\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c.<\/p>\n<h3>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/h3>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/f6\/b7\/c0\/f6b7c0320d3d8dbd0c23c428becb345f.png\" alt=\"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043a\u0432\u0438\u0437\u043e\u0432\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/f6\/b7\/c0\/f6b7c0320d3d8dbd0c23c428becb345f.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/f6\/b7\/c0\/f6b7c0320d3d8dbd0c23c428becb345f.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043a\u0432\u0438\u0437\u043e\u0432<\/figcaption><\/div>\n<\/figure>\n<p>772 \u0431\u0430\u043b\u043b\u0430 \u0438\u0437 780, \u044d\u0442\u043e 98.71% \u043a\u0443\u0440\u0441\u0430. \u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043b\u0438\u0434\u0435\u0440\u043e\u0432: 22-\u0435 \u043c\u0435\u0441\u0442\u043e \u0438\u0437 372 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432, \u043f\u0440\u0438 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0448\u043b\u0438 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0447\u0435\u0440\u0435\u0437 SEB \u0438 \u0440\u0443\u043a\u0430\u043c\u0438. \u041f\u043e\u0442\u0435\u0440\u0438: \u043e\u0434\u0438\u043d \u043a\u0432\u0438\u0437 \u043f\u043e \u043b\u0435\u043a\u0441\u0438\u043a\u0435 (19\/20, \u0434\u0432\u0443\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435), \u0433\u0440\u0430\u043c\u043c\u0430\u0442\u0438\u043a\u0430 18.33\/20 (\u0441\u043f\u043e\u0440\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 \u0441 \u00abspill\u00bb), listening 16\/20 (\u0430\u0443\u0434\u0438\u043e, \u0433\u0434\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0443 \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u0447\u0435\u0433\u043e).<\/p>\n<h3>\u0427\u0442\u043e \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435<\/h3>\n<p>\u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439: <a href=\"https:\/\/github.com\/s1rne\/moodle-seb-bypass\" rel=\"noopener nofollow\">s1rne\/moodle-seb-bypass<\/a>. \u041b\u0438\u0446\u0435\u043d\u0437\u0438\u044f CC BY-NC-SA 4.0: \u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c, \u0444\u043e\u0440\u043a\u0430\u0439\u0442\u0435, \u043d\u043e \u043d\u0435 \u043f\u0440\u043e\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0438 \u043d\u0435 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0439\u0442\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0444\u043e\u0440\u043a\u043e\u0432.<\/p>\n<p>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f:<\/p>\n<pre><code>seb_bypass\/  configkey.py   # SHA256-\u043a\u0430\u043d\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f PList -&gt; ConfigKey  client.py      # headless-\u043a\u043b\u0438\u0435\u043d\u0442 Moodle: \u043b\u043e\u0433\u0438\u043d, \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430  mitm_addon.py  # \u0430\u0434\u0434\u043e\u043d \u0434\u043b\u044f mitmproxy: \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442 \u0438 \u043f\u043e\u0434\u043c\u0435\u043d\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432  cli.py         # seb-bypass config-key \/ checktests\/           # unit-\u0442\u0435\u0441\u0442\u044b, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0438 SEBscripts\/         # setup_mac_linux.sh \u0438 setup_windows.bat<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0411\u044b\u0441\u0442\u0440\u044b\u0439 \u0441\u0442\u0430\u0440\u0442:<\/p>\n<pre><code class=\"bash\">git clone https:\/\/github.com\/s1rne\/moodle-seb-bypasscd moodle-seb-bypasspython -m pip install -e .seb-bypass config-key --url https:\/\/moodle.example.org --cmid 42 --cookie &lt;MoodleSession&gt;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>CI \u0433\u043e\u043d\u044f\u0435\u0442 \u0442\u0435\u0441\u0442\u044b \u043d\u0430 Ubuntu, macOS \u0438 Windows, Python 3.9, 3.11, 3.12. \u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043e \u0438 \u043d\u0430 Apple Silicon, \u0438 \u043d\u0430 Intel, \u0438 \u043d\u0430 Windows-\u0436\u0435\u043b\u0435\u0437\u0435.<\/p>\n<h3>\u0412\u044b\u0432\u043e\u0434\u044b<\/h3>\n<p>\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 SEB \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c: \u043e\u0434\u0438\u043d \u0445\u0435\u0448 \u0438\u0437 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0438 \u043e\u0434\u0438\u043d \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a. \u0412\u0441\u044f \u00ab\u0437\u0430\u0449\u0438\u0442\u0430\u00bb \u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043d\u0430 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0438, \u0447\u0442\u043e \u043a\u043b\u0438\u0435\u043d\u0442 \u0447\u0435\u0441\u0442\u043d\u043e \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0435\u0442 SHA256 \u0438 \u043f\u0440\u0438\u0437\u043d\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043e\u043d SEB. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u0430\u043c \u043a\u043b\u0438\u0435\u043d\u0442, \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u043c\u043e\u0439: \u0432\u043e\u043f\u0440\u043e\u0441 \u043b\u0438\u0448\u044c \u0432 \u0442\u043e\u043c, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u0438\u043b\u0438\u0439 \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u0442\u043e\u0442, \u043a\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u0435\u0451 \u043e\u0431\u043e\u0439\u0442\u0438.<\/p>\n<p>Moodle \u043a\u044d\u0448\u0438\u0440\u0443\u0435\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0432 \u0441\u0435\u0441\u0441\u0438\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0437\u0430\u0445\u043e\u0434\u0430 \u0434\u0430\u0436\u0435 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e. \u042d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u043f\u043b\u043e\u0445\u043e \u0434\u043b\u044f \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u043e\u0441\u0442\u0438: \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043d\u0443\u0436\u0435\u043d \u043e\u0434\u0438\u043d \u0440\u0430\u0437.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c: \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043d\u0435 \u043f\u0430\u0442\u0447\u0438\u0442\u044c \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0438, \u0430 \u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b. \u0412\u0435\u0441\u044c SEB-\u0445\u0435\u043d\u0434\u0448\u0435\u0439\u043a \u0443\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0434\u0438\u043d \u044d\u043a\u0440\u0430\u043d \u043a\u043e\u0434\u0430, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0443\u0436\u0435 \u0434\u0435\u0442\u0430\u043b\u0438.<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1109532\/\">https:\/\/habr.com\/ru\/articles\/1109532\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041b\u043e\u043d\u0433\u0440\u0438\u0434 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a Moodle \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u00ab\u0442\u043e\u0442 \u043b\u0438 \u044d\u0442\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u00bb, \u043f\u043e\u0447\u0435\u043c\u0443 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u0438 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 Chrome \u0443\u0431\u0435\u0434\u0438\u043b \u0441\u0435\u0440\u0432\u0435\u0440, \u0447\u0442\u043e \u043e\u043d Safe Exam Browser. \u0412\u043d\u0443\u0442\u0440\u0438: SHA256, mitmproxy, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u0438 \u0441 \u043a\u0440\u043e\u0441\u0441\u0432\u043e\u0440\u0434\u0430\u043c\u0438 \u0438 \u0433\u0440\u0430\u0444\u0438\u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432.\u0421\u0445\u0435\u043c\u0430 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430\u0414\u0430\u043d\u043e\u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0441\u043a\u0438\u0439 \u043a\u0443\u0440\u0441 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u0432 Moodle. \u041c\u0435\u0436\u0434\u0443 \u0431\u043b\u043e\u043a\u0430\u043c\u0438 \u0441 \u043b\u0435\u043a\u0446\u0438\u044f\u043c\u0438 \u0432\u0438\u0441\u044f\u0442 \u043a\u0432\u0438\u0437\u044b \u043d\u0430 \u0431\u0430\u043b\u043b\u044b, \u0430 \u0434\u0432\u0430 \u0433\u043b\u0430\u0432\u043d\u044b\u0445 (Midterm \u0438 Final) \u043e\u0442\u043a\u0440\u044b\u0442\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 Safe Exam Browser: \u043f\u0440\u043e\u043f\u0440\u0438\u0435\u0442\u0430\u0440\u043d\u044b\u0439 \u043a\u0438\u043e\u0441\u043a-\u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u0432\u0441\u0451, \u043a\u0440\u043e\u043c\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0442\u0435\u0441\u0442\u0430. \u041f\u043e\u0441\u0442\u0430\u0432\u0438\u043b, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b, \u0441\u0434\u0430\u043b. \u041d\u043e \u0443 \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u0435\u0441\u0442\u044c \u043c\u0438\u043d\u0443\u0441\u044b: SEB \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u0436\u0438\u0432\u0451\u0442 \u0441\u0432\u043e\u0435\u0439 \u0436\u0438\u0437\u043d\u044c\u044e, \u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u043a\u043e\u0433\u0434\u0430 \u0440\u0435\u0448\u0430\u0435\u0448\u044c \u0442\u0435\u0441\u0442\u044b \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c, SEB \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0435\u0448\u0430\u0435\u0442.\u0417\u0430\u0434\u0430\u0447\u0430 \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u0441\u0430\u043c\u0430: \u0440\u0435\u0448\u0430\u0442\u044c \u0432\u0441\u0435 \u0442\u0435\u0441\u0442\u044b \u0438\u0437 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \u0447\u0442\u043e\u0431\u044b \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u044b\u043b \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u044d\u0442\u043e SEB. \u0411\u0435\u0437 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a, \u0431\u0435\u0437 admin-\u043f\u0440\u0430\u0432, \u0431\u0435\u0437 \u043f\u0430\u0442\u0447\u0435\u043d\u043d\u044b\u0445 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u043e\u0432.\u041f\u0435\u0440\u0432\u0430\u044f \u0440\u0430\u0437\u0432\u0435\u0434\u043a\u0430Moodle \u0434\u043b\u044f SEB-\u043a\u0432\u0438\u0437\u043e\u0432 \u0441\u0442\u0430\u0432\u0438\u0442 \u043f\u043b\u0430\u0433\u0438\u043d quizaccess_seb. \u0415\u0441\u043b\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0442\u0435\u0441\u0442\u0430 \u0438\u0437 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, Moodle \u0440\u0430\u0434\u043e\u0441\u0442\u043d\u043e \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442: \u00abThis quiz has been configured to use the Safe Exam Browser\u00bb. \u041d\u043e \u0434\u043e \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0442\u0435\u0441\u0442 \u0434\u043e\u043b\u0435\u0442\u0430\u0435\u0442 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0443 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0435\u0441\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0445.\u041e\u0442\u043a\u0440\u044b\u043b DevTools, \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043b \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u043c\u0438, \u043d\u0430\u0447\u0430\u043b \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0442\u044c. \u0411\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0448\u043b\u0430\u0441\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430: \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u043d\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a X-SafeExamBrowser-ConfigKeyHash. \u0415\u0441\u043b\u0438 \u043e\u043d \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439, \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442, &#171;error&#187;: &#171;Invalid config key&#187;.\u0421\u0430\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u043a:SHA256( URL_\u0431\u0435\u0437_query_string + ConfigKey )\u0417\u0434\u0435\u0441\u044c \u0434\u0432\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u0430. \u041e\u0442\u043a\u0443\u0434\u0430 \u0431\u0435\u0440\u0451\u0442\u0441\u044f ConfigKey \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440 \u043c\u043e\u0436\u0435\u0442 \u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u043a\u043b\u0438\u0435\u043d\u0442 \u0435\u0433\u043e \u0441\u0430\u043c \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b?\u041e\u0442\u043a\u0443\u0434\u0430 \u0431\u0435\u0440\u0451\u0442\u0441\u044f ConfigKey\u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e SEB-\u043a\u0432\u0438\u0437\u0430 \u0432 Moodle \u0435\u0441\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442:GET \/mod\/quiz\/accessrule\/seb\/config.php?cmid=&lt;id&gt;\u041e\u043d \u043e\u0442\u0434\u0430\u0451\u0442 XML property list \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 SEB \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430: \u043a\u0430\u043a\u0438\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u044b, \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d \u043b\u0438 Wi-Fi, \u043a\u0443\u0434\u0430 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f, \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435. \u041d\u0438\u043a\u0430\u043a\u043e\u0439 \u043c\u0430\u0433\u0438\u0438, \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433.\u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d ConfigKeyConfigKey \u044d\u0442\u043e SHA256 \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0430, \u043d\u043e \u043d\u0435 \u00ab\u043a\u0430\u043a \u0435\u0441\u0442\u044c\u00bb, \u0430 \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u043d\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438. \u0412\u043e\u0442 \u0432\u0435\u0441\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c (\u0438\u0437 seb_bypass\/configkey.py):def _sort_recursively(obj):    &#171;&#187;&#187;Sort every dict in the structure by (casefolded key, raw key).&#187;&#187;&#187;    if isinstance(obj, dict):        return {            k: _sort_recursively(v)            for k, v in sorted(obj.items(), key=lambda kv: (kv[0].casefold(), kv[0]))        }    if isinstance(obj, list):        return [_sort_recursively(item) for item in obj]    return objdef compute_config_key(seb_config: bytes) -&gt; str:    plist = plistlib.loads(seb_config)    if not isinstance(plist, dict):        raise ValueError(&#171;SEB config root must be a &lt;dict&gt; plist&#187;)    # 1. SEB strips its own version marker before hashing.    plist.pop(&#171;originatorVersion&#187;, None)    # 2-3. Canonicalise and serialize to compact JSON.    canonical = json.dumps(        _sort_recursively(plist),        separators=(&#171;,&#187;, &#171;:&#187;),        ensure_ascii=False,    )    # 4. Hash.    return hashlib.sha256(canonical.encode(&#171;utf-8&#187;)).hexdigest()\u0427\u0435\u0442\u044b\u0440\u0435 \u0448\u0430\u0433\u0430, \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u0430\u0436\u0435\u043d:\u0423\u0431\u0440\u0430\u0442\u044c originatorVersion. SEB \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433 \u0441\u0432\u043e\u044e \u0432\u0435\u0440\u0441\u0438\u044e, \u043d\u043e \u0432 \u0445\u0435\u0448 \u043e\u043d\u0430 \u043d\u0435 \u0432\u0445\u043e\u0434\u0438\u0442. \u041f\u043b\u0430\u0433\u0438\u043d \u0435\u0451 \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0434 \u043f\u043e\u0434\u0441\u0447\u0451\u0442\u043e\u043c. \u0415\u0441\u043b\u0438 \u0437\u0430\u0431\u044b\u0442\u044c, \u0445\u0435\u0448 \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u043c.\u0420\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u043b\u043e\u0432\u0430\u0440\u0435, \u0431\u0435\u0437 \u0443\u0447\u0451\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 (casefold). \u041f\u043e\u0440\u044f\u0434\u043e\u043a \u043a\u043b\u044e\u0447\u0435\u0439 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u0445\u0435\u0448.\u0421\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u044b\u0439 JSON: \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432, ensure_ascii=False, \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 (&#8216;,&#8217;, &#8216;:&#8217;). \u041b\u044e\u0431\u0430\u044f \u043b\u0438\u0448\u043d\u044f\u044f \u0437\u0430\u043f\u044f\u0442\u0430\u044f \u0438\u043b\u0438 \\u-\u044d\u043a\u0440\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043b\u043e\u043c\u0430\u0435\u0442 \u0445\u0435\u0448.SHA256 \u043e\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438. \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c ConfigKey: 64 hex-\u0441\u0438\u043c\u0432\u043e\u043b\u0430, \u00ab\u043f\u0430\u0441\u043f\u043e\u0440\u0442\u00bb \u043a\u0432\u0438\u0437\u0430.\u0421\u0435\u0440\u0432\u0435\u0440 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0445\u0435\u0448, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e ConfigKey \u043e\u043d \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u0443 \u0441\u0435\u0431\u044f \u043f\u043e \u0442\u043e\u043c\u0443 \u0436\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0430\u043c \u0436\u0435 \u043e\u0442\u0434\u0430\u043b. \u041a\u043b\u0438\u0435\u043d\u0442 \u0434\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b \u043a\u043e\u043d\u0444\u0438\u0433 \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0435\u0433\u043e \u043a\u0430\u043d\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b.\u041a\u043b\u044e\u0447 \u043a\u0430\u043d\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u044f \u0441\u0432\u0435\u0440\u0438\u043b \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c SEB: \u0441\u043e\u0431\u0440\u0430\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u0441 \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u0432\u0438\u0437\u043e\u0432, \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043b \u0445\u0435\u0448\u0438, \u0441\u0440\u0430\u0432\u043d\u0438\u043b \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u043f\u0440\u0438\u0441\u044b\u043b\u0430\u0435\u0442 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 SEB. \u0421\u043e\u0432\u043f\u0430\u043b\u043e. \u0417\u0430\u0442\u0435\u043c \u043f\u043e\u043a\u0440\u044b\u043b \u044d\u0442\u043e \u0442\u0435\u0441\u0442\u0430\u043c\u0438, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043a\u0435\u0439\u0441, \u043a\u043e\u0433\u0434\u0430 \u0434\u0432\u0430 \u043a\u043b\u044e\u0447\u0430 \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u043c: {&#8216;a&#8217;: 1, &#8216;A&#8217;: 2} \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u0435\u0442\u0435\u0440\u043c\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e, \u043f\u043e \u043f\u0430\u0440\u0435 (casefold, raw).\u041f\u043e\u0447\u0435\u043c\u0443 Moodle \u00ab\u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442\u00bb \u0432\u0430\u0441\u0421\u0430\u043c\u043e\u0435 \u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0431\u044b\u043b\u043e \u0434\u0430\u043b\u044c\u0448\u0435. \u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0437\u0430\u0445\u043e\u0434\u0430 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0442\u0435\u0441\u0442\u0430 Moodle \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0444\u0430\u043a\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432 PHP-\u0441\u0435\u0441\u0441\u0438\u044e:$SESSION-&gt;quizaccess_seb_access[$cmid] = true;\u0410 \u0434\u0430\u043b\u044c\u0448\u0435 \u0441\u0435\u0441\u0441\u0438\u044f \u0441 \u0432\u0430\u043b\u0438\u0434\u043d\u044b\u043c \u0444\u043b\u0430\u0433\u043e\u043c \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432. \u0422\u043e \u0435\u0441\u0442\u044c SEB-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043d\u0443\u0436\u0435\u043d \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u0447\u0442\u043e\u0431\u044b \u00ab\u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c\u0441\u044f\u00bb, \u043f\u043e\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0445\u043e\u0434\u0438\u0442\u044c \u043f\u043e \u0442\u0435\u0441\u0442\u0443 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440. \u042d\u0442\u043e \u0440\u0435\u0437\u043a\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u0436\u0438\u0437\u043d\u044c: \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0445\u043e\u0434 \u043d\u0430 \u043a\u0432\u0438\u0437, \u0430 \u043d\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441.\u0412\u0441\u0451, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u041f\u0440\u043e\u043a\u0441\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0438\u0434, \u0447\u0442\u043e \u0432\u044b SEB\u0411\u044b\u043b\u043e \u0434\u0432\u0430 \u043f\u0443\u0442\u0438:Headless-\u043a\u043b\u0438\u0435\u043d\u0442 \u043d\u0430 Python: \u043b\u043e\u0433\u0438\u043d, sesskey, \u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432, \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u043e\u0442\u0432\u0435\u0442\u043e\u0432. \u0412\u0441\u0451 \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430.\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0439 \u043f\u0440\u043e\u043a\u0441\u0438: \u0441\u0438\u0434\u0438\u0448\u044c \u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u043c Chrome, \u043a\u043b\u0438\u043a\u0430\u0435\u0448\u044c \u0440\u0443\u043a\u0430\u043c\u0438, \u0430 \u043c\u0435\u0436\u0434\u0443 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c \u0438 Moodle \u0441\u0442\u043e\u0438\u0442 mitmproxy, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 SEB-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0432 \u043d\u0443\u0436\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b.\u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b \u043e\u0431\u0430, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438. \u041a\u043b\u0438\u0435\u043d\u0442 \u0443\u0434\u043e\u0431\u0435\u043d \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 (\u00ab\u0440\u0435\u0448\u0438 \u0432\u0441\u0435 \u043a\u0432\u0438\u0437\u044b\u00bb), \u043f\u0440\u043e\u043a\u0441\u0438 \u0443\u0434\u043e\u0431\u0435\u043d \u0434\u043b\u044f \u0436\u0438\u0432\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0447\u0435\u0442 \u043a\u043b\u0438\u043a\u0430\u0442\u044c \u043c\u044b\u0448\u043a\u043e\u0439 \u0438 \u0432\u0438\u0434\u0435\u0442\u044c \u0442\u0435\u0441\u0442 \u0433\u043b\u0430\u0437\u0430\u043c\u0438.\u041f\u0440\u043e\u043a\u0441\u0438 \u044d\u0442\u043e \u0441\u0430\u043c\u044b\u0439 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u0444\u0430\u0439\u043b \u043f\u0440\u043e\u0435\u043a\u0442\u0430, mitm_addon.py. \u041b\u043e\u0433\u0438\u043a\u0430: \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442 config.php, \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c ConfigKey, \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043f\u043e cmid. \u041f\u043e\u0442\u043e\u043c \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u043a \u0445\u043e\u0441\u0442\u0443 Moodle \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u0432\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430:flow.request.headers[&#171;X-SafeExamBrowser-ConfigKeyHash&#187;] = digestua = flow.request.headers.get(&#171;User-Agent&#187;, &#171;&#187;)if &#171;SafeExamBrowser&#187; not in ua:    flow.request.headers[&#171;User-Agent&#187;] = ua + &#187; SafeExamBrowser\/3.7.0&#8243;\u0417\u0430\u043f\u0443\u0441\u043a \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:mitmdump -s seb_bypass\/mitm_addon.py &#8212;set seb_url=https:\/\/moodle.example.org\u041f\u043b\u044e\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c mitmproxy-\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442, \u0447\u0442\u043e\u0431\u044b HTTPS \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u043b\u0441\u044f. \u0414\u0430\u043b\u044c\u0448\u0435 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u0440\u043e\u043a\u0441\u0438 \u0441\u0442\u0430\u0432\u0438\u0448\u044c 127.0.0.1:8080, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0448\u044c Moodle, \u0437\u0430\u0445\u043e\u0434\u0438\u0448\u044c \u043d\u0430 \u0442\u0435\u0441\u0442. \u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0438\u0434\u0438\u0442 SEB.\u0413\u0440\u0430\u0431\u043b\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u043b\u041a\u0440\u043e\u0441\u0441\u0432\u043e\u0440\u0434. \u041e\u0434\u0438\u043d \u0438\u0437 \u043a\u0432\u0438\u0437\u043e\u0432 \u0431\u044b\u043b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u00ab\u043a\u0440\u043e\u0441\u0441\u0432\u043e\u0440\u0434\u00bb: \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0441 \u0441\u0435\u0442\u043a\u043e\u0439, \u0431\u0443\u043a\u0432\u044b \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u043a\u043b\u0435\u0442\u043a\u0430\u043c. HTML-\u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u0435\u043d, \u043d\u0430\u0434\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0433\u043b\u0430\u0437\u0430\u043c\u0438. \u041f\u043e\u043c\u043e\u0433\u043b\u0438 PIL (\u043d\u0430\u0440\u0435\u0437\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u043d\u0430 \u0441\u0435\u043a\u0442\u043e\u0440\u0430) \u0438 Tesseract OCR (\u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c \u0432\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0441\u043b\u043e\u0432\u0430). \u041e\u0434\u043d\u043e \u0441\u043b\u043e\u0432\u043e \u00abtechno\u00bb \u0443\u043f\u043e\u0440\u043d\u043e \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043a\u043b\u0435\u0442\u043a\u0438 \u0432\u0440\u0443\u0447\u043d\u0443\u044e. \u0422\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0438, \u043d\u043e 20\/20 \u0432 \u0438\u0442\u043e\u0433\u0435.\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0435. \u0421\u0430\u043c\u0430\u044f \u043a\u043e\u0432\u0430\u0440\u043d\u0430\u044f \u043b\u043e\u0432\u0443\u0448\u043a\u0430 \u0431\u044b\u043b\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c. \u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u0441\u0434\u0430\u0447\u0435 \u043a\u0432\u0438\u0437\u0430 Moodle \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043d\u043e\u0432\u044b\u0439 attempt \u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 qubaid \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0448\u0430\u0442\u044c \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432. \u041f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437 \u044f \u043d\u0430 \u044d\u0442\u043e\u043c \u043f\u043e\u0433\u043e\u0440\u0435\u043b: \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b payload \u0441 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0437\u0430\u0445\u043e\u0434\u0430, \u043e\u0442\u0432\u0435\u0442\u044b \u043f\u043e\u0435\u0445\u0430\u043b\u0438 \u043d\u0435 \u043d\u0430 \u0442\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0443\u0448\u043b\u0430 \u0432 0\/20.\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434: \u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u044b\u043c POST \u043f\u0435\u0440\u0435\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043f\u043e\u043f\u044b\u0442\u043a\u0438, \u0432\u044b\u0442\u0430\u0449\u0438\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 qubaid, sequencecheck \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043b\u043e\u0442\u0430 \u0438 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u0441 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u043c\u0438 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443, \u0430 \u043d\u0435 \u043f\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c:# q&lt;qubaid&gt;:&lt;slot&gt;_:sequencecheck \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u0435\u043d \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043b\u043e\u0442\u0430,# \u0438 \u043e\u043d \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u043c\u0438seq_key = f&#187;q{qubaid}:{slot}_:sequencecheck&#187;flagged = f&#187;q{qubaid}:{slot}_:flagged&#187;\u0410\u0443\u0434\u0438\u043e \u0432 listening. \u0410\u0443\u0434\u0438\u043e\u0444\u0430\u0439\u043b\u044b \u043b\u0435\u0436\u0430\u0442 \u0432 \u043c\u0435\u0434\u0438\u0430\u0442\u0435\u043a\u0435 Moodle. \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043a\u0435\u0439\u0441: \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0430\u0442\u044c, \u0437\u0430\u043a\u043e\u043d\u0441\u043f\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c. \u0421\u043a\u0440\u0438\u043f\u0442\u0443 \u044d\u0442\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e, \u0441\u043b\u0443\u0448\u0430\u043b \u0441\u0430\u043c, \u043d\u043e \u043e\u0442\u0432\u0435\u0442\u044b \u043f\u043e\u0442\u043e\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u0442\u0435\u043c \u0436\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c.\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043a\u0432\u0438\u0437\u043e\u0432772 \u0431\u0430\u043b\u043b\u0430 \u0438\u0437 780, \u044d\u0442\u043e 98.71% \u043a\u0443\u0440\u0441\u0430. \u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043b\u0438\u0434\u0435\u0440\u043e\u0432: 22-\u0435 \u043c\u0435\u0441\u0442\u043e \u0438\u0437 372 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432, \u043f\u0440\u0438 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0448\u043b\u0438 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0447\u0435\u0440\u0435\u0437 SEB \u0438 \u0440\u0443\u043a\u0430\u043c\u0438. \u041f\u043e\u0442\u0435\u0440\u0438: \u043e\u0434\u0438\u043d \u043a\u0432\u0438\u0437 \u043f\u043e \u043b\u0435\u043a\u0441\u0438\u043a\u0435 (19\/20, \u0434\u0432\u0443\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435), \u0433\u0440\u0430\u043c\u043c\u0430\u0442\u0438\u043a\u0430 18.33\/20 (\u0441\u043f\u043e\u0440\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 \u0441 \u00abspill\u00bb), listening 16\/20 (\u0430\u0443\u0434\u0438\u043e, \u0433\u0434\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0443 \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u0447\u0435\u0433\u043e).\u0427\u0442\u043e \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435\u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439: s1rne\/moodle-seb-bypass. \u041b\u0438\u0446\u0435\u043d\u0437\u0438\u044f CC BY-NC-SA 4.0: \u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c, \u0444\u043e\u0440\u043a\u0430\u0439\u0442\u0435, \u043d\u043e \u043d\u0435 \u043f\u0440\u043e\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0438 \u043d\u0435 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0439\u0442\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0444\u043e\u0440\u043a\u043e\u0432.\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f:seb_bypass\/  configkey.py   # SHA256-\u043a\u0430\u043d\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f PList -&gt; ConfigKey  client.py      # headless-\u043a\u043b\u0438\u0435\u043d\u0442 Moodle: \u043b\u043e\u0433\u0438\u043d, \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430  mitm_addon.py  # \u0430\u0434\u0434\u043e\u043d \u0434\u043b\u044f mitmproxy: \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442 \u0438 \u043f\u043e\u0434\u043c\u0435\u043d\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432  cli.py         # seb-bypass config-key \/ checktests\/           # unit-\u0442\u0435\u0441\u0442\u044b, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0438 SEBscripts\/         # setup_mac_linux.sh \u0438 setup_windows.bat\u0411\u044b\u0441\u0442\u0440\u044b\u0439 \u0441\u0442\u0430\u0440\u0442:git clone https:\/\/github.com\/s1rne\/moodle-seb-bypasscd moodle-seb-bypasspython -m pip install -e .seb-bypass config-key &#8212;url https:\/\/moodle.example.org &#8212;cmid 42 &#8212;cookie &lt;MoodleSession&gt;CI \u0433\u043e\u043d\u044f\u0435\u0442 \u0442\u0435\u0441\u0442\u044b \u043d\u0430 Ubuntu, macOS \u0438 Windows, Python 3.9, 3.11, 3.12. \u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043e \u0438 \u043d\u0430 Apple Silicon, \u0438 \u043d\u0430 Intel, \u0438 \u043d\u0430 Windows-\u0436\u0435\u043b\u0435\u0437\u0435.\u0412\u044b\u0432\u043e\u0434\u044b\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 SEB \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c: \u043e\u0434\u0438\u043d \u0445\u0435\u0448 \u0438\u0437 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0438 \u043e\u0434\u0438\u043d \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a. \u0412\u0441\u044f \u00ab\u0437\u0430\u0449\u0438\u0442\u0430\u00bb \u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043d\u0430 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0438, \u0447\u0442\u043e \u043a\u043b\u0438\u0435\u043d\u0442 \u0447\u0435\u0441\u0442\u043d\u043e \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0435\u0442 SHA256 \u0438 \u043f\u0440\u0438\u0437\u043d\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043e\u043d SEB. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u0430\u043c \u043a\u043b\u0438\u0435\u043d\u0442, \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u043c\u043e\u0439: \u0432\u043e\u043f\u0440\u043e\u0441 \u043b\u0438\u0448\u044c \u0432 \u0442\u043e\u043c, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u0438\u043b\u0438\u0439 \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u0442\u043e\u0442, \u043a\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u0435\u0451 \u043e\u0431\u043e\u0439\u0442\u0438.Moodle \u043a\u044d\u0448\u0438\u0440\u0443\u0435\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0432 \u0441\u0435\u0441\u0441\u0438\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0437\u0430\u0445\u043e\u0434\u0430 \u0434\u0430\u0436\u0435 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e. \u042d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u043f\u043b\u043e\u0445\u043e \u0434\u043b\u044f \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u043e\u0441\u0442\u0438: \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043d\u0443\u0436\u0435\u043d \u043e\u0434\u0438\u043d \u0440\u0430\u0437.\u0415\u0441\u043b\u0438 \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c: \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043d\u0435 \u043f\u0430\u0442\u0447\u0438\u0442\u044c \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0438, \u0430 \u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b. \u0412\u0435\u0441\u044c SEB-\u0445\u0435\u043d\u0434\u0448\u0435\u0439\u043a \u0443\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0434\u0438\u043d \u044d\u043a\u0440\u0430\u043d \u043a\u043e\u0434\u0430, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0443\u0436\u0435 \u0434\u0435\u0442\u0430\u043b\u0438.\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1109532\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-503818","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/503818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=503818"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/503818\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=503818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=503818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=503818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}