{"id":406819,"date":"2024-06-29T19:10:05","date_gmt":"2024-06-29T19:10:05","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=406819"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=406819","title":{"rendered":"<span>\u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u044c \u0440\u0430\u0437 \u043c\u0435\u0447\u0442\u0430\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c crack \u0438\u043b\u0438 keygen<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0414\u043d\u044f 3 \u043d\u0430\u0437\u0430\u0434 \u0437\u0430\u0433\u043b\u044f\u043d\u0443\u043b \u043d\u0430 \u0441\u0430\u0439\u0442 crackmes.one \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u043b\u044b \u0432\u043e \u0432\u0437\u043b\u043e\u043c\u0435 \u0437\u0430\u0449\u0438\u0442. \u041f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0443\u0433\u0430\u0434 \u0432\u0437\u044f\u043b\u0441\u044f \u0437\u0430 &#171;hitTman&#8217;s Kolay One!&#187;: \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e \u043e\u0446\u0435\u043d\u043a\u0435 Difficulty: 2.0 \u0438 Quality: 4.0. \u041d\u0435 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u043e, \u043d\u043e \u0438 \u043d\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u043b\u043e\u0436\u043d\u043e.<\/p>\n<p>\u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0444\u043e\u0440\u043c\u0430 \u0432\u0432\u043e\u0434\u0430 \u043f\u0430\u0440\u043e\u043b\u044f \u0441 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u043e\u0439: \u0442\u0435\u043a\u0441\u0442 \u043a\u043d\u043e\u043f\u043a\u0438 &#171;submit password&#187; \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0447\u0438\u0441\u043b\u043e. \u0415\u0441\u043b\u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u043f\u0430\u0440\u043e\u043b\u044f, \u0437\u0430\u043c\u0435\u0442\u043d\u043e, \u0447\u0442\u043e \u0434\u043b\u044f \u043e\u0434\u043d\u0438\u0445 \u0438 \u0442\u0435\u0445 \u0436\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0447\u0438\u0441\u043b\u043e \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f. \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u0445\u0435\u0448-\u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0430 \u0435\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443. \u041f\u0440\u043e\u0431\u0443\u044f \u043f\u0430\u0440\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u043b\u0435\u0433\u043a\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0447\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0435 &#8212; \u0441\u0443\u043c\u043c\u0430 \u0447\u0438\u0441\u0435\u043b \u0434\u043b\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u043f\u0430\u0440\u043e\u043b\u044f.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/31b\/f10\/8a7\/31bf108a79623dead55ae8e5585eab84.png\" width=\"274\" height=\"197\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/31b\/f10\/8a7\/31bf108a79623dead55ae8e5585eab84.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041b\u043e\u0433\u0438\u0447\u043d\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u0445\u0435\u0448 \u0441 \u044d\u0442\u0430\u043b\u043e\u043d\u043e\u043c \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0432\u044b\u0434\u0430\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 &#171;Try harder!&#187;. \u0418\u0449\u0435\u043c \u0432 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0430\u0445 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430. \u041f\u043e\u0432\u0435\u0437\u043b\u043e: \u043e\u043d\u043e \u0434\u0430\u0436\u0435 \u043d\u0435 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043e \u0438 \u043d\u0430 \u043d\u0435\u0433\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u0432 \u043a\u043e\u0434\u0435.<\/p>\n<figure class=\"bordered full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f2a\/d8a\/872\/f2ad8a872fd78c7fd1b2343301795c3f.png\" width=\"1180\" height=\"150\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f2a\/d8a\/872\/f2ad8a872fd78c7fd1b2343301795c3f.png\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/672\/860\/dd8\/672860dd8447bf2a82030ea972223746.png\" width=\"1300\" height=\"505\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/672\/860\/dd8\/672860dd8447bf2a82030ea972223746.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0440\u044f\u0434\u043e\u043c \u0436\u0435 \u0438 \u044d\u0442\u0430\u043b\u043e\u043d \u0445\u0435\u0448\u0430: 12Eh. \u041b\u0435\u0433\u043a\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c: \u0438\u0437 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0445\u0435\u0448\u0435\u0439 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 &#171;AaAaAaAaAaAaAaAaAaAaAaAaAaAaAa\/\/&#187; \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435, \u043d\u0430 \u0447\u0442\u043e \u043e\u043d\u0430 \u0432\u044b\u0434\u0430\u0435\u0442 &#171;Great Job&#187;.<\/p>\n<p>\u0410\u0432\u0442\u043e\u0440 \u043f\u0440\u043e\u0441\u0438\u043b: &#171;find a Valid pass!&#187;, \u043d\u043e \u044d\u0442\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0441\u0442\u043e, \u0434\u0430 \u0438 \u0432\u0435\u0440\u043d\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c &#8212; \u043d\u0435 \u043e\u0434\u0438\u043d. \u041a\u0443\u0434\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043a\u043b\u044e\u0447\u0435\u0439. \u041f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0445\u0435\u0448-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0432\u0441\u0435\u0433\u043e \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0430. \u0420\u0443\u043a\u0430\u043c\u0438 \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u043f\u0430\u0440\u043e\u043b\u044f \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u0431\u0443\u043c\u0430\u0433\u0435 \u0438\u0445 \u0445\u0435\u0448\u0438 \u0434\u043e\u043b\u0433\u043e \u0438 \u0441\u043a\u0443\u0447\u043d\u043e, \u0432\u0435\u0434\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0441\u0430\u043c\u0443 \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0442\u044c \u0430\u043b\u0444\u0430\u0432\u0438\u0442.<\/p>\n<p>\u0423 OllyDbg \u0435\u0441\u0442\u044c \u043a\u043e\u043b\u043b\u0435\u0433\u0430 &#8212; Immunity Debugger, \u043e\u043d \u0443\u043c\u0435\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043d\u0430 Python. \u041e\u0442\u044b\u0449\u0435\u043c \u0445\u0435\u0448-\u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043c \u0435\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0430\u043b\u0444\u0430\u0432\u0438\u0442.<\/p>\n<p>\u0412 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0435 ButtonClick (sub_45385C) \u043f\u0440\u044f\u043c\u043e \u043f\u0435\u0440\u0435\u0434 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435\u043c \u0445\u0435\u0448\u0430 \u0441 \u044d\u0442\u0430\u043b\u043e\u043d\u043e\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u044b\u0437\u043e\u0432 sub_4537C4. \u041f\u043e\u0445\u043e\u0436\u0435, \u044d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u0445\u0435\u0448-\u0444\u0443\u043d\u043a\u0446\u0438\u044f: \u043e\u043d\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u0430\u0440\u043e\u043b\u044f \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0445\u0435\u0448 \u0432 EAX. \u041f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0445 push \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043d\u0435 \u0432\u0438\u0434\u043d\u043e, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u043e\u043d\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b. \u0415\u0441\u043b\u0438 \u0442\u0430\u043a, \u0442\u043e var_C \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443-\u043f\u0430\u0440\u043e\u043b\u044c.<\/p>\n<p>\u0412\u044b\u0448\u0435 \u0432\u044b\u0437\u043e\u0432 sub_432A4C \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u0432\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430: \u0430\u0434\u0440\u0435\u0441 var_C \u0438 \u0435\u0449\u0435 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043f\u043e \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044e \u043e\u0442 EBX. \u0418\u0449\u0435\u043c \u0447\u0442\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432 EBX: \u0432\u044b\u0448\u0435 \u043f\u043e \u043a\u043e\u0434\u0443 ButtonClick \u0432 \u043d\u0435\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 EAX, \u043d\u043e \u043f\u0440\u0435\u0436\u0434\u0435 \u043d\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 EAX, \u0437\u043d\u0430\u0447\u0438\u0442 \u0442\u0430\u043c \u0442\u043e\u0436\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b. \u0417\u0430\u0433\u043b\u044f\u043d\u0443\u0432 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043f\u043e Delphi \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0443 ButtonClick \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0430\u0434\u0440\u0435\u0441 TObject sender. \u041c\u043e\u0436\u043d\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 sub_432A4C &#8212; \u044d\u0442\u043e \u0430\u0434\u0440\u0435\u0441 \u043f\u043e\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0430 \u0444\u043e\u0440\u043c\u0435, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043e\u043d\u0430 \u0447\u0438\u0442\u0430\u0435\u0442 \u043f\u0430\u0440\u043e\u043b\u044c.<\/p>\n<p>\u0422\u0430\u043a\u0438\u0445 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0432 ButtonClick \u0434\u0432\u0430: \u0435\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0432 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0435, \u0443\u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e sub_00432A4C \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443-\u043f\u0430\u0440\u043e\u043b\u044c \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e-\u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c ButtonClick \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e \u0432 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0435, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043d\u0430 \u0441\u0442\u0435\u043a\u0435 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0438 \u0442\u0435\u043a\u0441\u0442 \u043a\u043d\u043e\u043f\u043a\u0438 &#8212; \u0447\u0438\u0441\u043b\u043e. \u041b\u0435\u0433\u043a\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e sub_407CE0 &#8212; \u044d\u0442\u043e int to string, [ebx+2FCh] &#8212; \u044d\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443, \u0430 sub_00432A7C &#8212; \u044d\u0442\u043e setButtonText.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/aea\/f8f\/18c\/aeaf8f18c753c323a974166f354015b2.png\" width=\"1920\" height=\"868\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/aea\/f8f\/18c\/aeaf8f18c753c323a974166f354015b2.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u043c\u0435\u043d\u0438\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u0435\u0440\u0435\u0434 \u0445\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c: \u0441\u0442\u0430\u0432\u0438\u043c breakpoint \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 0x004538B3 &#8212; \u043f\u0440\u044f\u043c\u043e \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u0437\u043e\u0432\u043e\u043c hashFn \u043e\u043d\u0430 \u0436\u0435 sub_4537C4. \u0412\u0432\u043e\u0434\u0438\u043c \u043f\u0430\u0440\u043e\u043b\u044c 1234 \u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0430 \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 var_C &#8212; \u0432\u0432\u0435\u0434\u0435\u043c \u0431\u0443\u043a\u0432\u0443 A \u0438 \u0441\u0438\u043c\u0432\u043e\u043b \u043a\u043e\u043d\u0446\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 \\0. \u0421\u0435\u0439\u0447\u0430\u0441 \u0445\u0435\u0448-\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0432 EAX \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 0x13 (19). \u0428\u0430\u0433\u0430\u0435\u043c \u0432\u043f\u0435\u0440\u0435\u0434 \u0438&#8230; \u041f\u0435\u0440\u0432\u0430\u044f \u043d\u0435\u0443\u0434\u0430\u0447\u0430: \u0432 EAX &#8212; 0x56 (86). \u0414\u043e\u043b\u0433\u043e \u0434\u0443\u043c\u0430\u043b, \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b, \u0433\u0440\u0435\u0448\u0438\u043b \u043d\u0430 \u042e\u043d\u0438\u043a\u043e\u0434 \u0438\u043b\u0438 \u0435\u0449\u0435 \u043a\u0430\u043a\u0438\u0435 \u0441\u043a\u0440\u044b\u0442\u044b\u0435 \u0445\u0438\u0442\u0440\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b. \u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0433\u0434\u0435-\u0442\u043e \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0434\u043b\u0438\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u0412\u043c\u0435\u0441\u0442\u043e \u0445\u0435\u0448\u0430 &#171;A\\0&#187; \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u0445\u0435\u0448 &#171;A\\034&#187;. \u0425\u0435\u0448 \\0 \u0440\u0430\u0432\u0435\u043d 0, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0441\u043b\u0438 \u0432\u0432\u0435\u0441\u0442\u0438 \u043f\u0430\u0440\u043e\u043b\u044c A34 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0445\u0435\u0448 0x56. \u0417\u043d\u0430\u0447\u0438\u0442 \u0432\u0432\u0435\u0434\u0435\u043c \u043e\u0434\u0438\u043d \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u0430\u0440\u043e\u043b\u044f \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043c \u043f\u0440\u0430\u0432\u043a\u0438 \u0432 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0435 &#8212; \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c!<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0434\u043b\u044f \u0432\u0441\u0435\u0433\u043e \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0430:<\/p>\n<ul>\n<li>\n<p>\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u0437\u043e\u0432\u043e\u043c hashFn<\/p>\n<\/li>\n<li>\n<p>\u0441\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u0430\u0440\u043e\u043b\u044f \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043f\u043e \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0443<\/p>\n<\/li>\n<li>\n<p>\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u0437\u043e\u0432\u0430 hashFn \u0438 \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0445\u0435\u0448 \u0441\u0438\u043c\u0432\u043e\u043b\u0430<\/p>\n<\/li>\n<li>\n<p>\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043a \u0432\u044b\u0437\u043e\u0432\u0443 hashFn<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 Python, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u0442:<\/p>\n<pre><code class=\"python\">import immlib  imm = immlib.Debugger()  def main(args):     table = {} # break \u043f\u043e\u0441\u043b\u0435 hashFn     imm.setBreakpoint(0x004538B8)     mem_password = imm.getRegs()[\"EAX\"] # \u0446\u0438\u043a\u043b \u043f\u043e \u043f\u0435\u0447\u0430\u0442\u043d\u044b\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c ASCII      for c in range(0x20, 0x7F):         b = bytearray()         b.append(c)         b.append(b'\\x00')         if imm.writeMemory(mem_password, bytes(b)) &lt;= 0:             imm.log(\"Failed to write password '{0}'\".format(chr(c)))             return \"ERROR\"                  imm.run() # \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u0445\u0435\u0448         table[c] = imm.getRegs()[\"EAX\"]          # \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a \u0432\u044b\u0437\u043e\u0432\u0443 hashFn         imm.setReg(\"EIP\", 0x004538B3) # \u0441\u043d\u043e\u0432\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443-\u043f\u0430\u0440\u043e\u043b\u044c \u0432 EAX         imm.setReg(\"EAX\", mem_password)         imm.run()      # \u0437\u0430\u043f\u0438\u0448\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432 \u0444\u0430\u0439\u043b     with open(\"C:\/a.csv\", \"w\") as out:         for c in table:             out.write(\"{0} \".format(chr(c)))             out.write(\"0x{:02X}\\n\".format(table[c]))              return \"Kolay done\"<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043c\u043e\u0436\u043d\u043e \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c 1234 \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c imm.writeLong(mem_password, \u0441), \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0431\u0430\u0439\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0438 \u0442\u0440\u0438 \u043d\u0443\u043b\u044f \u0441\u043b\u0435\u0434\u043e\u043c.<\/p>\n<p>\u0410\u043b\u0444\u0430\u0432\u0438\u0442\u043e\u043c \u043e\u0432\u043b\u0430\u0434\u0435\u043b\u0438, \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0445\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u0440\u043e\u043b\u044f \u0437\u043d\u0430\u0435\u043c. \u041a\u0430\u043a \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u0438?<\/p>\n<p>\u041d\u0430\u0438\u0432\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435: \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u0432\u0441\u0435\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043a\u0430\u0436\u0434\u043e\u0433\u043e. \u0412\u043e\u0442 \u043a\u043e\u0434, \u0447\u0442\u043e \u043d\u0430\u0439\u0434\u0435\u0442 \u0432\u0441\u0435 \u043a\u043b\u044e\u0447\u0438 \u0434\u043b\u0438\u043d\u044b 2:<\/p>\n<pre><code class=\"cpp\">const string alphabet = \/\/... const unordered_map&lt;char, int> weights = \/\/... const int N = 2; const int S = 0x12E; string key;  void generateKeys(ostream&amp; out) {     if (N &lt;= key.length()) {         if (S == sum) {             out &lt;&lt; key &lt;&lt; \"\\n\";         }     } else {         for (char c : alphabet) {             const int w = weights.at(c);             if (sum + w &lt;= S) {                 key.push_back(c);                 sum += w;                 generateKeys(out);                 key.pop_back();                 sum -= w;             }         }     } }<\/code><\/pre>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043d\u043e \u0437\u0430\u0445\u043b\u0435\u0431\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0443\u0436\u0435 \u043d\u0430 \u043a\u043b\u044e\u0447\u0430\u0445 \u0434\u043b\u0438\u043d\u043e\u0439 \u0431\u043e\u043b\u044c\u0448\u0435 5.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/008\/abd\/889\/008abd889fabfdcea5f75f512c2979ec.png\" width=\"856\" height=\"496\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/008\/abd\/889\/008abd889fabfdcea5f75f512c2979ec.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0442 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043c\u0435\u0441\u0442 \u0441\u043b\u0430\u0433\u0430\u0435\u043c\u044b\u0445 \u0441\u0443\u043c\u043c\u0430 \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u0442\u0430\u043a \u0447\u0442\u043e \u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c: \u043f\u0443\u0441\u0442\u044c \u043e\u043d \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u0442 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f.<\/p>\n<pre><code class=\"cpp\">bool nextCombination(vector&lt;int>&amp; nums, int n) {     const int k = nums.size();     for (int i = k - 1; 0 &lt;= i; --i) {         if (nums[i] &lt; n - k + i) {             ++nums[i];             for (int j = i + 1; j &lt; k; ++j) {                 nums[j] = nums[j - 1] + 1;             }             return true;         }     }     return false; }  bool TestKey(const vector&lt;int>&amp; nums) {     int sum = 0;     for (int i : nums) {         sum += weights.at(alphabet[i]);     }     return S == sum; }  string MakeKey(const vector&lt;int>&amp; nums) {     string key;     for (int i : nums) {         key.push_back(alphabet[i]);     }     return key; }  void generateKeys(ostream&amp; out) {     vector&lt;int> nums(N);     for (int i = 0; i &lt; N; ++i) {         nums[i] = i;     }      do {         if (TestKey(nums)) {             ++cnt;             out &lt;&lt; MakeKey(nums) &lt;&lt; '\\n';         }     } while (nextCombination(nums, alphabet.size())); }<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f, \u043f\u043e\u043a\u0430 \u043e\u043d \u043d\u0430\u0439\u0434\u0435\u0442 \u0432\u0441\u0435 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f \u0434\u043b\u0438\u043d\u044b 7.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/bdd\/61c\/ad3\/bdd61cad398e959517526061ecdd500d.png\" width=\"838\" height=\"758\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bdd\/61c\/ad3\/bdd61cad398e959517526061ecdd500d.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0410 \u0435\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u0438 \u0434\u043b\u0438\u043d\u043d\u0435\u0435? \u041c\u043e\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u043e\u043c \u043a\u043b\u044e\u0447\u0435 &#8212; \u0430\u0432\u043e\u0441\u044c \u043f\u043e\u0432\u0435\u0437\u0435\u0442. \u0412\u0440\u0435\u043c\u044f, \u043a\u043e\u0433\u0434\u0430 \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u043d\u0430\u0442\u043a\u043d\u0435\u0442\u0441\u044f \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0435\u0440\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u043d\u0435\u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u043e. \u042f \u0442\u0430\u043a \u0438 \u043d\u0435 \u0434\u043e\u0436\u0434\u0430\u043b\u0441\u044f, \u043f\u043e\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430\u0439\u0434\u0435\u0442 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0435\u0440\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0434\u043b\u0438\u043d\u044b 20.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/510\/0bd\/018\/5100bd0187df66ba45793e30323248a1.png\" width=\"814\" height=\"387\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/510\/0bd\/018\/5100bd0187df66ba45793e30323248a1.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u043d\u0430\u0439\u0442\u0438 \u043b\u0443\u0447\u0448\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0447\u0435\u043c \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u0432\u0441\u0435\u0445 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0439? \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u043e\u0434\u0438\u043d \u0432\u0435\u0440\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443?<br \/> vx -> ?<\/p>\n<p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u044f: \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0447\u0438\u0441\u043b\u043e, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c 1 \u043a \u043c\u043b\u0430\u0434\u0448\u0435\u043c\u0443 \u0440\u0430\u0437\u0440\u044f\u0434\u0443 \u0438, \u0435\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043f\u0435\u0440\u0435\u043d\u043e\u0441:<br \/> 18, 19, 20, &#8230;<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u043f\u0430\u0440\u043e\u043b\u044f \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0435\u0433\u043e \u0445\u0435\u0448 \u043d\u0435 \u043c\u0435\u043d\u044f\u043b\u0441\u044f. \u0411\u0435\u0434\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0434\u043b\u044f &#8216;x&#8217; \u043d\u0435\u0442 \u0440\u0430\u0432\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u043c\u0435\u043d\u044b.<\/p>\n<pre><code>0x01 001: %)+\/5;=CGIOSYaegkmq 0x08 008: 1 0x0c 00c: y 0x0d 00d: # 0x0f 00f: ! 0x11 011: '7 0x13 013: AM 0x14 014: \" 0x15 015: 3[ 0x16 016: &amp; 0x17 017: 9U 0x19 019: _w 0x1a 01a: . 0x1b 01b: E 0x1d 01d: s 0x1f 01f:  } 0x20 020: : 0x21 021: -W 0x22 022: > 0x23 023: ] 0x28 028: ,JQ 0x29 029: ?o 0x2b 02b: 2 0x2c 02c: R 0x2d 02d: { 0x2e 02e: 4V 0x31 031: K 0x32 032: (^ 0x36 036: * 0x37 037: $ 0x38 038: j 0x39 039: c 0x3a 03a: D 0x3e 03e: v 0x3f 03f: @ 0x40 040: 8Lz 0x41 041: u 0x42 042: 6 0x49 049: b 0x4a 04a: F 0x4c 04c: 0\\ 0x4e 04e: B 0x57 057: i 0x5a 05a: N 0x5c 05c: X 0x5e 05e: t 0x64 064: | 0x6a 06a: Phn 0x6c 06c: &lt; 0x72 072: f 0x75 075: d 0x7b 07b: H 0x7e 07e: r 0x88 088: p 0x8c 08c: T 0x90 090: Z 0x9c 09c: ` 0xac 0ac: l 0xba 0ba: ~ 0xf0 0f0: x<\/code><\/pre>\n<p>\u0412\u043e\u0437\u044c\u043c\u0435\u043c \u0434\u0440\u0443\u0433\u043e\u0439 \u043a\u043b\u044e\u0447 \u0438\u0437 3\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432: Zr%. \u0417\u0430\u043c\u0435\u043d\u044f\u044f % \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0439\u0442\u0438\u0441\u044c \u043f\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043a\u043b\u044e\u0447\u0430\u043c:<br \/> <code>Zr% -> Zr) -> Zr+ -> ... -> Zrq<\/code><br \/> \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043d\u0430\u0439\u0442\u0438 \u0437\u0430\u043c\u0435\u043d\u0443 \u0434\u043b\u044f rq. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043e\u0431\u043e\u0439\u0442\u0438 \u0432\u0441\u0435 \u043f\u0430\u0440\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0430 \u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0438\u0445 \u0445\u0435\u0448\u0438.<br \/> <code>Zrq -> Zt- -> ZtW -> Zuv<\/code><\/p>\n<p>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435 &#8212; \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e. \u0421\u043c\u0435\u043d\u0438\u0442\u044c Z \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0438\u043c\u0432\u043e\u043b? \u0423 Z \u043d\u0435\u0442 \u0440\u0430\u0432\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u043c\u0435\u043d, \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u043e\u043c \u0441\u043d\u043e\u0432\u0430 \u043d\u0430\u0439\u0442\u0438 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043a\u043b\u044e\u0447.<\/p>\n<p>\u0422\u0430\u043a \u0438 \u043d\u0435 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043e\u0442 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443: \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0438\u0434\u0435\u0438, \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<p>\u0427\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0430 \u0432\u0441\u0435\u0445 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0439 \u0441\u043a\u043b\u0435\u0438\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u044b \u043a\u043b\u044e\u0447\u0435\u0439 \u0438 \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u0445\u0435\u0448\u0438? \u041f\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043d\u0435 \u043b\u0443\u0447\u0448\u0435 \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0430: \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u044b\u0441\u0442\u0440\u043e \u0440\u0430\u0441\u0442\u0435\u0442 \u0441 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435\u043c \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0430 \u0438 \u0434\u043b\u0438\u043d\u044b \u043a\u043b\u044e\u0447\u0430, \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0430\u0434\u0430\u0435\u0442 \u0438\u0437-\u0437\u0430 \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0438 \u043f\u0430\u043c\u044f\u0442\u0438. \u041c\u043e\u0436\u043d\u043e \u0435\u0435 \u0447\u0443\u0442\u044c \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c, \u043d\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0430\u0440 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435 \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0440\u0430\u0441\u0442\u0435\u0442 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u0438 \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0435 \u0432 95 \u0431\u0443\u043a\u0432.<\/p>\n<pre><code class=\"cpp\">\/\/ \u0414\u043b\u0438\u043d\u0430 \u043a\u043b\u044e\u0447\u0430 N - \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u0434\u0432\u043e\u0439\u043a\u0438 void generateKeys(ostream&amp; out) {     for (int n = 1; n &lt; N; n &lt;&lt;= 1) {         unordered_map&lt;string, int> next_weights;         for (auto i = weights.begin(); i != weights.end(); ++i) {             for (auto j = next(i); j != weights.end(); ++j) {                 const string&amp; s1 = i->first;                 int w1 = i->second;                 const string&amp; s2 = j->first;                 int w2 = j->second;                 int len = s1.length() + s2.length();                 if (len == n * 2) {                     string s3(len, 0);                     int w3 = w1 + w2;                     merge(s1.begin(), s1.end(), s2.begin(), s2.end(), s3.begin());                     if (len &lt; N) {                         next_weights[s3] = w3;                     }                      if (N == len &amp;&amp; S == w3) {                         out &lt;&lt; s3 &lt;&lt; '\\n';                         ++cnt;                     }                 }             }         }         weights.swap(next_weights);     } }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/710616\/\"> https:\/\/habr.com\/ru\/articles\/710616\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0414\u043d\u044f 3 \u043d\u0430\u0437\u0430\u0434 \u0437\u0430\u0433\u043b\u044f\u043d\u0443\u043b \u043d\u0430 \u0441\u0430\u0439\u0442 crackmes.one \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u043b\u044b \u0432\u043e \u0432\u0437\u043b\u043e\u043c\u0435 \u0437\u0430\u0449\u0438\u0442. \u041f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0443\u0433\u0430\u0434 \u0432\u0437\u044f\u043b\u0441\u044f \u0437\u0430 &#171;hitTman&#8217;s Kolay One!&#187;: \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e \u043e\u0446\u0435\u043d\u043a\u0435 Difficulty: 2.0 \u0438 Quality: 4.0. \u041d\u0435 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u043e, \u043d\u043e \u0438 \u043d\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u043b\u043e\u0436\u043d\u043e.<\/p>\n<p>\u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0444\u043e\u0440\u043c\u0430 \u0432\u0432\u043e\u0434\u0430 \u043f\u0430\u0440\u043e\u043b\u044f \u0441 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u043e\u0439: \u0442\u0435\u043a\u0441\u0442 \u043a\u043d\u043e\u043f\u043a\u0438 &#171;submit password&#187; \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0447\u0438\u0441\u043b\u043e. \u0415\u0441\u043b\u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u043f\u0430\u0440\u043e\u043b\u044f, \u0437\u0430\u043c\u0435\u0442\u043d\u043e, \u0447\u0442\u043e \u0434\u043b\u044f \u043e\u0434\u043d\u0438\u0445 \u0438 \u0442\u0435\u0445 \u0436\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0447\u0438\u0441\u043b\u043e \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f. \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u0445\u0435\u0448-\u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0430 \u0435\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443. \u041f\u0440\u043e\u0431\u0443\u044f \u043f\u0430\u0440\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u043b\u0435\u0433\u043a\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0447\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0435 &#8212; \u0441\u0443\u043c\u043c\u0430 \u0447\u0438\u0441\u0435\u043b \u0434\u043b\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u043f\u0430\u0440\u043e\u043b\u044f.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u041b\u043e\u0433\u0438\u0447\u043d\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u0445\u0435\u0448 \u0441 \u044d\u0442\u0430\u043b\u043e\u043d\u043e\u043c \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0432\u044b\u0434\u0430\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 &#171;Try harder!&#187;. \u0418\u0449\u0435\u043c \u0432 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0430\u0445 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430. \u041f\u043e\u0432\u0435\u0437\u043b\u043e: \u043e\u043d\u043e \u0434\u0430\u0436\u0435 \u043d\u0435 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043e \u0438 \u043d\u0430 \u043d\u0435\u0433\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u0432 \u043a\u043e\u0434\u0435.<\/p>\n<figure class=\"bordered full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0440\u044f\u0434\u043e\u043c \u0436\u0435 \u0438 \u044d\u0442\u0430\u043b\u043e\u043d \u0445\u0435\u0448\u0430: 12Eh. \u041b\u0435\u0433\u043a\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c: \u0438\u0437 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0445\u0435\u0448\u0435\u0439 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 &#171;AaAaAaAaAaAaAaAaAaAaAaAaAaAaAa\/\/&#187; \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435, \u043d\u0430 \u0447\u0442\u043e \u043e\u043d\u0430 \u0432\u044b\u0434\u0430\u0435\u0442 &#171;Great Job&#187;.<\/p>\n<p>\u0410\u0432\u0442\u043e\u0440 \u043f\u0440\u043e\u0441\u0438\u043b: &#171;find a Valid pass!&#187;, \u043d\u043e \u044d\u0442\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0441\u0442\u043e, \u0434\u0430 \u0438 \u0432\u0435\u0440\u043d\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c &#8212; \u043d\u0435 \u043e\u0434\u0438\u043d. \u041a\u0443\u0434\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043a\u043b\u044e\u0447\u0435\u0439. \u041f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0445\u0435\u0448-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0432\u0441\u0435\u0433\u043e \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0430. \u0420\u0443\u043a\u0430\u043c\u0438 \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u043f\u0430\u0440\u043e\u043b\u044f \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u0431\u0443\u043c\u0430\u0433\u0435 \u0438\u0445 \u0445\u0435\u0448\u0438 \u0434\u043e\u043b\u0433\u043e \u0438 \u0441\u043a\u0443\u0447\u043d\u043e, \u0432\u0435\u0434\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0441\u0430\u043c\u0443 \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0442\u044c \u0430\u043b\u0444\u0430\u0432\u0438\u0442.<\/p>\n<p>\u0423 OllyDbg \u0435\u0441\u0442\u044c \u043a\u043e\u043b\u043b\u0435\u0433\u0430 &#8212; Immunity Debugger, \u043e\u043d \u0443\u043c\u0435\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043d\u0430 Python. \u041e\u0442\u044b\u0449\u0435\u043c \u0445\u0435\u0448-\u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043c \u0435\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0430\u043b\u0444\u0430\u0432\u0438\u0442.<\/p>\n<p>\u0412 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0435 ButtonClick (sub_45385C) \u043f\u0440\u044f\u043c\u043e \u043f\u0435\u0440\u0435\u0434 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435\u043c \u0445\u0435\u0448\u0430 \u0441 \u044d\u0442\u0430\u043b\u043e\u043d\u043e\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u044b\u0437\u043e\u0432 sub_4537C4. \u041f\u043e\u0445\u043e\u0436\u0435, \u044d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u0445\u0435\u0448-\u0444\u0443\u043d\u043a\u0446\u0438\u044f: \u043e\u043d\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u0430\u0440\u043e\u043b\u044f \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0445\u0435\u0448 \u0432 EAX. \u041f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0445 push \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043d\u0435 \u0432\u0438\u0434\u043d\u043e, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u043e\u043d\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b. \u0415\u0441\u043b\u0438 \u0442\u0430\u043a, \u0442\u043e var_C \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443-\u043f\u0430\u0440\u043e\u043b\u044c.<\/p>\n<p>\u0412\u044b\u0448\u0435 \u0432\u044b\u0437\u043e\u0432 sub_432A4C \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u0432\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430: \u0430\u0434\u0440\u0435\u0441 var_C \u0438 \u0435\u0449\u0435 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043f\u043e \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044e \u043e\u0442 EBX. \u0418\u0449\u0435\u043c \u0447\u0442\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432 EBX: \u0432\u044b\u0448\u0435 \u043f\u043e \u043a\u043e\u0434\u0443 ButtonClick \u0432 \u043d\u0435\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 EAX, \u043d\u043e \u043f\u0440\u0435\u0436\u0434\u0435 \u043d\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 EAX, \u0437\u043d\u0430\u0447\u0438\u0442 \u0442\u0430\u043c \u0442\u043e\u0436\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b. \u0417\u0430\u0433\u043b\u044f\u043d\u0443\u0432 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043f\u043e Delphi \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0443 ButtonClick \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0430\u0434\u0440\u0435\u0441 TObject sender. \u041c\u043e\u0436\u043d\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 sub_432A4C &#8212; \u044d\u0442\u043e \u0430\u0434\u0440\u0435\u0441 \u043f\u043e\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0430 \u0444\u043e\u0440\u043c\u0435, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043e\u043d\u0430 \u0447\u0438\u0442\u0430\u0435\u0442 \u043f\u0430\u0440\u043e\u043b\u044c.<\/p>\n<p>\u0422\u0430\u043a\u0438\u0445 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0432 ButtonClick \u0434\u0432\u0430: \u0435\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0432 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0435, \u0443\u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e sub_00432A4C \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443-\u043f\u0430\u0440\u043e\u043b\u044c \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e-\u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c ButtonClick \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e \u0432 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0435, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043d\u0430 \u0441\u0442\u0435\u043a\u0435 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0438 \u0442\u0435\u043a\u0441\u0442 \u043a\u043d\u043e\u043f\u043a\u0438 &#8212; \u0447\u0438\u0441\u043b\u043e. \u041b\u0435\u0433\u043a\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e sub_407CE0 &#8212; \u044d\u0442\u043e int to string, [ebx+2FCh] &#8212; \u044d\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443, \u0430 sub_00432A7C &#8212; \u044d\u0442\u043e setButtonText.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u043c\u0435\u043d\u0438\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u0435\u0440\u0435\u0434 \u0445\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c: \u0441\u0442\u0430\u0432\u0438\u043c breakpoint \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 0x004538B3 &#8212; \u043f\u0440\u044f\u043c\u043e \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u0437\u043e\u0432\u043e\u043c hashFn \u043e\u043d\u0430 \u0436\u0435 sub_4537C4. \u0412\u0432\u043e\u0434\u0438\u043c \u043f\u0430\u0440\u043e\u043b\u044c 1234 \u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0430 \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 var_C &#8212; \u0432\u0432\u0435\u0434\u0435\u043c \u0431\u0443\u043a\u0432\u0443 A \u0438 \u0441\u0438\u043c\u0432\u043e\u043b \u043a\u043e\u043d\u0446\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 \\0. \u0421\u0435\u0439\u0447\u0430\u0441 \u0445\u0435\u0448-\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0432 EAX \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 0x13 (19). \u0428\u0430\u0433\u0430\u0435\u043c \u0432\u043f\u0435\u0440\u0435\u0434 \u0438&#8230; \u041f\u0435\u0440\u0432\u0430\u044f \u043d\u0435\u0443\u0434\u0430\u0447\u0430: \u0432 EAX &#8212; 0x56 (86). \u0414\u043e\u043b\u0433\u043e \u0434\u0443\u043c\u0430\u043b, \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b, \u0433\u0440\u0435\u0448\u0438\u043b \u043d\u0430 \u042e\u043d\u0438\u043a\u043e\u0434 \u0438\u043b\u0438 \u0435\u0449\u0435 \u043a\u0430\u043a\u0438\u0435 \u0441\u043a\u0440\u044b\u0442\u044b\u0435 \u0445\u0438\u0442\u0440\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b. \u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0433\u0434\u0435-\u0442\u043e \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0434\u043b\u0438\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u0412\u043c\u0435\u0441\u0442\u043e \u0445\u0435\u0448\u0430 &#171;A\\0&#187; \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u0445\u0435\u0448 &#171;A\\034&#187;. \u0425\u0435\u0448 \\0 \u0440\u0430\u0432\u0435\u043d 0, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0441\u043b\u0438 \u0432\u0432\u0435\u0441\u0442\u0438 \u043f\u0430\u0440\u043e\u043b\u044c A34 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0445\u0435\u0448 0x56. \u0417\u043d\u0430\u0447\u0438\u0442 \u0432\u0432\u0435\u0434\u0435\u043c \u043e\u0434\u0438\u043d \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u0430\u0440\u043e\u043b\u044f \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043c \u043f\u0440\u0430\u0432\u043a\u0438 \u0432 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0435 &#8212; \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c!<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0434\u043b\u044f \u0432\u0441\u0435\u0433\u043e \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0430:<\/p>\n<ul>\n<li>\n<p>\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u0437\u043e\u0432\u043e\u043c hashFn<\/p>\n<\/li>\n<li>\n<p>\u0441\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u0430\u0440\u043e\u043b\u044f \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043f\u043e \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0443<\/p>\n<\/li>\n<li>\n<p>\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u0437\u043e\u0432\u0430 hashFn \u0438 \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0445\u0435\u0448 \u0441\u0438\u043c\u0432\u043e\u043b\u0430<\/p>\n<\/li>\n<li>\n<p>\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043a \u0432\u044b\u0437\u043e\u0432\u0443 hashFn<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 Python, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u0442:<\/p>\n<pre><code class=\"python\">import immlib  imm = immlib.Debugger()  def main(args):     table = {} # break \u043f\u043e\u0441\u043b\u0435 hashFn     imm.setBreakpoint(0x004538B8)     mem_password = imm.getRegs()[\"EAX\"] # \u0446\u0438\u043a\u043b \u043f\u043e \u043f\u0435\u0447\u0430\u0442\u043d\u044b\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c ASCII      for c in range(0x20, 0x7F):         b = bytearray()         b.append(c)         b.append(b'\\x00')         if imm.writeMemory(mem_password, bytes(b)) &lt;= 0:             imm.log(\"Failed to write password '{0}'\".format(chr(c)))             return \"ERROR\"                  imm.run() # \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u0445\u0435\u0448         table[c] = imm.getRegs()[\"EAX\"]          # \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a \u0432\u044b\u0437\u043e\u0432\u0443 hashFn         imm.setReg(\"EIP\", 0x004538B3) # \u0441\u043d\u043e\u0432\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443-\u043f\u0430\u0440\u043e\u043b\u044c \u0432 EAX         imm.setReg(\"EAX\", mem_password)         imm.run()      # \u0437\u0430\u043f\u0438\u0448\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432 \u0444\u0430\u0439\u043b     with open(\"C:\/a.csv\", \"w\") as out:         for c in table:             out.write(\"{0} \".format(chr(c)))             out.write(\"0x{:02X}\\n\".format(table[c]))              return \"Kolay done\"<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043c\u043e\u0436\u043d\u043e \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c 1234 \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c imm.writeLong(mem_password, \u0441), \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0431\u0430\u0439\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0438 \u0442\u0440\u0438 \u043d\u0443\u043b\u044f \u0441\u043b\u0435\u0434\u043e\u043c.<\/p>\n<p>\u0410\u043b\u0444\u0430\u0432\u0438\u0442\u043e\u043c \u043e\u0432\u043b\u0430\u0434\u0435\u043b\u0438, \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0445\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u0440\u043e\u043b\u044f \u0437\u043d\u0430\u0435\u043c. \u041a\u0430\u043a \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u0438?<\/p>\n<p>\u041d\u0430\u0438\u0432\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435: \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u0432\u0441\u0435\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043a\u0430\u0436\u0434\u043e\u0433\u043e. \u0412\u043e\u0442 \u043a\u043e\u0434, \u0447\u0442\u043e \u043d\u0430\u0439\u0434\u0435\u0442 \u0432\u0441\u0435 \u043a\u043b\u044e\u0447\u0438 \u0434\u043b\u0438\u043d\u044b 2:<\/p>\n<pre><code class=\"cpp\">const string alphabet = \/\/... const unordered_map&lt;char, int> weights = \/\/... const int N = 2; const int S = 0x12E; string key;  void generateKeys(ostream&amp; out) {     if (N &lt;= key.length()) {         if (S == sum) {             out &lt;&lt; key &lt;&lt; \"\\n\";         }     } else {         for (char c : alphabet) {             const int w = weights.at(c);             if (sum + w &lt;= S) {                 key.push_back(c);                 sum += w;                 generateKeys(out);                 key.pop_back();                 sum -= w;             }         }     } }<\/code><\/pre>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043d\u043e \u0437\u0430\u0445\u043b\u0435\u0431\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0443\u0436\u0435 \u043d\u0430 \u043a\u043b\u044e\u0447\u0430\u0445 \u0434\u043b\u0438\u043d\u043e\u0439 \u0431\u043e\u043b\u044c\u0448\u0435 5.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0442 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043c\u0435\u0441\u0442 \u0441\u043b\u0430\u0433\u0430\u0435\u043c\u044b\u0445 \u0441\u0443\u043c\u043c\u0430 \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u0442\u0430\u043a \u0447\u0442\u043e \u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c: \u043f\u0443\u0441\u0442\u044c \u043e\u043d \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u0442 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f.<\/p>\n<pre><code class=\"cpp\">bool nextCombination(vector&lt;int>&amp; nums, int n) {     const int k = nums.size();     for (int i = k - 1; 0 &lt;= i; --i) {         if (nums[i] &lt; n - k + i) {             ++nums[i];             for (int j = i + 1; j &lt; k; ++j) {                 nums[j] = nums[j - 1] + 1;             }             return true;         }     }     return false; }  bool TestKey(const vector&lt;int>&amp; nums) {     int sum = 0;     for (int i : nums) {         sum += weights.at(alphabet[i]);     }     return S == sum; }  string MakeKey(const vector&lt;int>&amp; nums) {     string key;     for (int i : nums) {         key.push_back(alphabet[i]);     }     return key; }  void generateKeys(ostream&amp; out) {     vector&lt;int> nums(N);     for (int i = 0; i &lt; N; ++i) {         nums[i] = i;     }      do {         if (TestKey(nums)) {             ++cnt;             out &lt;&lt; MakeKey(nums) &lt;&lt; '\\n';         }     } while (nextCombination(nums, alphabet.size())); }<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f, \u043f\u043e\u043a\u0430 \u043e\u043d \u043d\u0430\u0439\u0434\u0435\u0442 \u0432\u0441\u0435 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f \u0434\u043b\u0438\u043d\u044b 7.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0410 \u0435\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u0438 \u0434\u043b\u0438\u043d\u043d\u0435\u0435? \u041c\u043e\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u043e\u043c \u043a\u043b\u044e\u0447\u0435 &#8212; \u0430\u0432\u043e\u0441\u044c \u043f\u043e\u0432\u0435\u0437\u0435\u0442. \u0412\u0440\u0435\u043c\u044f, \u043a\u043e\u0433\u0434\u0430 \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u043d\u0430\u0442\u043a\u043d\u0435\u0442\u0441\u044f \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0435\u0440\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u043d\u0435\u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u043e. \u042f \u0442\u0430\u043a \u0438 \u043d\u0435 \u0434\u043e\u0436\u0434\u0430\u043b\u0441\u044f, \u043f\u043e\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430\u0439\u0434\u0435\u0442 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0435\u0440\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0434\u043b\u0438\u043d\u044b 20.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u043d\u0430\u0439\u0442\u0438 \u043b\u0443\u0447\u0448\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0447\u0435\u043c \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u0432\u0441\u0435\u0445 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0439? \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u043e\u0434\u0438\u043d \u0432\u0435\u0440\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443?<br \/> vx -> ?<\/p>\n<p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u044f: \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0447\u0438\u0441\u043b\u043e, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c 1 \u043a \u043c\u043b\u0430\u0434\u0448\u0435\u043c\u0443 \u0440\u0430\u0437\u0440\u044f\u0434\u0443 \u0438, \u0435\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043f\u0435\u0440\u0435\u043d\u043e\u0441:<br \/> 18, 19, 20, &#8230;<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u043f\u0430\u0440\u043e\u043b\u044f \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0435\u0433\u043e \u0445\u0435\u0448 \u043d\u0435 \u043c\u0435\u043d\u044f\u043b\u0441\u044f. \u0411\u0435\u0434\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0434\u043b\u044f &#8216;x&#8217; \u043d\u0435\u0442 \u0440\u0430\u0432\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u043c\u0435\u043d\u044b.<\/p>\n<pre><code>0x01 001: %)+\/5;=CGIOSYaegkmq 0x08 008: 1 0x0c 00c: y 0x0d 00d: # 0x0f 00f: ! 0x11 011: '7 0x13 013: AM 0x14 014: \" 0x15 015: 3[ 0x16 016: &amp; 0x17 017: 9U 0x19 019: _w 0x1a 01a: . 0x1b 01b: E 0x1d 01d: s 0x1f 01f:  } 0x20 020: : 0x21 021: -W 0x22 022: > 0x23 023: ] 0x28 028: ,JQ 0x29 029: ?o 0x2b 02b: 2 0x2c 02c: R 0x2d 02d: { 0x2e 02e: 4V 0x31 031: K 0x32 032: (^ 0x36 036: * 0x37 037: $ 0x38 038: j 0x39 039: c 0x3a 03a: D 0x3e 03e: v 0x3f 03f: @ 0x40 040: 8Lz 0x41 041: u 0x42 042: 6 0x49 049: b 0x4a 04a: F 0x4c 04c: 0\\ 0x4e 04e: B 0x57 057: i 0x5a 05a: N 0x5c 05c: X 0x5e 05e: t 0x64 064: | 0x6a 06a: Phn 0x6c 06c: &lt; 0x72 072: f 0x75 075: d 0x7b 07b: H 0x7e 07e: r 0x88 088: p 0x8c 08c: T 0x90 090: Z 0x9c 09c: ` 0xac 0ac: l 0xba 0ba: ~ 0xf0 0f0: x<\/code><\/pre>\n<p>\u0412\u043e\u0437\u044c\u043c\u0435\u043c \u0434\u0440\u0443\u0433\u043e\u0439 \u043a\u043b\u044e\u0447 \u0438\u0437 3\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432: Zr%. \u0417\u0430\u043c\u0435\u043d\u044f\u044f % \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0439\u0442\u0438\u0441\u044c \u043f\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043a\u043b\u044e\u0447\u0430\u043c:<br \/> <code>Zr% -> Zr) -> Zr+ -> ... -> Zrq<\/code><br \/> \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043d\u0430\u0439\u0442\u0438 \u0437\u0430\u043c\u0435\u043d\u0443 \u0434\u043b\u044f rq. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043e\u0431\u043e\u0439\u0442\u0438 \u0432\u0441\u0435 \u043f\u0430\u0440\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0430 \u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0438\u0445 \u0445\u0435\u0448\u0438.<br \/> <code>Zrq -> Zt- -> ZtW -> Zuv<\/code><\/p>\n<p>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435 &#8212; \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e. \u0421\u043c\u0435\u043d\u0438\u0442\u044c Z \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0438\u043c\u0432\u043e\u043b? \u0423 Z \u043d\u0435\u0442 \u0440\u0430\u0432\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u043c\u0435\u043d, \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u043e\u043c \u0441\u043d\u043e\u0432\u0430 \u043d\u0430\u0439\u0442\u0438 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043a\u043b\u044e\u0447.<\/p>\n<p>\u0422\u0430\u043a \u0438 \u043d\u0435 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043e\u0442 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443: \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0438\u0434\u0435\u0438, \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<p>\u0427\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0430 \u0432\u0441\u0435\u0445 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0439 \u0441\u043a\u043b\u0435\u0438\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u044b \u043a\u043b\u044e\u0447\u0435\u0439 \u0438 \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u0445\u0435\u0448\u0438? \u041f\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043d\u0435 \u043b\u0443\u0447\u0448\u0435 \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0430: \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u044b\u0441\u0442\u0440\u043e \u0440\u0430\u0441\u0442\u0435\u0442 \u0441 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435\u043c \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0430 \u0438 \u0434\u043b\u0438\u043d\u044b \u043a\u043b\u044e\u0447\u0430, \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0430\u0434\u0430\u0435\u0442 \u0438\u0437-\u0437\u0430 \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0438 \u043f\u0430\u043c\u044f\u0442\u0438. \u041c\u043e\u0436\u043d\u043e \u0435\u0435 \u0447\u0443\u0442\u044c \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c, \u043d\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0430\u0440 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435 \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0440\u0430\u0441\u0442\u0435\u0442 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u0438 \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0435 \u0432 95 \u0431\u0443\u043a\u0432.<\/p>\n<pre><code class=\"cpp\">\/\/ \u0414\u043b\u0438\u043d\u0430 \u043a\u043b\u044e\u0447\u0430 N - \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u0434\u0432\u043e\u0439\u043a\u0438 void generateKeys(ostream&amp; out) {     for (int n = 1; n &lt; N; n &lt;&lt;= 1) {         unordered_map&lt;string, int> next_weights;         for (auto i = weights.begin(); i != weights.end(); ++i) {             for (auto j = next(i); j != weights.end(); ++j) {                 const string&amp; s1 = i->first;                 int w1 = i->second;                 const string&amp; s2 = j->first;                 int w2 = j->second;                 int len = s1.length() + s2.length();                 if (len == n * 2) {                     string s3(len, 0);                     int w3 = w1 + w2;                     merge(s1.begin(), s1.end(), s2.begin(), s2.end(), s3.begin());                     if (len &lt; N) {                         next_weights[s3] = w3;                     }                      if (N == len &amp;&amp; S == w3) {                         out &lt;&lt; s3 &lt;&lt; '\\n';                         ++cnt;                     }                 }             }         }         weights.swap(next_weights);     } }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/710616\/\"> https:\/\/habr.com\/ru\/articles\/710616\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-406819","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/406819","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=406819"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/406819\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=406819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=406819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=406819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}