{"id":268554,"date":"2023-03-29T20:05:12","date_gmt":"2023-03-29T12:05:12","guid":{"rendered":"https:\/\/lrxjmw.cn\/lhmcxjcxtlsb.html"},"modified":"2023-03-29T20:05:12","modified_gmt":"2023-03-29T12:05:12","slug":"lhmcxjcxtlsb","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lhmcxjcxtlsb.html","title":{"rendered":"linux\u540e\u95e8\u7a0b\u5e8f \u68c0\u67e5\u7cfb\u7edf\uff08Linux\uff09\u662f\u4e0d\u662f\u88ab\u9ed1\uff0c\u5176\u590d\u6742\u7a0b\u5ea6\u4e3b\u8981\u53d6\u51b3\u4e8e\u5165\u4fb5\u8005"},"content":{"rendered":"
\u5b89\u5168\u7c7b\u95ee\u9898>linuxCentOS\u68c0\u6d4b\u89c1\u4fa7\u95e8\u7a0b\u5e8f\u7684shell<\/p>\n
linuxCentOS\u68c0\u6d4b\u89c1\u4fa7\u95e8\u7a0b\u5e8f\u7684shell<\/p>\n
\u901a\u5e38\u4fa7\u95e8\u7a0b\u5e8f\uff0c\u5728ps\u7b49\u8fdb\u7a0b\u67e5\u770b\u5de5\u5177\u91cc\u627e\u4e0d\u5230\uff0c\u7531\u4e8e\u8fd9\u79cd\u5e38\u7528\u5de5\u5177\u751a\u81f3\u7cfb\u7edf<\/a>\u5e93\u5728\u7cfb\u7edf\u88ab\u5165\u4fb5\u4ee5\u540e\u57fa\u672c\u4e0a\u65e9\u5df2\u88ab\u52a8\u8fc7\u56db\u80a2\uff08\u7f51\u4e0a\u7559\u4f20\u7740\u5927\u91cf\u7684rootkit\u3002\u5982\u679c\u662f\u5185\u6838\u7ea7\u7684\u6728\u9a6c\uff0c\u8fd9\u4e48\u8be5\u6280\u5de7\u5c31\u65e0\u6548\u4e86\uff09\u3002<\/p>\n \u7531\u4e8e\u66f4\u6539\u7cfb\u7edf\u5185\u6838\u76f8\u5bf9\u590d\u6742\uff08\u5982\u679c\u5185\u6838\u88ab\u66f4\u6539\u8fc7linux \u4e0b\u8f7d\u5de5\u5177\uff0c\u6216\u5219\u662f\u5185\u6838\u7ea7\u7684\u6728\u9a6c\uff0c\u5c31\u66f4\u96be\u53d1\u89c9\u4e86\uff09linux\u540e\u95e8\u7a0b\u5e8f<\/strong>\uff0c\u6240\u4ee5\u5728\/proc\u4e0b\uff0c\u57fa\u672c\u4e0a\u8fd8\u90fd\u53ef\u4ee5\u627e\u5230\u6728\u9a6c\u7684\u75d5\u8ff9\u3002<\/p>\n \u601d\u8def\uff1a<\/p>\n \u5728\/proc\u4e2d\u5b58\u5728\u7684\u8fdb\u7a0bIDlinux\u540e\u95e8\u7a0b\u5e8f<\/strong>\uff0c\u5728ps\u4e2d\u67e5\u770b\u4e0d\u5230\uff08\u88ab\u9690\u85cf\uff09\uff0c\u5fc5\u6709\u95ee\u9898\u3002<\/p>\n #!\/bin\/bash<\/p>\n str_pids=\"`ps-A|awk'{print$1}'`\";<\/p>\n foriin\/proc\/[[:digit:]]*;<\/p>\n do<\/p>\n ifecho\"$str_pids\"|grep-qs`basename\"$i\"`;<\/p>\n then<\/p>\n :<\/p>\n else<\/p>\n <\/p>\n echo\"Rootkit'sPID:$(basename\"$i\")\";<\/p>\n fi<\/p>\n done<\/p>\n <\/p>\n \u8ba8\u8bba\uff1a<\/p>\n