{"id":135001,"date":"2019-02-24T08:39:41","date_gmt":"2019-02-24T00:39:41","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=135001"},"modified":"2019-01-28T09:41:29","modified_gmt":"2019-01-28T01:41:29","slug":"linux-safe-third","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-safe-third.html","title":{"rendered":"Linux\u4e0b\u5e38\u7528\u7684\u4e09\u6b3e\u7f51\u7edc\u5b89\u5168\u5de5\u5177"},"content":{"rendered":"
\u5728Linux\u4e2d\uff0c\u5bc6\u7801\u4ee5hash\u683c\u5f0f\u88ab\u5b58\u50a8\uff0c \u4f60\u4e0d\u80fd\u53cd\u5411\u4ece\u8be5hash\u6570\u636e\u8868\u4e2d\u5206\u6790\u51fa\u5bc6\u7801\uff0c\u4f46\u53ef\u4ee5\u4ee5\u4e00\u7ec4\u5355\u8bcdhash\u540e\u548c\u5b83\u8fdb\u884c\u6bd4\u8f83\uff0c\u5982\u76f8\u540c\u5219\u5c31\u731c\u6d4b\u51fa\u5bc6\u7801\u3002\u6545\u8d77\u4e00\u4e2a\u5f88\u96be\u88ab\u731c\u6d4b\u7684\u5bc6\u7801\u662f\u975e\u5e38\u5173\u952e\u7684\u3002\u4e00 \u822c\u5730\u4f60\u51b3\u4e0d\u80fd\u7528\u5b57\u5178\u5b58\u5728\u7684\u67d0\u4e2a\u5355\u8bcd\u4f5c\u4e3a\u5bc6\u7801\uff0c\u90a3\u662f\u76f8\u5f53\u5bb9\u6613\u88ab\u731c\u6d4b\u51fa\u6765\u7684\u3002\u53e6\u5916\u4e5f\u4e0d\u80fd\u7528\u4e00\u4e9b\u5e38\u89c1\u7684\u6709\u89c4\u5219\u6027\u7684\u5b57\u6bcd\u6570\u5b57\u6392\u5217\u6765\u4f5c\u4e3a\u5bc6\u7801\uff0c\u4ee5123abc\u7b49\u3002<\/p>\n
John the ripper\u662f\u4e00\u4e2a\u9ad8\u6548\u7684\u6613\u4e8e\u4f7f\u7528\u7684\u5bc6\u7801\u731c\u6d4b\u7a0b\u5e8f\u3002<\/p>\n
\u4e0b\u8f7dtar.gz\u683c\u5f0f\u7684for UNIX\u7684\u7a0b\u5e8f\uff0c\u7136\u540e\u7528tar xvfz john*.tar.gz\u89e3\u5f00\u5230\u4efb\u4e00\u76ee\u5f55\u4e0b\u3002\u8fdb\u5165src\u76ee\u5f55\uff0c\u6253\u5165make linux-x86-any-elf<\/span> (\u6211\u7528redhat 6.1)\u540e\u4f1a\u5728run\u76ee\u5f55\u4e0b\u751f\u6210\u51e0\u4e2a\u6267\u884c\u6587\u4ef6\uff0c\u5305\u62ec\u4e3b\u7a0b\u5e8fjohn\u3002\u73b0\u5728\u8981Crack\u5bc6\u7801\u5c31\u8fd0\u884c.\/john \/etc\/passwd<\/span>\u5373\u53ef\u3002<\/p>\n John\u4e5f\u53ef\u4ee5Crack\u7531htpasswd \u751f\u6210\u7684\u7528\u4e8e\u9a8c\u8bc1apache\u7528\u6237\u7684\u5bc6\u7801\uff0c\u5982\u679c\u4f60\u7528htpasswd -c apachepasswd user<\/span>\u521b\u5efa\u4e86\u4e00\u4e2a\u7528\u6237user,\u5e76\u751f\u6210\u4e86\u5bc6\u7801\uff0c\u4f60\u4e5f\u53ef\u4ee5\u7528john apachepasswd<\/span>\u6765\u8fdb\u884c\u731c\u6d4b\u3002<\/p>\n John\u5728\u731c\u6d4b\u5bc6\u7801\u65f6\u8f93\u51fa\u5728\u7ec8\u7aef\u4e0a\uff0c\u5e76\u628a\u731c\u6d4b\u51fa\u7684\u5bc6\u7801\u5b58\u4e8ejohn.pot\u6587\u4ef6\u4e2d\u3002<\/p>\n \u53e6\u4e00\u4e2apassword Cracker\u662f\u5927\u5bb6\u77e5\u9053\u7684\u7ecf\u5178\u7684Cracker.<\/p>\n Logcheck\u662f\u7528\u6765\u81ea\u52a8\u68c0\u67e5\u7cfb\u7edf\u5b89\u5168\u5165\u4fb5\u4e8b\u4ef6\u548c\u975e\u6b63\u5e38\u6d3b\u52a8\u8bb0\u5f55\u7684\u5de5\u5177\uff0c\u5b83\u5206\u6790\u5404\u79cdLinux log\u6587\u4ef6\uff0c\u8c61\/var\/log\/messages<\/span>, \/var\/log\/secure<\/span>,\/var\/log\/maillog<\/span>\u7b49\u7b49\uff0c\u7136\u540e\u751f\u6210\u4e00\u4e2a\u53ef\u80fd\u6709\u5b89\u5168\u95ee\u9898\u7684\u95ee\u9898\u62a5\u544a\u81ea\u52a8\u53d1\u9001email\u7ed9\u7ba1\u7406\u5458\u3002\u4f60\u80fd\u8bbe\u7f6e\u5b83\u57fa\u4e8e\u6bcf\u5c0f\u65f6,\u6216\u8005\u6bcf\u5929\u7528crond<\/span>\u6765\u81ea\u52a8\u8fd0\u884c\u3002<\/p>\n logcheck\u5de5\u5177\u4e0b\u8f7d\u540e\u7528tar xvfz logcheck*\u89e3\u5f00\u5230\u4e00\u4e34\u65f6\u76ee\u5f55\u5982\/tmp<\/span>\u4e0b\uff0c\u7136\u540e\u7528.\/make linux<\/span>\u81ea\u52a8\u751f\u6210\u76f8\u5e94\u7684\u6587\u4ef6\u5230\/usr\/local\/etc<\/span>,\/usr\/local\/bin\/<\/span>\u7b49\u76ee\u5f55\u4e0b\uff0c\u4f60\u53ef\u80fd\u66f4\u6539\u8bbe\u7f6e\u5982\u53d1\u9001\u901a\u77e5\u80fd\u8c01\u7684\u90ae\u4ef6\u5e10\u53f7\uff0c\u9ed8\u8ba4\u53d1\u9001\u5230root\uff0c\u4f60\u80fd\u8bbe\u7f6eroot\u7684\u90ae\u4ef6\u522b\u540d\u5e10\u53f7\u5230\u4e00\u6279\u4eba\uff0c\u66f4\u6539\u8bbe\u7f6e\u8ba9\u5176\u5ffd\u7565\u67d0\u4e9b\u7c7b\u578b\u7684\u6d88\u606f\u5982\u4f60\u7684\u90ae\u4ef6\u8bb0\u5f55\u6587\u4ef6\u4e2d\u7684plug-gw<\/span>\uff0c\u56e0\u4e3aplug-gw<\/span>\u505a\u53cd\u5411IP\u67e5\u627e\uff0c\u82e5\u627e\u4e0d\u5230\u5219\u8bb0\u5f55\u4e00\u4e2a\u8b66\u544a\u6d88\u606f\u5230\/var\/log\/maillog<\/span>\uff0clogcheck\u9ed8\u8ba4\u8bb0\u5f55\u4e0b\u6240\u6709\u8fd9\u4e9b\u8b66\u544a\u53d1\u9001\u7ed9\u4f60\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u5ffd\u7565\u6389\u5b83\u4eec\u3002\u5229\u7528logcheck\u5de5\u5177\u5206\u6790\u4f60\u7684\u6240\u6709logfile\uff0c\u907f\u514d\u4e86\u4f60\u6bcf\u5929\u7ecf\u5e38\u624b\u52a8\u5730\u68c0\u67e5\u5b83\u4eec\uff0c\u8282\u7701\u4e86\u65f6\u95f4\uff0c\u63d0\u9ad8\u4e86\u6548\u7387\u3002<\/p>\n Tripwire \u662f\u4e00\u4e2a\u7528\u6765\u68c0\u9a8c\u6587\u4ef6\u5b8c\u6574\u6027\u7684\u975e\u5e38\u6709\u7528\u7684\u5de5\u5177\uff0c\u4f60\u80fd\u5b9a\u4e49\u54ea\u4e9b\u6587\u4ef6\/\u76ee\u5f55\u9700\u8981\u88ab\u68c0\u9a8c\uff0c\u4e0d\u8fc7\u9ed8\u8ba4\u8bbe\u7f6e\u80fd\u6ee1\u8db3\u5927\u591a\u6570\u7684\u8981\u6c42\uff0c\u5b83\u8fd0\u884c\u5728\u56db\u79cd\u6a21\u4e0b\uff1a\u6570\u636e\u5e93\u751f \u6210\u6a21\u5f0f\uff0c\u6570\u636e\u5e93\u66f4\u65b0\u6a21\u5f0f\uff0c\u6587\u4ef6\u5b8c\u6574\u6027\u68c0\u67e5\uff0c\u4e92\u52a8\u5f0f\u6570\u636e\u5e93\u66f4\u65b0\u3002\u5f53\u521d\u59cb\u5316\u6570\u636e\u5e93\u751f\u6210\u7684\u65f6\u5019\uff0c\u5b83\u751f\u6210\u5bf9\u73b0\u6709\u6587\u4ef6\u7684\u5404\u79cd\u4fe1\u606f\u7684\u6570\u636e\u5e93\u6587\u4ef6\uff0c\u4e07\u4e00\u4ee5\u540e\u4f60\u7684\u7cfb\u7edf\u6587\u4ef6 \u6216\u8005\u5404\u79cd\u914d\u7f6e\u6587\u4ef6\u88ab\u610f\u5916\u5730\u6539\u53d8\uff0c\u66ff\u6362\uff0c\u5220\u9664\uff0c\u5b83\u5c06\u6bcf\u5929\u57fa\u4e8e\u539f\u59cb\u7684\u6570\u636e\u5e93\u5bf9\u73b0\u6709\u6587\u4ef6\u8fdb\u884c\u6bd4\u8f83\u53d1\u73b0\u54ea\u4e9b\u6587\u4ef6\u88ab\u66f4\u6539\uff0c\u4f60\u80fd\u6839\u636eemail\u7684\u7ed3\u679c\u5224\u65ad\u662f\u5426\u6709\u7cfb\u7edf\u5165 \u4fb5\u7b49\u610f\u5916\u4e8b\u4ef6\u3002<\/p>\n \u5982\u679c\u4f60\u4f7f\u7528Redhat Linux 6.1\uff0c\u4f60\u4e5f\u80fd\u5f97\u5230\u6700\u65b0\u7684\u4e3a6.1\u91cd\u5efa\u7684Tripwire-1.2.3\u3002<\/p>\n \u5f53\u4f60\u624b\u52a8\u66f4\u6539\u4e86\u7cfb\u7edf\u4e2d\u7684\u914d\u7f6e\u6587\u4ef6\u6216\u7a0b\u5e8f\u65f6\uff0c\u4f60\u80fd\u624b\u52a8\u518d\u6b21\u751f\u6210\u4e00\u6b21\u6570\u636e\u5e93\u6587\u4ef6\uff0c\u8fd0\u884c tripwire-initialize \u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efadatabases<\/span>\u76ee\u5f55\u5e76\u5728\u8be5\u76ee\u5f55\u4e0b\u751f\u6210\u65b0\u7684\u7cfb\u7edf\u6570\u636e\u5e93\u6587\u4ef6\uff0c\u7136\u540ecp\u5230\/var\/spool\/tripwire<\/span>\u76ee\u5f55\u4e2d\u8986\u76d6\u65e7\u7684<\/p>\n","protected":false},"excerpt":{"rendered":" \u5728Linux\u4e2d\uff0c\u5bc6\u7801\u4ee5hash\u683c\u5f0f\u88ab\u5b58\u50a8\uff0c \u4f60\u4e0d\u80fd\u53cd\u5411\u4ece\u8be5hash\u6570\u636e\u8868\u4e2d\u5206\u6790\u51fa\u5bc6\u7801\uff0c\u4f46\u53ef\u4ee5\u4ee5\u4e00\u7ec4\u5355\u8bcdhash […]<\/p>\n","protected":false},"author":63,"featured_media":135178,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-135001","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/135001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=135001"}],"version-history":[{"count":7,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/135001\/revisions"}],"predecessor-version":[{"id":135314,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/135001\/revisions\/135314"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/135178"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=135001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=135001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=135001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}