{"id":3372,"date":"2019-06-22T16:48:36","date_gmt":"2019-06-22T08:48:36","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3372"},"modified":"2022-05-27T15:55:49","modified_gmt":"2022-05-27T07:55:49","slug":"exec","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/exec","title":{"rendered":"exec\u547d\u4ee4 – \u8c03\u7528\u5e76\u6267\u884c\u6307\u5b9a\u7684\u547d\u4ee4"},"content":{"rendered":"\n

exec\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u5355\u8bcdexecute\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u8c03\u7528\u5e76\u6267\u884c\u6307\u5b9a\u7684\u547d\u4ee4\uff0c\u4ea6\u53ef\u5c06\u524d\u4e00\u4e2a\u547d\u4ee4\u7684\u8f93\u51fa\u7ed3\u679c\u4f5c\u4e3a\u540e\u4e00\u4e2a\u547d\u4ee4\u7684\u6807\u51c6\u8f93\u5165\u503c\u8fdb\u884c\u4e8c\u6b21\u5904\u7406\uff0c\u529f\u80fd\u7c7b\u4f3c\u4e8e\u7ba1\u9053\u7b26\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>exec [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-c<\/td>\u6267\u884c\u6307\u5b9a\u7684\u547d\u4ee4<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u8c03\u7528\u5e76\u6267\u884c\u6307\u5b9a\u7684\u547d\u4ee4\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# exec -c reboot<\/strong><\/pre>\n\n\n\n

\u7ed3\u5408\u6587\u4ef6\u641c\u7d22\u547d\u4ee4\uff0c\u627e\u5230\u6240\u6709\u5c5e\u4e8e\u67d0\u4e2a\u7528\u6237\u7684\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u590d\u5236\u5230\u6307\u5b9a\u76ee\u5f55\u4e2d\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# find \/ -user linuxprobe -exec cp -Ra {} \/findfiles \\; <\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"

exec\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u5355\u8bcdexecute\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u8c03\u7528\u5e76\u6267\u884c\u6307\u5b9a\u7684\u547d\u4ee4\uff0c\u4ea6\u53ef\u5c06\u524d\u4e00\u4e2a\u547d\u4ee4\u7684\u8f93\u51fa\u7ed3\u679c\u4f5c […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3372"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=3372"}],"version-history":[{"count":8,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3372\/revisions"}],"predecessor-version":[{"id":10128,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3372\/revisions\/10128"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}