{"id":8226,"date":"2024-06-18T11:01:01","date_gmt":"2024-06-18T03:01:01","guid":{"rendered":""},"modified":"2024-06-18T11:01:01","modified_gmt":"2024-06-18T03:01:01","slug":"\u5229\u7528shell\u52ab\u6301_\u7528sudo\u63d0\u793a\u627e\u4e0d\u5230\u547d\u4ee4","status":"publish","type":"post","link":"https:\/\/mushiming.com\/8226.html","title":{"rendered":"\u5229\u7528shell\u52ab\u6301_\u7528sudo\u63d0\u793a\u627e\u4e0d\u5230\u547d\u4ee4"},"content":{"rendered":"

        Impost3r\u662f\u4e00\u6b3e\u9488\u5bf9Linux\u5e73\u53f0\u7684\u5bc6\u7801\u7a83\u53d6\u5de5\u5177\uff0c\u8be5\u5de5\u5177\u91c7\u53ef\u4ee5\u5728linux\u7cfb\u7edf\u7684\u666e\u901a\u7528\u6237\u6743\u9650\u4e0b\u5236\u9020\u6c34\u5751\uff0c\u4ece\u76ee\u6807Linux\u4e3b\u673a\u4e2d\u83b7\u53d6\u5404\u7c7b\u5bc6\u7801\u5982ssh\u3001su\u3001sudo\u7b49\u3002 \u8f6f\u4ef6\u4f7f\u7528 C \u8bed\u8a00\u7f16\u5199\uff0c\u53ef\u4ee5\u5728\u7a83\u53d6\u5bc6\u7801\u540e\u81ea\u52a8\u4fdd\u5b58\u6e05\u7406\u7a83\u53d6\u75d5\u8ff9\uff0c\u6700\u5927\u7a0b\u5ea6\u4e0a\u8ba9\u88ab\u653b\u51fb\u8005\u65e0\u6cd5\u5bdf\u89c9\u5f02\u5e38\u3002<\/p>\n

\u5de5\u5177\u94fe\u63a5\uff1ahttps:\/\/github.com\/ph4ntonn\/Impost3r<\/p>\n

\u66f4\u6539.bashrc\u6587\u4ef6<\/h4>\n

        \u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8be5\u5de5\u5177\u7a83\u53d6sudo\u5bc6\u7801\uff0c\u5148\u5047\u8bbe\u6211\u4eec\u5df2\u7ecf\u83b7\u53d6\u4e86\u4e00\u53f0Linux\u670d\u52a1\u5668\u7684\u666e\u901a\u7528\u6237\u6743\u9650\uff0c\u6211\u4eec\u53ef\u7591\u901a\u8fc7\u5bf9sudo\u547d\u4ee4\u52ab\u6301\u6765\u5b9e\u73b0sudo\u5bc6\u7801\u7684\u7a83\u53d6\u3002\u9996\u5148\u6211\u4eec\u9700\u8981\u5bf9\u7528\u6237\u76ee\u5f55\u4e0b\u7684.bashrc\u6587\u4ef6\u8fdb\u884c\u914d\u7f6e\uff0c\u4f7f\u5176\u5728\u6267\u884csudo\u547d\u4ee4\u65f6\u4f1a\u8c03\u7528\u6211\u4eec\u4e0b\u6587\u4e2d\u5bf9\u6e90\u7801\u7f16\u8bd1\u5b8c\u6210\u7684.impost3rmo\u6a21\u5757\u6587\u4ef6\u5e76\u6ce8\u5165\u8be5\u8fdb\u7a0b\u52ab\u6301\u5bc6\u7801\u3002<\/p>\n

\"\u5229\u7528shell\u52ab\u6301_\u7528sudo\u63d0\u793a\u627e\u4e0d\u5230\u547d\u4ee4<\/p>\n

        \u7136\u540e\u6211\u4eec\u518d\u5bf9\u8be5\u6e90\u7801\u4e2d\u7684sudo\u6a21\u5757\u4e0b\u7684main.h\u5934\u6587\u4ef6\u8fdb\u884c\u7b80\u5355\u7684\u8c03\u914d\u3002\u9996\u5148\u5c06\u5176\u6240\u8c03\u7528\u7684\u6587\u4ef6\u6307\u5411tmp\u76ee\u5f55\u4e0b\u7684.impost3r\u6587\u4ef6\u3002\u540c\u65f6\u6211\u4eec\u4e5f\u53ef\u4ee5\u901a\u8fc7\u5bf9define SAVE _OR _SEND \u53c2\u6570\u7684\u914d\u7f6e\u6765\u8bbe\u7f6e\u7a83\u53d6\u6210\u529f\u540e\u662f\u5c06\u7ed3\u679c\u4fdd\u5b58\u5728\u9776\u673a\u8fd8\u662f\u901a\u8fc7dns\u94fe\u63a5\u8fd4\u56de\u5230\u653b\u51fb\u673a\u4e0a\uff0c\u8fd9\u91cc\u6211\u8bbe\u7f6e\u7684\u662f\u5c06\u83b7\u53d6\u7684\u51ed\u636e\u4fdd\u5b58\u5728\u9776\u673a\u4e0a\u3002<\/p>\n

\u7f16\u8bd1\u751f\u6210impost3r<\/h4>\n

\"\u5229\u7528shell\u52ab\u6301_\u7528sudo\u63d0\u793a\u627e\u4e0d\u5230\u547d\u4ee4<\/p>\n

\"\u5229\u7528shell\u52ab\u6301_\u7528sudo\u63d0\u793a\u627e\u4e0d\u5230\u547d\u4ee4<\/p>\n

        \u53c2\u6570\u914d\u7f6e\u5b8c\u6210\u540e\u6211\u4eec\u5c31\u53ef\u4ee5\u5bf9sudo\u6a21\u5757\u8fdb\u884c\u7f16\u8bd1\u751f\u6210.impost3r\u6587\u4ef6\u5e76\u5c06\u5176\u590d\u5236\u5230tmp\u76ee\u5f55\u4e0b\u3002<\/p>\n

\"\u5229\u7528shell\u52ab\u6301_\u7528sudo\u63d0\u793a\u627e\u4e0d\u5230\u547d\u4ee4 <\/p>\n

\u666e\u901a\u7528\u6237\u6d4b\u8bd5\uff08\u51ed\u636e\u53ef\u7528\u4e8e\u63d0\u6743\uff09<\/h4>\n

        \u8fd9\u91cc\u6211\u91cd\u65b0\u5f00\u4e86\u4e00\u4e2a\u666e\u901a\u7528\u6237\u6743\u9650\u7684\u7a97\u53e3\u6267\u884c\u4e00\u4e2asudo\u547d\u4ee4\u6765\u8fdb\u884c\u6d4b\u8bd5\u3002<\/p>\n

\"\u5229\u7528shell\u52ab\u6301_\u7528sudo\u63d0\u793a\u627e\u4e0d\u5230\u547d\u4ee4<\/p>\n

       \u547d\u4ee4\u6267\u884c\u5b8c\u6210\u4e4b\u540e\u5728\u9776\u673a\u7684tmp\u76ee\u5f55\u4e0b\u751f\u6210\u4e86.cache\u6587\u4ef6\uff0c\u8be5\u6587\u4ef6\u5185\u5bb9\u4e2d\u4fdd\u5b58\u4e86\u6211\u4eec\u8f93\u5165\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u5e76\u4e14\u4f1a\u8bb0\u5f55\u4e0b\u8eab\u4efd\u9a8c\u8bc1\u7684\u7ed3\u679c\u662f\u5426\u6b63\u786e\u3002<\/p>\n

\"\u5229\u7528shell\u52ab\u6301_\u7528sudo\u63d0\u793a\u627e\u4e0d\u5230\u547d\u4ee4<\/p>\n

\"\u5229\u7528shell\u52ab\u6301_\u7528sudo\u63d0\u793a\u627e\u4e0d\u5230\u547d\u4ee4<\/p>\n

\u68c0\u6d4b\u65b9\u5f0f<\/h4>\n

        \u901a\u8fc7Linux\u5b89\u5168\u5ba1\u6838audit\u65e5\u5fd7\u8bb0\u5f55\u4e0b\u4e86\u540c\u4e00\u8fdb\u7a0bid\u52a0\u8f7d\u4e0d\u540c\u8fdb\u7a0b\u7684\u884c\u4e3a\u3002\u8be5\u5de5\u5177\u5728\u7a83\u53d6\u5230\u51ed\u636e\u540e\u8fd8\u4f1a\u8fdb\u884c\u75d5\u8ff9\u6e05\u7406\u7684\u884c\u4e3a\u4e5f\u53ef\u4ee5\u901a\u8fc7\u68c0\u6d4b.bashrc\u6587\u4ef6\u7684\u8986\u76d6\u884c\u4e3a\u4ee5\u53caimpost3r\u7684\u5220\u9664\u884c\u4e3a\u6765\u8fdb\u884c\u68c0\u6d4b\u3002<\/p>\n

\"\u5229\u7528shell\u52ab\u6301_\u7528sudo\u63d0\u793a\u627e\u4e0d\u5230\u547d\u4ee4<\/p>\n","protected":false},"excerpt":{"rendered":"\u5229\u7528shell\u52ab\u6301_\u7528sudo\u63d0\u793a\u627e\u4e0d\u5230\u547d\u4ee4Impost3r\u662f\u4e00\u6b3e\u9488\u5bf9Linux\u5e73\u53f0\u7684\u5bc6\u7801\u7a83\u53d6\u5de5\u5177\uff0c\u8be5\u5de5\u5177\u91c7\u53ef\u4ee5\u5728linux\u7cfb\u7edf\u7684\u666e\u901a\u7528\u6237\u6743\u9650\u4e0b...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8226"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=8226"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8226\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=8226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=8226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=8226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}