{"id":2232,"date":"2009-01-16T00:35:17","date_gmt":"2009-01-15T15:35:17","guid":{"rendered":"http:\/\/yasu2.prosou.nu\/blog\/index.php\/2009\/01\/16\/checkpassword_cmd5checkpw\/"},"modified":"2009-01-16T00:35:17","modified_gmt":"2009-01-15T15:35:17","slug":"checkpassword_cmd5checkpw","status":"publish","type":"post","link":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2009\/01\/16\/2232\/","title":{"rendered":"checkpassword \/ cmd5checkpw"},"content":{"rendered":"<p>How to check checkpassword (this will launch &#8220;id&#8221; when authenticated):<br \/>\n% perl -e &#8216;printf &#8220;%s\\0%s\\0Y123456\\0&#8243;,&#8221;real-user&#8221;,&#8221;password&#8221;&#8216; | \/bin\/checkpassword id 3&lt;&#038;0<br \/>\nAnd for cmd5checkpw:<br \/>\n% perl -e &#8216;printf &#8220;%s\\0%s\\0%s\\0&#8243;,&#8221;user-in-plaintext&#8221;,&#8221;challenge-in-plaintext&#8221;, &#8220;response-in-hex&#8221; &#8216; | \/bin\/cmd5checkpw id 3&lt;&#038;0<br \/>\nI&#8217;ve found that md5c.c distributed with cmd5checkpw doesn&#8217;t work correctly on x86_64 (amd64) architecture, and this problem can be solved by getting md5c.c + md5.h + config.h (we need to run .\/configure script once) from fetchmail tarball.<br \/>\nJust one more thing: how to check cram-md5\/plain\/login auth by telnet (in Japanese):<br \/>\nhttp:\/\/nai.homelinux.net\/telnet_smtp_auth.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to check checkpassword (this will launch &#8220;id&#8221; when authenticated): % perl -e &#8216;printf &#038;#8 &hellip; <a href=\"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2009\/01\/16\/2232\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;checkpassword \/ cmd5checkpw&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-2232","post","type-post","status-publish","format-standard","hentry","category-unix-"],"_links":{"self":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=2232"}],"version-history":[{"count":0,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2232\/revisions"}],"wp:attachment":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=2232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=2232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=2232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}