{"id":3928,"date":"2025-07-31T22:59:56","date_gmt":"2025-07-31T14:59:56","guid":{"rendered":"https:\/\/fushuling.com\/?p=3928"},"modified":"2025-07-31T23:00:44","modified_gmt":"2025-07-31T15:00:44","slug":"%e6%96%b0%e7%94%9flab-7-%e5%9f%ba%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/fushuling.com\/index.php\/2025\/07\/31\/%e6%96%b0%e7%94%9flab-7-%e5%9f%ba%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%bd%bf%e7%94%a8\/","title":{"rendered":"\u65b0\u751fLab-7 \u57fa\u672c\u670d\u52a1\u5668\u4f7f\u7528"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">\u4efb\u52a1\u8bf4\u660e<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u672c\u5b9e\u9a8c\u7684\u76ee\u7684\u662f\u5e2e\u52a9\u5b66\u751f\u4e86\u89e3Linux\u7684\u57fa\u672c\u4f7f\u7528\u3002<\/li>\n\n\n\n<li>\u672c\u6b21\u5b9e\u9a8c\u7684\u9898\u76ee\u4e3b\u8981\u5305\u62ec\u4e09\u79cd\u7c7b\u578b\uff1a\u9009\u62e9\u3001\u586b\u7a7a\u548c\u5b9e\u6218\u9898\u76ee<\/li>\n\n\n\n<li>\u6ce8\u610f\u4e8b\u9879\n<ul class=\"wp-block-list\">\n<li>\u7b54\u9898\u9700\u8981\u901a\u8fc7\u4f7f\u7528ssh\u8fde\u63a5\u5230\u8fdc\u7a0b\u670d\u52a1\u5668\uff0ce.g. ssh student@ip -p $port<\/li>\n\n\n\n<li>\u6bcf\u4f4d\u5b66\u751f\u7b54\u9898\u65f6\u7684\u5bb9\u5668ID\u662f\u4e0d\u540c\u7684\uff0c\u5bf9\u5e94\u7684\u7b54\u6848\u4e5f\u4e0d\u540c\uff0c\u8bf7\u52ff\u76f8\u4e92\u6284\u88ad<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">\u9009\u62e9\u586b\u7a7a<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">\u4ee5\u4e0b\u54ea\u4e9b\u573a\u666f\u5fc5\u987b\u4f7f\u7528sudo:<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u666e\u901a\u7528\u6237\u8fd0\u884c\u4ee3\u7801<\/li>\n\n\n\n<li>\u666e\u901a\u7528\u6237\u6dfb\u52a0\u7528\u6237<\/li>\n\n\n\n<li>\u666e\u901a\u7528\u6237\u8fdb\u5165root<\/li>\n\n\n\n<li>\u666e\u901a\u7528\u6237\u6302\u8f7d\u8fdc\u7a0bnas<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b54\u6848<\/h3>\n\n\n\n<p>2, 3, 4<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u89e3\u91ca<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u666e\u901a\u7528\u6237\u8fd0\u884c\u4ee3\u7801:<\/strong> \u666e\u901a\u7528\u6237\u5728\u81ea\u5df1\u7684\u4e3b\u76ee\u5f55\u4e0b\u62e5\u6709\u6743\u9650\uff0c\u8fd0\u884c\u81ea\u5df1\u7684\u4ee3\u7801\u4e0d\u9700\u8981<code>sudo<\/code>\u3002<\/li>\n\n\n\n<li><strong>\u666e\u901a\u7528\u6237\u6dfb\u52a0\u7528\u6237:<\/strong> \u6dfb\u52a0\u7528\u6237\uff08\u5982\u4f7f\u7528<code>useradd<\/code>\u547d\u4ee4\uff09\u4f1a\u4fee\u6539\u7cfb\u7edf\u7684\u6838\u5fc3\u914d\u7f6e\u6587\u4ef6\uff08\u5982<code>\/etc\/passwd<\/code>\uff09\uff0c\u8fd9\u662f\u7ba1\u7406\u7cfb\u7edf\u7528\u6237\u7684\u884c\u4e3a\uff0c\u9700\u8981\u7ba1\u7406\u5458\u6743\u9650\uff0c\u56e0\u6b64\u5fc5\u987b\u4f7f\u7528<code>sudo<\/code>\u3002<\/li>\n\n\n\n<li><strong>\u666e\u901a\u7528\u6237\u8fdb\u5165root:<\/strong> <code>sudo<\/code>\u662f&#8221;superuser do&#8221;\u7684\u7f29\u5199\uff0c\u5176\u6838\u5fc3\u529f\u80fd\u4e4b\u4e00\u5c31\u662f\u5141\u8bb8\u6388\u6743\u7528\u6237\u4e34\u65f6\u6267\u884c\u9700\u8981root\u6743\u9650\u7684\u547d\u4ee4\uff0c\u5305\u62ec\u5207\u6362\u5230root\u7528\u6237\u672c\u8eab\uff08\u4f8b\u5982\u901a\u8fc7<code>sudo su<\/code>\u6216<code>sudo -i<\/code>\uff09\u3002<\/li>\n\n\n\n<li><strong>\u666e\u901a\u7528\u6237\u6302\u8f7d\u8fdc\u7a0bnas:<\/strong> <code>mount<\/code>\u547d\u4ee4\u7528\u4e8e\u6302\u8f7d\u6587\u4ef6\u7cfb\u7edf\uff0c\u8fd9\u901a\u5e38\u9700\u8981\u4fee\u6539\u7cfb\u7edf\u7ea7\u7684\u76ee\u5f55\u7ed3\u6784\u548c\u6587\u4ef6\u7cfb\u7edf\u8868\uff0c\u5c5e\u4e8e\u7cfb\u7edf\u7ba1\u7406\u64cd\u4f5c\uff0c\u56e0\u6b64\u9700\u8981<code>sudo<\/code>\u6743\u9650\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u8fd1\u65e5\uff0c\u67d0\u670d\u52a1\u5668\u906d\u5230\u6076\u610f\u6316\u77ff\u653b\u51fb\u3002\u5728\u6eaf\u6e90\u65f6\u53d1\u73b0\u53ef\u80fd\u662f\u4ee5\u4e0b\u51e0\u4e2a\u8d26\u53f7\u88ab\u653b\u51fb\u8005\u7206\u7834\uff0c\u8bf7\u4ece\u4ee5\u4e0b\uff08\u7528\u6237\u540d\uff0c\u5bc6\u7801\uff09\u4e2d\u9009\u53d6\u53ef\u7591\u7684\u7528\u6237<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>dwen, aabbccdd<\/li>\n\n\n\n<li>abc, qwerty<\/li>\n\n\n\n<li>xzy, xzy123<\/li>\n\n\n\n<li>ssr, E2j79qCqCujMWxUEZgGj<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b54\u6848<\/h3>\n\n\n\n<p>1, 2, 3<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u89e3\u91ca<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7b2c\u4e00\u4e2a\u4f3c\u4e4e\u5168\u662frockyou\u91cc\u7684<\/li>\n\n\n\n<li>abc\u662f\u5e38\u89c1\u7684\u7528\u6237\u540d\uff0cqwerty\u66f4\u662f\u975e\u5e38\u5e38\u89c1\u7684\u5bc6\u7801\uff0c\u56e0\u6b64\u53ef\u80fd\u88ab\u7206\u7834<\/li>\n\n\n\n<li>xzy\u770b\u8d77\u6765\u5e94\u8be5\u662f\u67d0\u4e2a\u4eba\u7684\u540d\u5b57\u9996\u5b57\u6bcd\u7ec4\u5408\uff0cxzy123\u5c31\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793e\u5de5\u5bc6\u7801<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u4ee5\u4e0b\u54ea\u4e9b\u547d\u4ee4\u53ef\u4ee5\u5728linux\u7cfb\u7edf\u4e2d\u7f16\u8f91\u6587\u4ef6<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>vi\/vim<\/li>\n\n\n\n<li>nano<\/li>\n\n\n\n<li>cat<\/li>\n\n\n\n<li>awk<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b54\u6848<\/h3>\n\n\n\n<p>1, 2<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u89e3\u91ca<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>vi\/vim:<\/strong> <code>vim<\/code> \u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u662fLinux\u7cfb\u7edf\u4e0b\u6700\u5e38\u7528\u7684\u7f16\u8f91\u5668\u4e4b\u4e00\u3002<\/li>\n\n\n\n<li><strong>nano:<\/strong> <code>nano<\/code> \u662f\u4e00\u4e2a\u5bf9\u65b0\u624b\u975e\u5e38\u53cb\u597d\u7684\u3001\u7b80\u5355\u6613\u7528\u7684\u547d\u4ee4\u884c\u6587\u672c\u7f16\u8f91\u5668\u3002<\/li>\n\n\n\n<li><strong>cat:<\/strong> <code>cat<\/code> \u4e3b\u8981\u7528\u4e8e\u67e5\u770b\u6587\u4ef6\u5185\u5bb9\u6216\u5c06\u591a\u4e2a\u6587\u4ef6\u8fde\u63a5\u8d77\u6765\u8f93\u51fa\u3002\u867d\u7136\u53ef\u4ee5\u901a\u8fc7\u91cd\u5b9a\u5411\u7b26\uff08<code>cat > file<\/code>\uff09\u6765\u521b\u5efa\u65b0\u6587\u4ef6\u5e76\u5199\u5165\u5185\u5bb9\uff0c\u4f46\u5b83\u4e0d\u80fd\u7528\u4e8e\u4ea4\u4e92\u5f0f\u5730\u7f16\u8f91\u4e00\u4e2a\u5df2\u5b58\u5728\u7684\u6587\u4ef6\u3002<\/li>\n\n\n\n<li><strong>awk:<\/strong> <code>awk<\/code> \u662f\u4e00\u79cd\u5f3a\u5927\u7684\u6587\u672c\u5904\u7406\u5de5\u5177\uff0c\u7528\u4e8e\u626b\u63cf\u548c\u5904\u7406\u6587\u672c\u884c\u3002\u5b83\u53ef\u4ee5\u7528\u6765\u4fee\u6539\u6587\u672c\u5185\u5bb9\uff0c\u4f46\u5b83\u662f\u901a\u8fc7\u7f16\u7a0b\u811a\u672c\u7684\u65b9\u5f0f\uff0c\u800c\u4e0d\u662f\u4f5c\u4e3a\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u7f16\u8f91\u5668\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u6709\u54ea\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u5728\u540e\u53f0\u6301\u7eed\u8fd0\u884c\u4ee3\u7801\uff0c\u5373\u4fbf\u5df2\u7ecf\u8fde\u63a5\u7684SSH\u4f1a\u8bdd\u5173\u95ed\u4e86<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>tmux<\/li>\n\n\n\n<li>nohup<\/li>\n\n\n\n<li>&amp;<\/li>\n\n\n\n<li>screen<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b54\u6848<\/h3>\n\n\n\n<p>1, 2, 3, 4<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u89e3\u91ca<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>tmux:<\/strong> \u662f\u4e00\u4e2a\u7ec8\u7aef\u590d\u7528\u5668\uff08Terminal Multiplexer\uff09\uff0c\u53ef\u4ee5\u521b\u5efa\u591a\u4e2a\u4f1a\u8bdd\uff0c\u5e76\u4e14\u53ef\u4ee5\u4ece\u4f1a\u8bdd\u4e2d\u201c\u5206\u79bb\u201d\uff08detach\uff09\u3002\u5373\u4f7fSSH\u65ad\u5f00\u8fde\u63a5\uff0c<code>tmux<\/code>\u4f1a\u8bdd\u548c\u5176\u4e2d\u8fd0\u884c\u7684\u7a0b\u5e8f\u4e5f\u4f1a\u7ee7\u7eed\u5728\u670d\u52a1\u5668\u540e\u53f0\u8fd0\u884c\u3002<\/li>\n\n\n\n<li><strong>nohup:<\/strong> <code>nohup<\/code> \u547d\u4ee4\u53ef\u4ee5\u4f7f\u4e00\u4e2a\u547d\u4ee4\u5ffd\u7565\u6302\u8d77\uff08hangup\uff09\u4fe1\u53f7\u3002\u901a\u5e38\u4e0e <code>&amp;<\/code> \u7ed3\u5408\u4f7f\u7528\uff08<code>nohup command &amp;<\/code>\uff09\uff0c\u8fd9\u6837\u5f53SSH\u4f1a\u8bdd\u5173\u95ed\u65f6\uff0c\u8fdb\u7a0b\u4e0d\u4f1a\u88ab\u7ec8\u6b62\uff0c\u5e76\u4e14\u5176\u8f93\u51fa\u4f1a\u9ed8\u8ba4\u91cd\u5b9a\u5411\u5230 <code>nohup.out<\/code> \u6587\u4ef6\u4e2d\u3002<\/li>\n\n\n\n<li><strong>screen:<\/strong> \u4e0e <code>tmux<\/code> \u7c7b\u4f3c\uff0c<code>screen<\/code> \u4e5f\u662f\u4e00\u4e2a\u7ecf\u5178\u7684\u7ec8\u7aef\u590d\u7528\u5668\uff0c\u5141\u8bb8\u7528\u6237\u521b\u5efa\u5e76\u7ba1\u7406\u591a\u4e2a\u7ec8\u7aef\u4f1a\u8bdd\uff0c\u5e76\u5728\u65ad\u5f00SSH\u540e\u4fdd\u6301\u4f1a\u8bdd\u548c\u7a0b\u5e8f\u7684\u8fd0\u884c\u3002<\/li>\n\n\n\n<li><strong>&amp;:<\/strong> \u5355\u72ec\u4f7f\u7528 <code>&amp;<\/code> \u7b26\u53f7\u53ea\u662f\u5c06\u547d\u4ee4\u653e\u5165\u5f53\u524dshell\u4f1a\u8bdd\u7684\u540e\u53f0\u8fd0\u884c\u3002\u5f53\u8fd9\u4e2aSSH\u4f1a\u8bdd\u5173\u95ed\u65f6\uff0c\u4f1a\u8bdd\u4e2d\u7684\u6240\u6709\u8fdb\u7a0b\uff08\u5305\u62ec\u540e\u53f0\u8fdb\u7a0b\uff09\u901a\u5e38\u90fd\u4f1a\u6536\u5230SIGHUP\uff08\u6302\u65ad\uff09\u4fe1\u53f7\u5e76\u7ec8\u6b62\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u4ee5\u4e0b\u54ea\u4e9b\u5de5\u5177\u53ef\u4ee5\u7528\u4e8e\u76d1\u542c\u5e76\u5206\u6790\u6d41\u91cf<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Wireshark<\/li>\n\n\n\n<li>Nessus<\/li>\n\n\n\n<li>Tcpdump<\/li>\n\n\n\n<li>Burp Suite<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b54\u6848<\/h3>\n\n\n\n<p>1, 3, 4<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u89e3\u91ca<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Wireshark:<\/strong> \u662f\u4e00\u4e2a\u975e\u5e38\u8457\u540d\u7684\u7f51\u7edc\u534f\u8bae\u5206\u6790\u5668\uff0c\u62e5\u6709\u56fe\u5f62\u5316\u754c\u9762\uff0c\u53ef\u4ee5\u6355\u83b7\u7f51\u7edc\u6570\u636e\u5305\u5e76\u4ee5\u975e\u5e38\u8be6\u7ec6\u548c\u6613\u4e8e\u7406\u89e3\u7684\u65b9\u5f0f\u5c55\u793a\u5404\u5c42\u534f\u8bae\u7684\u6570\u636e\u3002<\/li>\n\n\n\n<li><strong>Nessus:<\/strong> \u662f\u4e00\u4e2a\u6f0f\u6d1e\u626b\u63cf\u5de5\u5177\uff0c\u7528\u4e8e\u68c0\u6d4b\u7f51\u7edc\u4e2d\u7684\u4e3b\u673a\u6709\u54ea\u4e9b\u5b89\u5168\u6f0f\u6d1e\uff0c\u800c\u4e0d\u662f\u7528\u4e8e\u5b9e\u65f6\u76d1\u542c\u548c\u5206\u6790\u7f51\u7edc\u6d41\u91cf\u7684\u5de5\u5177\u3002<\/li>\n\n\n\n<li><strong>Tcpdump:<\/strong> \u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u547d\u4ee4\u884c\u6293\u5305\u5de5\u5177\u3002\u5b83\u53ef\u4ee5\u5728\u670d\u52a1\u5668\u4e0a\u6355\u83b7\u548c\u5206\u6790\u7f51\u7edc\u6d41\u91cf\uff0c\u975e\u5e38\u9002\u5408\u5728\u6ca1\u6709\u56fe\u5f62\u754c\u9762\u7684\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u4f7f\u7528\u3002<\/li>\n\n\n\n<li><strong>Burp Suite:<\/strong> \u4e3b\u8981\u662f\u4e00\u4e2a\u7528\u4e8eWeb\u5e94\u7528\u5b89\u5168\u6d4b\u8bd5\u7684\u96c6\u6210\u5e73\u53f0\uff08HTTP\u4ee3\u7406\u5de5\u5177\uff09\uff0c\u5b83\u62e6\u622a\u548c\u5206\u6790\u7684\u662f\u5e94\u7528\u5c42\uff08\u4e3b\u8981\u662fHTTP\/HTTPS\uff09\u7684\u6d41\u91cf\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u6211\u4eec\u5728\u4e2a\u4eba\u4e3b\u673a\/\u670d\u52a1\u5668\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u5e38\u8bf4\u7684\u5b58\u50a8\u7a7a\u95f4\u662f\u6307 <strong>_<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b54\u6848<\/h3>\n\n\n\n<p>\u78c1\u76d8\u7a7a\u95f4<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u89e3\u91ca<\/h3>\n\n\n\n<p>\u901a\u5e38\u6211\u4eec\u6240\u8bf4\u7684\u201c\u5b58\u50a8\u7a7a\u95f4\u201d\u6216\u201c\u5bb9\u91cf\u201d\u6307\u7684\u662f\u8ba1\u7b97\u673a\u7684\u786c\u76d8\uff08HDD\uff09\u6216\u56fa\u6001\u786c\u76d8\uff08SSD\uff09\u4e0a\u53ef\u7528\u4e8e\u957f\u671f\u5b58\u653e\u64cd\u4f5c\u7cfb\u7edf\u3001\u8f6f\u4ef6\u548c\u7528\u6237\u6570\u636e\u7684\u7a7a\u95f4\uff0c\u5373\u78c1\u76d8\u7a7a\u95f4<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5217\u4e3e\u4e24\u4e2a\u5e38\u89c1\u7684\u670d\u52a1\u4ee5\u53ca\u5bf9\u5e94\u7684\u9ed8\u8ba4\u7aef\u53e3\uff0c\u4f8b\u5982http:80, <strong>_<\/strong> \u548c <strong>_<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b54\u6848<\/h3>\n\n\n\n<p>mysql:3306<\/p>\n\n\n\n<p>ssh:22<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u89e3\u91ca<\/h3>\n\n\n\n<p>\u987e\u540d\u601d\u4e49<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5224\u65ad\u4e00\u4e2a\u670d\u52a1\u5668\u5730\u5740\u662f\u5426\u5931\u8054\u7684\u6700\u7b80\u5355\u7684\u547d\u4ee4\u662f <strong>_<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b54\u6848<\/h3>\n\n\n\n<p>ping<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u89e3\u91ca<\/h3>\n\n\n\n<p><code>ping<\/code> \u547d\u4ee4\u901a\u8fc7\u53d1\u9001ICMP Echo Request\u62a5\u6587\u5230\u76ee\u6807\u4e3b\u673a\u5e76\u7b49\u5f85\u5176\u54cd\u5e94\uff0c\u6765\u68c0\u6d4b\u7f51\u7edc\u8fde\u63a5\u662f\u5426\u901a\u7545\u4ee5\u53ca\u6d4b\u91cf\u5ef6\u8fdf\uff0c\u662f\u7f51\u7edc\u8bca\u65ad\u4e2d\u6700\u57fa\u672c\u3001\u6700\u5e38\u7528\u7684\u547d\u4ee4<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5728\u4e0d\u4f7f\u7528sudo\u7684\u60c5\u51b5\u4e0b\uff0c\u5217\u4e3e\u4e24\u79cd\u666e\u901a\u7528\u6237\u914d\u7f6epython\u4f9d\u8d56\u7684pypi\u5305\u7684\u4e24\u79cd\u65b9\u6cd5\uff1a<strong>_<\/strong> \u548c <strong>_<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b54\u6848<\/h3>\n\n\n\n<p><strong>\u4f7f\u7528\u865a\u62df\u73af\u5883 (venv\/virtualenv)<\/strong> \u548c <strong>\u4f7f\u7528 <code>pip install --user<\/code><\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u89e3\u91ca<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u865a\u62df\u73af\u5883 (Virtual Environments):<\/strong> \u4f7f\u7528 <code>python -m venv myenv<\/code> \u7b49\u547d\u4ee4\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u72ec\u7acb\u7684Python\u73af\u5883\u3002\u6fc0\u6d3b\u8be5\u73af\u5883\u540e\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u5176\u4e2d\u81ea\u7531\u5730\u4f7f\u7528 <code>pip<\/code> \u5b89\u88c5\u5305\uff0c\u8fd9\u4e9b\u5305\u4f1a\u88ab\u5b89\u88c5\u5230\u8fd9\u4e2a\u865a\u62df\u73af\u5883\u7684\u76ee\u5f55\u4e2d\uff0c\u4e0d\u4f1a\u5f71\u54cd\u7cfb\u7edf\u5168\u5c40\u7684Python\u73af\u5883\uff0c\u56e0\u6b64\u4e0d\u9700\u8981<code>sudo<\/code>\u3002<\/li>\n\n\n\n<li><strong>\u7528\u6237\u6a21\u5f0f\u5b89\u88c5 (<code>--user<\/code>):<\/strong> \u4f7f\u7528 <code>pip install --user &lt;package_name><\/code> \u547d\u4ee4\uff0cpip\u4f1a\u5c06\u5305\u5b89\u88c5\u5230\u7528\u6237\u7684\u4e3b\u76ee\u5f55\u4e0b\u4e00\u4e2a\u7279\u5b9a\u7684\u4f4d\u7f6e\uff08\u5982 <code>~\/.local\/lib\/pythonX.Y\/site-packages<\/code>\uff09\u3002\u56e0\u4e3a\u64cd\u4f5c\u662f\u5728\u7528\u6237\u81ea\u5df1\u7684\u76ee\u5f55\u4e0b\uff0c\u6240\u4ee5\u4e0d\u9700\u8981\u7ba1\u7406\u5458\u6743\u9650\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u5217\u4e3e\u81f3\u5c11\u4e24\u79cd\u67e5\u770b\u5f53\u524d\u673a\u5668\u4e0b\u9762\u7684\u7aef\u53e3\u5f00\u653e\/\u4f7f\u7528\u60c5\u51b5\u7684\u547d\u4ee4\uff1a<strong>_<\/strong> \u548c <strong>_<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b54\u6848<\/h3>\n\n\n\n<p><strong>netstat -tuln<\/strong> \u548c <strong>ss -tuln<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u89e3\u91ca<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>netstat:<\/strong> \u662f\u4e00\u4e2a\u7ecf\u5178\u7684\u7528\u4e8e\u663e\u793a\u7f51\u7edc\u8fde\u63a5\u3001\u8def\u7531\u8868\u3001\u63a5\u53e3\u7edf\u8ba1\u7b49\u4fe1\u606f\u7684\u5de5\u5177\u3002<code>netstat -tuln<\/code> \u662f\u4e00\u4e2a\u5e38\u7528\u7ec4\u5408\uff0c\u8868\u793a\u663e\u793aTCP (<code>t<\/code>)\u3001UDP (<code>u<\/code>) \u7684\u76d1\u542c (<code>l<\/code>) \u7aef\u53e3\uff0c\u5e76\u4ee5\u6570\u5b57\u5f62\u5f0f (<code>n<\/code>) \u663e\u793a\u5730\u5740\u548c\u7aef\u53e3\u53f7\u3002<\/li>\n\n\n\n<li><strong>ss:<\/strong> \u662f <code>netstat<\/code> \u7684\u73b0\u4ee3\u66ff\u4ee3\u54c1\uff0c\u529f\u80fd\u66f4\u5f3a\u5927\u4e14\u901f\u5ea6\u66f4\u5feb\u3002<code>ss -tuln<\/code> \u7684\u53c2\u6570\u542b\u4e49\u4e0e <code>netstat<\/code> \u7c7b\u4f3c\uff0c\u662f\u76ee\u524d\u5728Linux\u7cfb\u7edf\u4e0a\u66f4\u63a8\u8350\u4f7f\u7528\u7684\u547d\u4ee4\u3002<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">\u5b9e\u6218\u9898\u76ee<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">Task0: \u7b7e\u5230<\/h2>\n\n\n\n<p>\u4efb\u52a1\u8981\u6c42\uff1a\u4f7f\u7528ssh\u8fde\u63a5\u5230\u8fdc\u7a0b\u670d\u52a1\u5668\uff0c\u5e76\u8fd0\u884c\u6307\u5b9a\u76ee\u5f55\u4e0b\u9762\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u5373\u53ef\u83b7\u53d6flag<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5177\u4f53\u8fc7\u7a0b<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">docker load -i server_lab.tar<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250725-230439-25-1.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250725-230439-25-1.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\"\/><\/div><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">docker run --name server_lab -it -d server_lab <\/pre>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250725-230824-25-2.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250725-230824-25-2.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\"\/><\/div><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250725-230939-25-3.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250725-230939-25-3.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\"\/><\/div><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250725-231040-25-4.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250725-231040-25-4.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\"\/><\/div><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">Congratulations! You have successfully learned how to use SSH to log into a remote server. Your flag is flag{c3f1168d1c043253b051c9dd03166dea}.<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Task1: \u6587\u4ef6\u64cd\u4f5c<\/h2>\n\n\n\n<p>\u4efb\u52a1\u8981\u6c42\uff1a\u901a\u8fc7\u6267\u884c\u547d\u4ee4\u4f7f\u5f97\u6587\u4ef6\u5939<code>\/home\/student\/data<\/code> \u548c <code>\/mnt\/examdata<\/code> \u4fdd\u6301\u76f8\u540c\u7684\u8bfb\u5199\u884c\u4e3a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5177\u4f53\u8fc7\u7a0b<\/h3>\n\n\n\n<p>\u8fd9\u91cc\u6211\u4eec\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u8f6f\u94fe\u63a5\u6765\u8ba9\u4e24\u4e2a\u8def\u5f84\u8868\u73b0\u5f97\u4e00\u81f4\uff0c\u5373\u8bbf\u95ee\u6216\u5199\u5165\u5176\u4e2d\u4e00\u4e2a\u76ee\u5f55\u65f6\uff0c\u5b9e\u9645\u64cd\u4f5c\u7684\u662f\u53e6\u4e00\u4e2a\u76ee\u5f55\u7684\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ln -s \/mnt\/examdata \/home\/student\/data<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250725-231550-25-5.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250725-231550-25-5.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\"\/><\/div><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">Check passed! Flag: flag{6f21794a59dda918e461a78e89f22b38}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Task2: \u8d44\u6e90\u67e5\u770b<\/h2>\n\n\n\n<p>\u4efb\u52a1\u76ee\u7684\uff1a\u4e86\u89e3\u5e38\u7528\u7684\u67e5\u770b\u8d44\u6e90\u7684\u547d\u4ee4\u4e0e\u65b9\u6cd5<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5177\u4f53\u8fc7\u7a0b<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">student@e7aa93e73df9:\/opt\/tasks\/task2_resource$ history -w<br>student@e7aa93e73df9:\/opt\/tasks\/task2_resource$ free -h<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  total &nbsp; &nbsp; &nbsp;  used &nbsp; &nbsp; &nbsp;  free &nbsp; &nbsp;  shared  buff\/cache &nbsp; available<br>Mem: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 31Gi &nbsp; &nbsp; &nbsp; 711Mi &nbsp; &nbsp; &nbsp;  29Gi &nbsp; &nbsp; &nbsp; 4.0Mi &nbsp; &nbsp; &nbsp; 726Mi &nbsp; &nbsp; &nbsp;  30Gi<br>Swap: &nbsp; &nbsp; &nbsp; &nbsp; 8.0Gi &nbsp; &nbsp; &nbsp; &nbsp;  0B &nbsp; &nbsp; &nbsp; 8.0Gi<br>student@e7aa93e73df9:\/opt\/tasks\/task2_resource$ cat \/proc\/meminfo<br>MemTotal: &nbsp; &nbsp; &nbsp; 32700540 kB<br>MemFree: &nbsp; &nbsp; &nbsp;  31232148 kB<br>MemAvailable: &nbsp; 31629880 kB<br>Buffers: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 20988 kB<br>Cached: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 641132 kB<br>SwapCached: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0 kB<br>Active: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 128128 kB<br>Inactive: &nbsp; &nbsp; &nbsp; &nbsp; 779504 kB<br>Active(anon): &nbsp; &nbsp; &nbsp; 2472 kB<br>Inactive(anon): &nbsp; 248068 kB<br>Active(file): &nbsp; &nbsp; 125656 kB<br>Inactive(file): &nbsp; 531436 kB<br>Unevictable: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 kB<br>Mlocked: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 kB<br>SwapTotal: &nbsp; &nbsp; &nbsp; 8388608 kB<br>SwapFree: &nbsp; &nbsp; &nbsp;  8388608 kB<br>Dirty: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  60 kB<br>Writeback: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 kB<br>AnonPages: &nbsp; &nbsp; &nbsp;  246068 kB<br>Mapped: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 222548 kB<br>Shmem: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  4592 kB<br>KReclaimable: &nbsp; &nbsp;  82060 kB<br>Slab: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 207804 kB<br>SReclaimable: &nbsp; &nbsp;  82060 kB<br>SUnreclaim: &nbsp; &nbsp; &nbsp; 125744 kB<br>KernelStack: &nbsp; &nbsp; &nbsp;  9216 kB<br>PageTables: &nbsp; &nbsp; &nbsp; &nbsp; 4096 kB<br>SecPageTables: &nbsp; &nbsp; &nbsp; &nbsp; 0 kB<br>NFS_Unstable: &nbsp; &nbsp; &nbsp; &nbsp;  0 kB<br>Bounce: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0 kB<br>WritebackTmp: &nbsp; &nbsp; &nbsp; &nbsp;  0 kB<br>CommitLimit: &nbsp;  24738876 kB<br>Committed_AS: &nbsp;  1723560 kB<br>VmallocTotal: &nbsp; 34359738367 kB<br>VmallocUsed: &nbsp; &nbsp; &nbsp; 38232 kB<br>VmallocChunk: &nbsp; &nbsp; &nbsp; &nbsp;  0 kB<br>Percpu: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  13184 kB<br>HardwareCorrupted: &nbsp; &nbsp; 0 kB<br>AnonHugePages: &nbsp; &nbsp; &nbsp; &nbsp; 0 kB<br>ShmemHugePages: &nbsp; &nbsp; &nbsp;  0 kB<br>ShmemPmdMapped: &nbsp; &nbsp; &nbsp;  0 kB<br>FileHugePages: &nbsp; &nbsp; &nbsp; &nbsp; 0 kB<br>FilePmdMapped: &nbsp; &nbsp; &nbsp; &nbsp; 0 kB<br>Unaccepted: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0 kB<br>HugePages_Total: &nbsp; &nbsp; &nbsp; 0<br>HugePages_Free: &nbsp; &nbsp; &nbsp;  0<br>HugePages_Rsvd: &nbsp; &nbsp; &nbsp;  0<br>HugePages_Surp: &nbsp; &nbsp; &nbsp;  0<br>Hugepagesize: &nbsp; &nbsp; &nbsp; 2048 kB<br>top - 15:23:00 up  7:31,  0 users,  load average: 0.08, 0.04, 0.00<br>Tasks: &nbsp; 9 total, &nbsp; 1 running, &nbsp; 7 sleeping, &nbsp; 0 stopped, &nbsp; 1 zombie<br>%Cpu(s):  0.0 us,  0.2 sy,  0.0 ni, 99.8 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st<br>MiB Mem :  31934.1 total,  30500.3 free, &nbsp;  707.1 used, &nbsp;  726.8 buff\/cache<br>MiB Swap: &nbsp; 8192.0 total, &nbsp; 8192.0 free, &nbsp; &nbsp;  0.0 used.  30889.1 avail Mem <br>\u200b<br>  PID USER &nbsp; &nbsp;  PR  NI &nbsp;  VIRT &nbsp;  RES &nbsp;  SHR S  %CPU  %MEM &nbsp; &nbsp; TIME+ COMMAND &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br> &nbsp;  1 student &nbsp; 20 &nbsp; 0 &nbsp;  4116 &nbsp; 3072 &nbsp; 2816 S &nbsp; 0.0 &nbsp; 0.0 &nbsp; 0:00.47 .entrypoint.sh &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br> &nbsp;  9 root &nbsp; &nbsp;  20 &nbsp; 0 &nbsp; 12196 &nbsp; 3108 &nbsp; 2304 S &nbsp; 0.0 &nbsp; 0.0 &nbsp; 0:00.00 sshd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br> &nbsp; 10 student &nbsp; 20 &nbsp; 0 &nbsp; 13580 &nbsp; 9728 &nbsp; 5632 S &nbsp; 0.0 &nbsp; 0.0 &nbsp; 0:00.04 [kworker\/u8:2-e &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br> &nbsp; 11 student &nbsp; 20 &nbsp; 0 &nbsp; 12140 &nbsp; 7936 &nbsp; 5376 S &nbsp; 0.0 &nbsp; 0.0 &nbsp; 0:00.01 python &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br> &nbsp; 13 student &nbsp; 20 &nbsp; 0 &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp;  0 &nbsp; &nbsp;  0 Z &nbsp; 0.0 &nbsp; 0.0 &nbsp; 0:00.00 python &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>  102 student &nbsp; 20 &nbsp; 0 &nbsp;  2616 &nbsp; 1280 &nbsp; 1280 S &nbsp; 0.0 &nbsp; 0.0 &nbsp; 0:00.01 sh &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br> 1250 student &nbsp; 20 &nbsp; 0 &nbsp;  4252 &nbsp; 3328 &nbsp; 2816 S &nbsp; 0.0 &nbsp; 0.0 &nbsp; 0:00.01 bash &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br> 1378 student &nbsp; 20 &nbsp; 0 &nbsp;  2516 &nbsp; 1280 &nbsp; 1280 S &nbsp; 0.0 &nbsp; 0.0 &nbsp; 0:00.00 sleep &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br> 1379 student &nbsp; 20 &nbsp; 0 &nbsp;  6116 &nbsp; 2816 &nbsp; 2560 R &nbsp; 0.0 &nbsp; 0.0 &nbsp; 0:00.00 top &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>\u200b<br>student@e7aa93e73df9:\/opt\/tasks\/task2_resource$ mpstat<br>Linux 6.6.87.2-microsoft-standard-WSL2 (e7aa93e73df9) &nbsp; 07\/25\/25 &nbsp; &nbsp; &nbsp;  _x86_64_ &nbsp; &nbsp; &nbsp;  (32 CPU)<br>\u200b<br>15:23:07 &nbsp; &nbsp; CPU &nbsp;  %usr &nbsp; %nice &nbsp;  %sys %iowait &nbsp;  %irq &nbsp; %soft  %steal  %guest  %gnice &nbsp; %idle<br>15:23:07 &nbsp; &nbsp; all &nbsp;  0.03 &nbsp;  0.00 &nbsp;  0.04 &nbsp;  0.01 &nbsp;  0.00 &nbsp;  0.00 &nbsp;  0.00 &nbsp;  0.00 &nbsp;  0.00 &nbsp; 99.92<br>student@e7aa93e73df9:\/opt\/tasks\/task2_resource$ .\/check<br>Task Overview:<br>- Run \u22652 commands to check memory usage<br>- Run \u22652 commands to check disk usage<br>- Run \u22652 commands to check CPU usage<br>Important: After running the required commands, make sure to run 'history -w' before executing this script, otherwise the check may fail!<br>All checks passed! Flag: flag{a1a228d445780aeaed3ccc20f2c674bc}!<br>student@e7aa93e73df9:\/opt\/tasks\/task2_resource$ <\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Task3: \u8fdb\u7a0b\u7ba1\u7406<\/h2>\n\n\n\n<p>\u4efb\u52a1\u76ee\u7684\uff1a\u638c\u63e1\u8fdb\u7a0b\u67e5\u8be2\u4e0e\u91ca\u653e\u7684\u57fa\u672c\u65b9\u6cd5\uff0c\u4e86\u89e3\u50f5\u5c38\u8fdb\u7a0b<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5177\u4f53\u8fc7\u7a0b<\/h3>\n\n\n\n<p>\u50f5\u5c38\u8fdb\u7a0b\u662f\u72b6\u6001\u4e3a <code>Z<\/code> \u7684\u8fdb\u7a0b\uff0c\u8bf4\u660e\u5b83\u5df2\u7ecf\u7ec8\u6b62\u4f46\u5176\u7236\u8fdb\u7a0b\u6ca1\u6709\u8c03\u7528 <code>wait()<\/code> \u56de\u6536\u8d44\u6e90\uff0c\u6240\u4ee5\u6211\u4eec\u9700\u8981\u5148\u67e5\u627e\u8be5\u72b6\u6001\u7684\u8fdb\u7a0b\uff0c\u7136\u540e\u6740\u6b7b\u4ed6\u7684\u7236\u8fdb\u7a0b\uff0c\u4ee5\u6b64\u6d88\u706d\u50f5\u5c38\u8fdb\u7a0b<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">student@e7aa93e73df9:\/opt\/tasks\/task3_process$ history -w<br>student@e7aa93e73df9:\/opt\/tasks\/task3_process$ ps aux | grep 'Z'<br>USER &nbsp; &nbsp; &nbsp; PID %CPU %MEM &nbsp;  VSZ &nbsp; RSS TTY &nbsp; &nbsp;  STAT START &nbsp; TIME COMMAND<br>student &nbsp; &nbsp; 13  0.0  0.0 &nbsp; &nbsp;  0 &nbsp; &nbsp; 0 pts\/0 &nbsp;  Z+ &nbsp; 15:08 &nbsp; 0:00 [python] &lt;defunct&gt;<br>student &nbsp; 1550  0.0  0.0 &nbsp; 1036 &nbsp; &nbsp; 0 pts\/1 &nbsp;  D+ &nbsp; 15:25 &nbsp; 0:00 grep --color=auto Z<br>student@e7aa93e73df9:\/opt\/tasks\/task3_process$ ps -eo pid,ppid,state,comm | grep ' Z'<br> &nbsp; 13 &nbsp;  11 Z python &lt;defunct&gt;<br>student@e7aa93e73df9:\/opt\/tasks\/task3_process$ kill -9 11<br>student@e7aa93e73df9:\/opt\/tasks\/task3_process$ ps -eo pid,ppid,state,comm | grep ' Z'<br>student@e7aa93e73df9:\/opt\/tasks\/task3_process$ .\/check<br>Your task is to find zombie processes and kill them.<br>Important: After running the required commands, make sure to run 'history -w' before executing this script, otherwise the check may fail!<br>Check failed. Please ensure you have queried zombies, killed the parent process, and zombies are gone.<br>student@e7aa93e73df9:\/opt\/tasks\/task3_process$ cat tail ~\/.bash_history<br>cat: tail: No such file or directory<br>history -w<br>history<br>free -h<br>cat \/proc\/meminfo<br>df -h<br>du -sh \/home\/student`<br>du -sh \/home\/student<br>top<br>mpstat<br>.\/check<br>history -w<br>free -h<br>cat \/proc\/meminfo<br>df -h<br>du -sh \/home\/student<br>top<br>mpstat<br>.\/check<br>cd ..<br>ls -a<br>cd task3_process\/<br>ls -a<br>history -w<br>student@e7aa93e73df9:\/opt\/tasks\/task3_process$ history -w<br>student@e7aa93e73df9:\/opt\/tasks\/task3_process$ ps -eo pid,ppid,state,comm | grep ' Z'<br>student@e7aa93e73df9:\/opt\/tasks\/task3_process$ kill -9 11<br>bash: kill: (11) - No such process<br>student@e7aa93e73df9:\/opt\/tasks\/task3_process$ tail ~\/.bash_history<br>cd task3_process\/<br>ls -a<br>history -w<br>ps aux | grep 'Z'<br>ps -eo pid,ppid,state,comm | grep ' Z'<br>kill -9 11<br>ps -eo pid,ppid,state,comm | grep ' Z'<br>.\/check<br>cat tail ~\/.bash_history<br>history -w<br>student@e7aa93e73df9:\/opt\/tasks\/task3_process$ .\/check<br>Your task is to find zombie processes and kill them.<br>Important: After running the required commands, make sure to run 'history -w' before executing this script, otherwise the check may fail!<br>All checks passed! Flag: flag{c7d9b860237e39e46d69017cf5ca3a61}!<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Task4: \u6076\u610f\u8fdb\u7a0b<\/h2>\n\n\n\n<p>\u4efb\u52a1\u76ee\u7684\uff1a\u4e86\u89e3\u6076\u610f\u8fdb\u7a0b\u7684\u4f2a\u88c5\u65b9\u6cd5\u4ee5\u53ca\u57fa\u672c\u7684\u6eaf\u6e90<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5177\u4f53\u8fc7\u7a0b<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">student@e7aa93e73df9:\/opt\/tasks\/task4_malicious$ ps -eo pid,user,cmd --sort=start_time<br>  PID USER &nbsp; &nbsp; CMD<br> &nbsp;  1 student  \/bin\/bash \/tmp\/.entrypoint.sh tail -f \/dev\/null<br> &nbsp;  9 root &nbsp; &nbsp; sshd: \/usr\/sbin\/sshd [listener] 0 of 10-100 startups<br> &nbsp; 10 student  [kworker\/u8:2-events]<br>  102 student  \/bin\/sh<br> 1250 student  bash<br> 2345 student  sleep 1<br> 2346 student  ps -eo pid,user,cmd --sort=start_time<\/pre>\n\n\n\n<p><code>kworker<\/code> \u662f Linux \u5185\u6838\u7684\u5de5\u4f5c\u7ebf\u7a0b\uff08kernel worker threads\uff09\uff0c\u7528\u4e8e\u6267\u884c\u5185\u6838\u7684\u540e\u53f0\u4efb\u52a1\uff0c\u4f46\u771f\u6b63\u7684\u5185\u6838\u7ebf\u7a0b\u5e94\u8be5\u662f\u7531\u5185\u6838\u521b\u5efa\u7684\uff0c\u5e76\u4e14\u5176\u7528\u6237\uff08USER\uff09\u5e94\u8be5\u662f <code>root<\/code>\u3002\u7136\u800c\uff0c\u8fd9\u4e2a\u8fdb\u7a0b\u7684\u7528\u6237\u662f <code>student<\/code>\uff0c\u6240\u4ee5\u5f88\u663e\u7136\u8fd9\u5c31\u662f\u90a3\u4e2a\u6076\u610f\u8fdb\u7a0b\uff0c\u4f2a\u88c5\u7684COMMAND\u4e5f\u5c31\u662f <code>[kworker\/u8:2-events]<\/code><\/p>\n\n\n\n<p><code>ps<\/code> \u547d\u4ee4\u663e\u793a\u7684 <code>CMD<\/code> \u662f\u53ef\u4ee5\u88ab\u7a0b\u5e8f\u81ea\u8eab\u4fee\u6539\u7684\uff0c\u56e0\u6b64\u4e0d\u53ef\u4fe1\uff0c\u6211\u4eec\u9700\u8981\u53bb\/proc\u627e\u5230\u5b83\u771f\u6b63\u7684\u53ef\u6267\u884c\u6587\u4ef6\u548c\u542f\u52a8\u547d\u4ee4\u3002\u7531\u4e8e\u8fdb\u7a0b\u7684\u53ef\u6267\u884c\u6587\u4ef6\u662f\u4e00\u4e2a\u6307\u5411 <code>\/proc\/&lt;PID&gt;\/exe<\/code> \u7684\u7b26\u53f7\u94fe\u63a5\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 <code>ls -l<\/code> \u547d\u4ee4\u6765\u67e5\u770b\u5b83\u6307\u5411\u7684\u771f\u5b9e\u6587\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">student@e7aa93e73df9:\/opt\/tasks\/task4_malicious$ ls -l \/proc\/10\/exe<br>lrwxrwxrwx 1 student student 0 Jul 25 15:39 \/proc\/10\/exe -&gt; \/usr\/bin\/python3.8<\/pre>\n\n\n\n<p>\u4f46\u8fd9\u91cc\u6ca1\u6709\u5c55\u793a\u771f\u6b63\u7684\u547d\u4ee4\u53c2\u6570\uff0c\u4e0d\u8fc7\u6211\u4eec\u53ef\u4ee5\u731c\u51fa\u6765\uff0c\u4ed6\u65e2\u7136\u7528\u7684python\uff0c\u6267\u884c\u7684\u80af\u5b9a\u4e5f\u662fpython\u6587\u4ef6\uff0c\u5728\u73af\u5883\u91cc\u641c\u7d22\u4e86\u4e00\u4e0b.py\u6587\u4ef6\uff0c \u6700\u540e\u5728tmp\u76ee\u5f55\u627e\u5230\u76ee\u6807\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250726-110856-25-17.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250726-110856-25-17.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\"\/><\/div><\/figure>\n\n\n\n<p>\u6700\u540e\u731c\u4e86\u4e00\u4e0b\uff0c\u547d\u4ee4\u5e94\u8be5\u662f<code>python \/tmp\/.ftpd.py<\/code>\uff0c\u6700\u540e\u6740\u6b7b\u4e00\u4e0b\u8fdb\u7a0b\u5373\u53ef\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">kill -9 10<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">student@ed0e3fee5f8f:\/opt\/tasks\/task4_malicious$ kill -9 10<br>student@ed0e3fee5f8f:\/opt\/tasks\/task4_malicious$ .\/check<br>Task: Analyze and eliminate a malicious process.<br>\u200b<br>Please enter your findings:<br>1. What is the disguised process name (COMMAND)? [kworker\/u8:2-events]<br>Correct.<br>2. What is the real command running behind it? python \/tmp\/.ftpd.py<br>Correct.<br>All checks passed. Flag: flag{b16441296d5bbf5793c822488a61a20d}.<br>student@ed0e3fee5f8f:\/opt\/tasks\/task4_malicious$ <\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Task5: \u5e76\u884c\u64cd\u4f5c<\/h2>\n\n\n\n<p>\u4efb\u52a1\u76ee\u7684\uff1a\u4e86\u89e3\u5e76\u638c\u63e1\u5e38\u7528\u7684\u5e76\u884c\u64cd\u4f5c\uff0c\u63d0\u9ad8\u4ee3\u7801\u8fd0\u884c\u6548\u7387<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5177\u4f53\u8fc7\u7a0b<\/h3>\n\n\n\n<p><code>test.py<\/code> \u76ee\u524d\u662f <strong>\u4e32\u884c\u6267\u884c<\/strong> \u7684\uff0c\u6bcf\u6b21\u8c03\u7528 <code>worker(i)<\/code> \u90fd\u4f1a\u963b\u585e 1 \u79d2\uff0c\u6240\u4ee5\u8fd0\u884c\u603b\u8017\u65f6\u5927\u7ea6\u662f <code>15<\/code> \u79d2<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">student@e7aa93e73df9:\/opt\/tasks\/task5_concurrent$ cp template.py test.py<br>student@e7aa93e73df9:\/opt\/tasks\/task5_concurrent$ cat test.py<br>import time<br>import threading<br>\u200b<br>total = 0<br>start_time = time.time()<br>lock = threading.Lock()<br>\u200b<br>def worker(num):<br> &nbsp;  global total<br> &nbsp;  with lock:<br> &nbsp; &nbsp; &nbsp;  total += num<br> &nbsp;  time.sleep(1)<br># ======= DO NOT MODIFY ABOVE =======<br>\u200b<br>def main():<br># ======= You may ONLY modify this section to implement concurrency =======<br> &nbsp;  for i in range(1, 16):<br> &nbsp; &nbsp; &nbsp;  worker(i) &nbsp;<br># ====================================================================<br>\u200b<br># ======= DO NOT MODIFY BELOW =======<br> &nbsp;  end_time = time.time()<br> &nbsp;  elapsed = end_time - start_time<br>\u200b<br> &nbsp;  print(f\"Total: {total}\")<br> &nbsp;  print(f\"Elapsed time: {elapsed:.2f} seconds\")<br>\u200b<br>if __name__ == \"__main__\":<br> &nbsp;  main()<\/pre>\n\n\n\n<p>\u8fd9\u91cc\u6211\u4eec\u7528threading.Thread\u5b9e\u73b0\u5e76\u53d1\uff0c\u4fee\u6539\u540e\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import time<br>import threading<br>\u200b<br>total = 0<br>start_time = time.time()<br>lock = threading.Lock()<br>\u200b<br>def worker(num):<br> &nbsp;  global total<br> &nbsp;  with lock:<br> &nbsp; &nbsp; &nbsp;  total += num<br> &nbsp;  time.sleep(1)<br># ======= DO NOT MODIFY ABOVE =======<br>\u200b<br>def main():<br># ======= You may ONLY modify this section to implement concurrency =======<br> &nbsp;  threads = []<br> &nbsp;  for i in range(1, 16):<br> &nbsp; &nbsp; &nbsp;  t = threading.Thread(target=worker, args=(i,))<br> &nbsp; &nbsp; &nbsp;  t.start()<br> &nbsp; &nbsp; &nbsp;  threads.append(t)<br>\u200b<br> &nbsp;  for t in threads:<br> &nbsp; &nbsp; &nbsp;  t.join()<br># ====================================================================<br>\u200b<br># ======= DO NOT MODIFY BELOW =======<br> &nbsp;  end_time = time.time()<br> &nbsp;  elapsed = end_time - start_time<br>\u200b<br> &nbsp;  print(f\"Total: {total}\")<br> &nbsp;  print(f\"Elapsed time: {elapsed:.2f} seconds\")<br>\u200b<br>if __name__ == \"__main__\":<br> &nbsp;  main()<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">student@e7aa93e73df9:\/opt\/tasks\/task5_concurrent$ .\/check<br>Task: Optimize the addition of numbers using concurrency in template.py.<br>!!! Important !!! Do NOT modify template.py directly. You may copy it and modify the copy instead.<br>Your solution must:<br> &nbsp; 1. Only modify the marked section.<br> &nbsp; 2. Do NOT modify the variable 'total' outside the worker() function.<br> &nbsp; 3. Complete execution within 5 seconds.<br>\u200b<br>Enter the path to your Python solution file: .\/test.py<br>[LOG] Script completed in 1.01 seconds with correct total.<br>\u200b<br>Final Result:<br>All checks passed. Flag: flag{b4422662626f04927c2f8e03b222d264}.<br>student@e7aa93e73df9:\/opt\/tasks\/task5_concurrent$ <\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Task6: \u65e5\u5fd7\u6eaf\u6e90<\/h2>\n\n\n\n<p>\u4efb\u52a1\u76ee\u7684\uff1a\u4e86\u89e3\u57fa\u672c\u7684\u65e5\u5fd7\u6eaf\u6e90\u65b9\u6cd5\u4ee5\u53ca\u5e38\u89c1\u7684\u7206\u7834\u653b\u51fb<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5177\u4f53\u8fc7\u7a0b<\/h3>\n\n\n\n<p>\u65e5\u5fd7\u91cc\u67e5\u8be2&#8221;Failed password&#8221;\u5173\u952e\u8bcd\uff0c\u7136\u540e\u6309ip\u6392\u5e8f\uff0c\u8fd9\u4e2a\u7b2c\u4e00\u4e2a\u663e\u7136\u5c31\u662f\u76ee\u6807\u4e86<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">student@e7aa93e73df9:\/opt\/tasks$ grep \"Failed password\" \/var\/log\/auth.log | awk '{for(i=1;i&lt;=NF;i++) if ($i==\"from\") print $(i+1)}' | sort | uniq -c | sort -nr<br> &nbsp; &nbsp; 60 45.33.32.156<br> &nbsp; &nbsp;  4 172.16.0.66<br> &nbsp; &nbsp;  4 103.48.162.68<br> &nbsp; &nbsp;  3 78.52.226.17<br> &nbsp; &nbsp;  3 197.2.236.156<br> &nbsp; &nbsp;  3 192.168.1.41<br> &nbsp; &nbsp;  3 172.16.0.53<br> &nbsp; &nbsp;  3 10.0.0.98<br> &nbsp; &nbsp;  3 10.0.0.6<br> &nbsp; &nbsp;  2 99.109.142.2<br> &nbsp; &nbsp;  2 93.4.178.234<br> &nbsp; &nbsp;  2 200.13.133.39<br> &nbsp; &nbsp;  2 193.28.93.35<br> &nbsp; &nbsp;  2 192.168.1.72<br> &nbsp; &nbsp;  2 192.168.1.65<br> &nbsp; &nbsp;  2 192.168.1.53<br> &nbsp; &nbsp;  2 192.168.1.48<br> &nbsp; &nbsp;  2 192.168.1.18<br> &nbsp; &nbsp;  2 172.16.0.84<br> &nbsp; &nbsp;  2 172.16.0.82<br> &nbsp; &nbsp;  2 172.16.0.80<br> &nbsp; &nbsp;  2 172.16.0.70<br> &nbsp; &nbsp;  2 172.16.0.60<br> &nbsp; &nbsp;  2 172.16.0.56<br> &nbsp; &nbsp;  2 172.16.0.54<br> &nbsp; &nbsp;  2 172.16.0.39<br> &nbsp; &nbsp;  2 172.16.0.23<br> &nbsp; &nbsp;  2 172.16.0.10<br> &nbsp; &nbsp;  2 167.250.218.91<br> &nbsp; &nbsp;  2 152.248.72.188<br> &nbsp; &nbsp;  2 146.53.82.183<br> &nbsp; &nbsp;  2 128.217.120.10<br> &nbsp; &nbsp;  2 113.182.221.92<br> &nbsp; &nbsp;  2 106.55.93.51<br> &nbsp; &nbsp;  2 10.0.0.56<br> &nbsp; &nbsp;  2 10.0.0.45<br> &nbsp; &nbsp;  2 10.0.0.17<br> &nbsp; &nbsp;  1 99.44.62.139<br> &nbsp; &nbsp;  1 94.59.118.211<br> &nbsp; &nbsp;  1 74.136.150.170<br> &nbsp; &nbsp;  1 50.8.226.132<br> &nbsp; &nbsp;  1 45.159.235.36<br> &nbsp; &nbsp;  1 42.155.201.247<br> &nbsp; &nbsp;  1 37.66.203.171<br> &nbsp; &nbsp;  1 36.190.19.109<br> &nbsp; &nbsp;  1 31.192.136.45<br> &nbsp; &nbsp;  1 30.184.148.221<br> &nbsp; &nbsp;  1 30.102.252.129<br> &nbsp; &nbsp;  1 29.103.44.150<br> &nbsp; &nbsp;  1 213.184.101.176<br> &nbsp; &nbsp;  1 192.168.1.90<br> &nbsp; &nbsp;  1 192.168.1.81<br> &nbsp; &nbsp;  1 192.168.1.8<br> &nbsp; &nbsp;  1 192.168.1.70<br> &nbsp; &nbsp;  1 192.168.1.67<br> &nbsp; &nbsp;  1 192.168.1.52<br> &nbsp; &nbsp;  1 192.168.1.42<br> &nbsp; &nbsp;  1 192.168.1.39<br> &nbsp; &nbsp;  1 192.168.1.37<br> &nbsp; &nbsp;  1 192.168.1.30<br> &nbsp; &nbsp;  1 192.168.1.3<br> &nbsp; &nbsp;  1 192.168.1.29<br> &nbsp; &nbsp;  1 192.168.1.28<br> &nbsp; &nbsp;  1 192.168.1.27<br> &nbsp; &nbsp;  1 192.168.1.22<br> &nbsp; &nbsp;  1 192.168.1.14<br> &nbsp; &nbsp;  1 192.168.1.12<br> &nbsp; &nbsp;  1 192.168.1.10<br> &nbsp; &nbsp;  1 173.118.224.22<br> &nbsp; &nbsp;  1 172.16.0.99<br> &nbsp; &nbsp;  1 172.16.0.97<br> &nbsp; &nbsp;  1 172.16.0.93<br> &nbsp; &nbsp;  1 172.16.0.91<br> &nbsp; &nbsp;  1 172.16.0.90<br> &nbsp; &nbsp;  1 172.16.0.9<br> &nbsp; &nbsp;  1 172.16.0.87<br> &nbsp; &nbsp;  1 172.16.0.85<br> &nbsp; &nbsp;  1 172.16.0.78<br> &nbsp; &nbsp;  1 172.16.0.77<br> &nbsp; &nbsp;  1 172.16.0.76<br> &nbsp; &nbsp;  1 172.16.0.75<br> &nbsp; &nbsp;  1 172.16.0.74<br> &nbsp; &nbsp;  1 172.16.0.73<br> &nbsp; &nbsp;  1 172.16.0.68<br> &nbsp; &nbsp;  1 172.16.0.65<br> &nbsp; &nbsp;  1 172.16.0.64<br> &nbsp; &nbsp;  1 172.16.0.61<br> &nbsp; &nbsp;  1 172.16.0.58<br> &nbsp; &nbsp;  1 172.16.0.52<br> &nbsp; &nbsp;  1 172.16.0.49<br> &nbsp; &nbsp;  1 172.16.0.46<br> &nbsp; &nbsp;  1 172.16.0.4<br> &nbsp; &nbsp;  1 172.16.0.37<br> &nbsp; &nbsp;  1 172.16.0.36<br> &nbsp; &nbsp;  1 172.16.0.35<br> &nbsp; &nbsp;  1 172.16.0.34<br> &nbsp; &nbsp;  1 172.16.0.28<br> &nbsp; &nbsp;  1 172.16.0.27<br> &nbsp; &nbsp;  1 172.16.0.25<br> &nbsp; &nbsp;  1 172.16.0.21<br> &nbsp; &nbsp;  1 172.16.0.2<br> &nbsp; &nbsp;  1 172.16.0.13<br> &nbsp; &nbsp;  1 169.230.110.236<br> &nbsp; &nbsp;  1 16.107.216.222<br> &nbsp; &nbsp;  1 156.242.1.157<br> &nbsp; &nbsp;  1 153.103.245.108<br> &nbsp; &nbsp;  1 132.77.9.176<br> &nbsp; &nbsp;  1 129.242.228.78<br> &nbsp; &nbsp;  1 126.223.210.162<br> &nbsp; &nbsp;  1 10.0.0.97<br> &nbsp; &nbsp;  1 10.0.0.95<br> &nbsp; &nbsp;  1 10.0.0.93<br> &nbsp; &nbsp;  1 10.0.0.91<br> &nbsp; &nbsp;  1 10.0.0.9<br> &nbsp; &nbsp;  1 10.0.0.89<br> &nbsp; &nbsp;  1 10.0.0.87<br> &nbsp; &nbsp;  1 10.0.0.84<br> &nbsp; &nbsp;  1 10.0.0.83<br> &nbsp; &nbsp;  1 10.0.0.81<br> &nbsp; &nbsp;  1 10.0.0.75<br> &nbsp; &nbsp;  1 10.0.0.71<br> &nbsp; &nbsp;  1 10.0.0.63<br> &nbsp; &nbsp;  1 10.0.0.52<br> &nbsp; &nbsp;  1 10.0.0.47<br> &nbsp; &nbsp;  1 10.0.0.46<br> &nbsp; &nbsp;  1 10.0.0.4<br> &nbsp; &nbsp;  1 10.0.0.39<br> &nbsp; &nbsp;  1 10.0.0.38<br> &nbsp; &nbsp;  1 10.0.0.35<br> &nbsp; &nbsp;  1 10.0.0.32<br> &nbsp; &nbsp;  1 10.0.0.30<br> &nbsp; &nbsp;  1 10.0.0.27<br> &nbsp; &nbsp;  1 10.0.0.22<br> &nbsp; &nbsp;  1 10.0.0.2<br> &nbsp; &nbsp;  1 10.0.0.19<br> &nbsp; &nbsp;  1 10.0.0.16<br> &nbsp; &nbsp;  1 10.0.0.12<br> &nbsp; &nbsp;  1 10.0.0.11<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">student@e7aa93e73df9:\/opt\/tasks$ cd task6_authlog\/<br>student@e7aa93e73df9:\/opt\/tasks\/task6_authlog$ .\/check <br>Your task: Analyze the SSH log and identify the IP address that attempted unauthorized access to the system.<br>Instructions:<br>- The log file is located at: \/var\/log\/auth.log<br>- Use tools like grep, awk, cut, sort, uniq to assist your investigation.<br>- Once identified, report the offending IP address (we will auto-check your result).<br>\u200b<br>Please enter the suspicious IP: 45.33.32.156<br>Correct! Flag: flag{974a2f109cf727e5bfe85d6293c9c800}.<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Task7: Git\u4f7f\u7528<\/h2>\n\n\n\n<p>\u53ea\u7528\u505a\u4e94\u9053remote\u5bf9\u5e94\u7684\u5173\u5361<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">remoteAdvance1<\/h3>\n\n\n\n<p>\u5177\u4f53\u4efb\u52a1\u662f\u628a\u4e09\u4e2a\u7279\u6027\u5206\u652f side1 side2 \u548c side3 \u6309\u987a\u5e8f\u63a8\u9001\u5230\u8fdc\u7a0b\u4ed3\u5e93\uff0c\u90a3\u4e48\u6211\u4eec\u53ea\u9700\u8981\u7528git rebase\u4f9d\u6b21\u628a\u5f53\u524d\u76ee\u6807\u63a8\u9001\u5230\u6700\u65b0\u63d0\u4ea4\u4e0a\u5373\u53ef\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250726-005229-25-11.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250726-005229-25-11.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\"\/><\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">remoteAdvance2<\/h3>\n\n\n\n<p>\u8fd9\u4e00\u5173\u7684\u4efb\u52a1\u548c\u4e0a\u4e00\u5173\u7c7b\u4f3c\uff0c\u53ea\u662f\u9700\u8981\u6211\u4eec\u7528merge\u5b9e\u73b0\uff0c\u90a3\u7167\u732b\u753b\u864e\u5373\u53ef\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250726-005420-25-12.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250726-005420-25-12.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\"\/><\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">remoteAdvance3<\/h3>\n\n\n\n<p>\u8fd9\u4e00\u5173\u9700\u8981\u6211\u4eec\u5728\u4e0d\u5207\u6362\u5230 <code>main<\/code> \u5206\u652f\u7684\u60c5\u51b5\u4e0b\u5c06\u5de5\u4f5c\u63a8\u9001\u5230\u7684\u8fdc\u7a0b\u4ed3\u5e93\u4e2d\u7684 <code>main<\/code> \u5206\u652f\u4e0a<\/p>\n\n\n\n<p>\u9996\u5148\u7528<code>git checkout -b side o\/main<\/code>\u57fa\u4e8e\u8fdc\u7a0b\u5206\u652f <code>o\/main<\/code> \u521b\u5efa\u5e76\u5207\u6362\u5230\u4e00\u4e2a\u65b0\u5206\u652f <code>side<\/code>\uff0c\u63a5\u7740<code>git commit<\/code>\u4e00\u4e0b\u63a8\u9001\u66f4\u65b0\uff0c\u7136\u540e\u7528<code>git pull --rebase<\/code>\u4ece\u8fdc\u7a0b\u5f53\u524d\u5206\u652f\u62c9\u53d6\u66f4\u65b0\uff0c\u6700\u540e\u7528<code>git push<\/code>\u5c06\u672c\u5730\u5206\u652f\u63a8\u9001\u5230\u8fdc\u7a0b<\/p>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250726-005622-25-13.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250726-005622-25-13.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\"\/><\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">remoteAdvance4<\/h3>\n\n\n\n<p>\u8fd9\u5173\u9700\u8981\u66f4\u65b0\u8fdc\u7a0b\u4ed3\u5e93\u4e2d\u7684 <code>foo<\/code> \u548c <code>main<\/code>, \u4f46\u662f <code>git checkout<\/code> \u88ab\u7981\u7528\u4e86\uff0c\u5c31\u7528git push origin xx\u66f4\u65b0\u4e00\u4e0b\u5373\u53ef<\/p>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250726-005724-25-14.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250726-005724-25-14.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\"\/><\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">remoteAdvance5<\/h3>\n\n\n\n<p>\u5148<code>git push origin foo:main<\/code>\u518d<code>git push main^:foo<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250726-010039-25-15.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250726-010039-25-15.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\"\/><\/div><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250726-010425-25-16.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/fushuling-1309926051.cos.ap-shanghai.myqcloud.com\/2025\/07\/QQ20250726-010425-25-16.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\"\/><\/div><\/figure>\n\n\n\n<p>flag{SUaQ9KmX3xbkFQYaspeCYvS7}<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4efb\u52a1\u8bf4\u660e \u9009\u62e9\u586b\u7a7a \u4ee5\u4e0b\u54ea\u4e9b\u573a\u666f\u5fc5\u987b\u4f7f\u7528sudo: \u7b54\u6848 2, 3, 4 \u89e3\u91ca \u8fd1\u65e5\uff0c\u67d0\u670d\u52a1\u5668\u906d\u5230\u6076\u610f\u6316\u77ff\u653b\u51fb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-3928","post","type-post","status-publish","format-standard","hentry","category-lab"],"_links":{"self":[{"href":"https:\/\/fushuling.com\/index.php\/wp-json\/wp\/v2\/posts\/3928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fushuling.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fushuling.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fushuling.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fushuling.com\/index.php\/wp-json\/wp\/v2\/comments?post=3928"}],"version-history":[{"count":1,"href":"https:\/\/fushuling.com\/index.php\/wp-json\/wp\/v2\/posts\/3928\/revisions"}],"predecessor-version":[{"id":3929,"href":"https:\/\/fushuling.com\/index.php\/wp-json\/wp\/v2\/posts\/3928\/revisions\/3929"}],"wp:attachment":[{"href":"https:\/\/fushuling.com\/index.php\/wp-json\/wp\/v2\/media?parent=3928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fushuling.com\/index.php\/wp-json\/wp\/v2\/categories?post=3928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fushuling.com\/index.php\/wp-json\/wp\/v2\/tags?post=3928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}