{"id":60930,"date":"2023-08-22T22:31:20","date_gmt":"2023-08-22T14:31:20","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=60930"},"modified":"2023-08-22T22:31:20","modified_gmt":"2023-08-22T14:31:20","slug":"it-tools","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/it-tools.html","title":{"rendered":"IT\u8fd0\u7ef4\u7ba1\u7406\u5fc5\u5907\u5de5\u5177\u5927\u5168\uff0c\u8ba9\u4f60\u6210\u4e3a\u771f\u6b63\u7684\u9ad8\u624b\uff01"},"content":{"rendered":"
<\/p>\n
\u4f60\u8fd8\u5728\u81ea\u5df1\u5199\u811a\u672c\u6279\u91cf\u589e\u52a0\u673a\u5668\u7684\u7528\u6237\u540d\u3001\u5206\u7ec4\u548c\u4fee\u6539\u5bc6\u7801\u6216\u8005\u540c\u6b65\u4e3b\u673a\u7684\/etc\/passwd\u5417?\u4f60\u8fd8\u5728\u4f7f\u7528\u811a\u672c\u6279\u91cf\u5bf9\u7528\u6237\u8bbe\u7f6e\u6743\u9650\u5417?\u5982\u679c\u6709\u4e00\u53f0\u5e10\u53f7\u4e3b\u673a\u80fd\u591f\u63d0\u4f9b\u6240\u6709\u670d\u52a1\u5668\u7684\u5e10\u53f7\u3001\u5bc6\u7801\u3001\u6743\u9650\u63a7\u5236\uff0c\u5982\u6b64\u4e00\u6765\uff0c\u5982\u679c\u60f3\u8981\u589e\u52a0\u3001\u4fee\u6539\u3001\u522a\u9664\u7528\u6237\uff0c\u53ea\u8981\u5230\u8fd9\u53f0\u670d\u52a1\u5668\u4e0a\u9762\u5904\u7406\u5373\u53ef\uff0c\u8fd9\u6837\u662f\u4e0d\u662f\u5f88\u65b9\u4fbf?<\/p>\n
\u7edf\u4e00\u7ba1\u7406\u5404\u79cd\u5e73\u53f0\u5e10\u53f7\u548c\u5bc6\u7801\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\u5404\u79cd\u64cd\u4f5c\u7cfb\u7edf(Windows\u3001Linux)\uff0cLinux\u7cfb\u7edfsudo\u96c6\u6210\uff0c\u7cfb\u7edf\u7528\u6237\u5206\u7ec4\uff0c\u4e3b\u673a\u767b\u5165\u9650\u5236\u7b49\uff1b<\/p>\n
\u53ef\u4e0eApache\uff0cHTTP\uff0cFTP\uff0cSAMBA\uff0cZABBIX\uff0cJenkins\u7b49\u96c6\u6210\uff1b<\/p>\n
\u652f\u6301\u5bc6\u7801\u7b56\u7565(\u5bc6\u7801\u5f3a\u5ea6\u3001\u5bc6\u7801\u8fc7\u671f\u65f6\u95f4\u3001\u5f3a\u5236\u4fee\u6539\u3001\u8d85\u8fc7\u9a8c\u8bc1\u9519\u8bef\u6b21\u6570\u9501\u5b9a\u5e10\u53f7)\u7b49\uff1b<\/p>\n
\u652f\u6301\u63d2\u4ef6\u5f0f\u9274\u522b\u6a21\u5757PAM\uff1b<\/p>\n
\u4e0d\u540c\u5e73\u53f0\u6743\u9650\u7684\u8bbe\u5b9a\u3001\u5212\u5206\uff1b<\/p>\n
\u4e00\u6b3e\u7531python\u7f16\u5199\u5f00\u6e90\u7684\u8df3\u677f\u673a(\u5821\u5792\u673a)\u7cfb\u7edf\uff0c\u5b9e\u73b0\u4e86\u8df3\u677f\u673a\u5e94\u6709\u7684\u529f\u80fd\u3002\u57fa\u4e8essh\u534f\u8bae\u6765\u7ba1\u7406\uff0c\u5ba2\u6237\u7aef\u65e0\u9700\u5b89\u88c5agent,\u76ee\u524d\u672c\u7248\u672c\u5904\u4e8ebeta\u9636\u6bb5\uff0c\u7ebf\u4e0a\u73af\u5883\u614e\u7528\u3002\u8bd5\u7528\u4e86\u4e00\u4e0bdemo\uff0c\u611f\u89c9\u5728\u7edf\u4e00\u5e10\u53f7\u7ba1\u7406\u65b9\u9762\u5e76\u4e0d\u6210\u719f\u3002<\/p>\n
\u7c7b\u4f3c\u4e8eLDAP<\/p>\n
\u4f18\u70b9<\/p>\n
\u5c0f\u5de7\uff0c\u65e0\u9700\u88c5agent\uff0c\u53ef\u4ee5\u505a\u4e00\u4e9b\u7b80\u5355\u7684\u670d\u52a1\u5668\u90e8\u7f72\u64cd\u4f5c\uff0c\u4f7f\u7528\u7b80\u5355\uff0c\u5bb9\u6613\u4e0a\u624b\uff0c\u4f46\u529f\u80fd\u6bd4\u8f83\u6709\u9650\uff0c\u7528\u4e86\u4e24\u5929\u5c31\u5207\u5230ansible\u4e86\uff1b<\/p>\n
\u7f3a\u70b9<\/p>\n
\u90e8\u7f72\u673a\u4e0e\u670d\u52a1\u5668\u4ea4\u4e92\u4e0d\u592a\u53cb\u597d<\/p>\n
\u65e0\u9700agent\uff0c\u57fa\u4e8essh\u5b9e\u73b0\uff0c\u5bf9\u65b0\u7533\u8bf7\u7684\u673a\u5668\u505a\u521d\u59cb\u5316\u6269\u5c55\u4e0d\u9519\uff1b<\/p>\n
\u7279\u6027\u8f83\u591a\uff0c\u65e5\u5e38\u90e8\u7f72\u9700\u8981\u7684\u529f\u80fd\u57fa\u672c\u4e0a\u90fd\u8986\u76d6\u4e86\uff0c\u6bd4\u5982git\u3001\u6253\u5305\u89e3\u538b\u3001copy\u6587\u4ef6\u3001yum\u5b89\u88c5\u7b49\u7b49\u90fd\u5df2\u7ecf\u96c6\u6210\u5230\u4e86\u6838\u5fc3\u6a21\u5757\u91cc\u9762\uff0calternatives\u3001xattr\u7b49\u6a21\u5757\u4e5f\u6709\u6240\u96c6\u6210\uff0c\u5f53\u7136\uff0c\u7406\u8bba\u4e0a\u6240\u6709\u64cd\u4f5c\u90fd\u80fd\u7528\u547d\u4ee4\u6a21\u5757\u6765\u5b8c\u6210\u3002<\/p>\n
\u7f3a\u70b9<\/p>\n
\u6bd4\u8f83\u4f9d\u8d56\u7f51\u7edc\u7684\u5065\u58ee\u6027\uff0c\u7f51\u7edc\u4e0d\u597d\u7684\u8bdd\u4f1a\u6bd4\u8f83\u5751\uff1b<\/p>\n
\u8fd8\u6709SaltStack\u3001Pupet\u3001Chef\u7b49\uff1b<\/p>\n
\u63d0\u4f9b DNS \u7f13\u5b58\uff0cDNS\u91cd\u5b9a\u5411\u3001\u8bb0\u5f55\u8f6c\u53d1\uff0cDNS\u53cd\u5411\u89e3\u6790\uff0c DHCP \u670d\u52a1\u529f\u80fd\uff0c\u914d\u7f6e\u7b80\u5355\uff1b<\/p>\n
\u53ef\u4ee5\u914d\u7f6e\u5bf9\u4e0a\u5c42DNS\u8f6e\u8be2\u8bf7\u6c42\u8bb0\u5f55\uff1b<\/p>\n
\u914d\u7f6e\u652f\u6301\u901a\u914d\u7b26\uff0c\u4e0d\u7528\u6279\u91cf\u4fee\u6539hosts\uff1b<\/p>\n
\u63d0\u4f9bDNS\u7f13\u5b58\u670d\u52a1<\/p>\n
\u8bbe\u7f6e\u5411\u4e0a\u7ea7DNS\u8bf7\u6c42\u65b9\u5f0f(TCP\u3001UDP\uff0cBoth)<\/p>\n
\u8bbe\u7f6e\u591a\u4e2a\u4e0a\u7ea7DNS\u5e76\u8bbe\u7f6e\u8bf7\u6c42\u89c4\u5219<\/p>\n
\u914d\u7f6e\u7f13\u5b58\u4fdd\u7559\u65f6\u95f4<\/p>\n
Google\u81ea\u884c\u7814\u53d1\u7684\u4e00\u6b3eDNS\u6d4b\u901f\u5de5\u5177<\/p>\n
\u8fd8\u6709Bind\u7b49<\/p>\n
\u521b\u5efa\u591a\u5e76\u53d1\u7ebf\u7a0b\u6a21\u62df\u591a\u7528\u6237\u5bf9URL\u8bbf\u95ee\u8fdb\u884c\u538b\u529b\u6d4b\u8bd5<\/p>\n
Apache\u4e2d\u6709\u4e2a\u81ea\u5e26\u7684\uff0c\u540d\u4e3aab\u7684\u7a0b\u5e8f\uff0cab\u53ef\u4ee5\u521b\u5efa\u5f88\u591a\u7684\u5e76\u53d1\u8bbf\u95ee\u7ebf\u7a0b\uff0c\u6a21\u62df\u591a\u4e2a\u8bbf\u95ee\u8005\u540c\u65f6\u5bf9\u67d0\u4e00URL\u5730\u5740\u8fdb\u884c\u8bbf\u95ee\u3002<\/p>\n
\u76f4\u63a5\u5bf9\u67d0\u4e00\u673a\u5668\u6d41\u91cfcopy\u5230\u53e6\u4e00\u673a\u5668\u8fdb\u884c\u538b\u529b\u6d4b\u8bd5\uff1b<\/p>\n
\u63d0\u5230\u538b\u529b\u6d4b\u8bd5\uff0c\u53ef\u80fd\u5927\u591a\u6570\u4eba\u9996\u5148\u60f3\u5230\u7684\u5c31\u662fApacheBench\uff0c\u4f46ab\u662f\u6a21\u62df\u8bbf\u95ee\uff0c\u6a21\u62df\u6bd5\u7adf\u662f\u6a21\u62df\uff0c\u7136\u800c\u7ebf\u4e0a\u4f1a\u9047\u5230\u7684\u9519\u8bef\u53ef\u80fd\u5f80\u5f80\u65e0\u6cd5\u9884\u77e5\uff0c\u5176\u5b9e\u56fd\u5185\u5df2\u7ecf\u6709\u4eba\u5f00\u53d1\u4e86\u4e00\u6b3e\u7ebf\u4e0a\u6d41\u91cfcopy\u7684\u5de5\u5177\uff0c\u5c31\u662fTCPcopy\u3001UDPcopy\uff0c\u80fd\u591f\u4e4b\u95f4copy\u7ebf\u4e0a\u6d41\u91cf\u5230\u6d4b\u8bd5\u73af\u5883\uff0c\u5927\u5927\u51cf\u5c11\u4e86\u4e0a\u7ebf\u524d\u7684\u98ce\u9669\u3002\u652f\u6301\u8bbe\u7f6ecopy\u6d41\u91cf\u500d\u6570\u653e\u5927\u3001\u7f29\u5c0f\uff0c\u4fee\u6539\u6d41\u91cf\u7684\u5ba2\u6237\u7aefIP\u6e90\u5730\u5740\u3002<\/p>\n
\u7c7b\u4f3cApacheBench<\/p>\n
tcpburn\u662f\u7531\u7f51\u6613\u81ea\u4e3b\u7814\u53d1\u7684\u80fd\u591f\u6a21\u62df\u5343\u4e07\u7ea7\u522b\u5e76\u53d1\u7528\u6237\u7684\u4e00\u4e2a\u8f6f\u4ef6\uff0c\u76ee\u7684\u662f\u80fd\u591f\u7528\u8f83\u5c11\u7684\u8d44\u6e90\u6765\u6a21\u62df\u51fa\u5927\u91cf\u5e76\u53d1\u7528\u6237\uff0c\u5e76\u4e14\u80fd\u591f\u66f4\u52a0\u771f\u5b9e\u5730\u8fdb\u884c\u538b\u529b\u6d4b\u8bd5\uff0c \u4ee5\u89e3\u51b3\u7f51\u7edc\u6d88\u606f\u63a8\u9001\u670d\u52a1\u65b9\u9762\u7684\u538b\u529b\u6d4b\u8bd5\u7684\u95ee\u9898\u548c\u4f20\u7edf\u538b\u529b\u6d4b\u8bd5\u7684\u95ee\u9898\u3002<\/p>\n
\u5bf9\u7aef\u53e3\u626b\u63cf\u7684\u673a\u5668\u505a\u9632\u5fa1\u7b56\u7565\uff1b<\/p>\n
\u7279\u70b9<\/p>\n
\u7ed9\u51fa\u865a\u5047\u7684\u8def\u7531\u4fe1\u606f\uff0c\u628a\u6240\u6709\u7684\u4fe1\u606f\u6d41\u90fd\u91cd\u5b9a\u5411\u5230\u4e00\u4e2a\u4e0d\u5b58\u5728\u7684\u4e3b\u673a\uff1b<\/p>\n
\u81ea\u52a8\u5c06\u5bf9\u670d\u52a1\u5668\u8fdb\u884c\u7aef\u53e3\u626b\u63cf\u7684\u4e3b\u673a\u52a0\u5230TCP-Wrappers\u7684\/etc\/hosts.deny\u6587\u4ef6\u4e2d<\/p>\n
\u5229\u7528Netfilter\u673a\u5236\u3001\u5305\u8fc7\u6ee4\u7a0b\u5e8f\uff0c\u6bd4\u5982iptables\u548cipchain\u7b49\uff0c\u628a\u6240\u6709\u975e\u6cd5\u6570\u636e\u5305(\u6765\u81ea\u5bf9\u670d\u52a1\u5668\u8fdb\u884c\u7aef\u53e3\u626b\u63cf\u7684\u4e3b\u673a)\u90fd\u8fc7\u6ee4\u6389\uff1b<\/p>\n
\u901a\u8fc7syslog()\u51fd\u6570\u7ed9\u51fa\u4e00\u4e2a\u76ee\u5fd7\u6d88\u606f\uff0c\u751a\u81f3\u53ef\u4ee5\u8fd4\u56de\u7ed9\u626b\u63cf\u8005\u4e00\u6bb5\u8b66\u544a\u4fe1\u606f\u3002<\/p>\n
\u5bf9SSH\u5bc6\u7801\u66b4\u529b\u7834\u89e3\u7684\u673a\u5668\u505a\u9632\u5fa1\u7b56\u7565\uff1b<\/p>\n
\u9632\u5fa1 SSH \u670d\u52a1\u5668\u7684\u66b4\u529b\u7834\u89e3\u653b\u51fb\uff0c\u5bf9\u5b89\u5168\u6027\u8981\u6c42\u8fc7\u9ad8\u7684\u670d\u52a1\u5668\u8fd8\u662f\u5efa\u8bae\u7981\u6b62\u5bc6\u7801\u767b\u5165\uff0c\u4f7f\u7528\u5bc6\u94a5\u6216\u8005\u5bc6\u94a5+\u5bc6\u7801\u9a8c\u8bc1\u3002<\/p>\n
\u53ef\u4ee5\u5c06\u7b2c\u4e8c\u90e8\u9a8c\u8bc1\u8bbe\u7f6e\u4e3a\u901a\u8fc7\u77ed\u4fe1\u6216\u8bed\u97f3\u7535\u8bdd\u63a5\u6536\u9a8c\u8bc1\u7801\uff0c\u540c\u65f6\u4e5f\u652f\u6301 Android\u3001iPhone \u6216 BlackBerry \u8bbe\u5907\u6765\u751f\u6210\u9a8c\u8bc1\u7801\uff1b<\/p>\n
\u4e00\u6b3e\u5f00\u6e90\u7684\uff0c\u53ef\u57fa\u4e8e\u5f00\u653e\u89c4\u5219(\u5982 HMAP\/\u57fa\u4e8e\u65f6\u95f4)\u751f\u6210\u4e00\u6b21\u6027\u5bc6\u7801\u7684\u8f6f\u4ef6\u3002Google\u516c\u53f8\u540c\u65f6\u4e5f\u652f\u6301\u63d2\u4ef6\u5f0f\u9274\u522b\u6a21\u5757PAM\uff0c\u4f7f\u5176\u80fd\u548c\u5176\u4ed6\u4e5f\u9002\u7528PAM\u8fdb\u884c\u9a8c\u8bc1\u7684\u5de5\u5177(\u5982OpenSSH)\u534f\u540c\u5de5\u4f5c\u3002\uff08\u6765\u6e90\uff1a\u77e5\u4e4e\uff09<\/p>\n
\n\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.yunweipai.com\/archives\/11696.html<\/a><\/p>\n