{"id":624,"date":"2013-12-09T18:44:05","date_gmt":"2013-12-09T18:44:05","guid":{"rendered":"http:\/\/pingtool.org\/?p=624"},"modified":"2013-12-09T18:46:33","modified_gmt":"2013-12-09T18:46:33","slug":"php-exec-system-calls-working-debian-6","status":"publish","type":"post","link":"https:\/\/pingtool.org\/ru\/php-exec-system-calls-working-debian-6\/","title":{"rendered":"\u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u044b PHP &#8212; exec system \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0432 Debian 6"},"content":{"rendered":"<p>\u041f\u043e\u0441\u043b\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0441\u0430\u0439\u043d\u0430 \u043d\u0430 Debian 6, <strong>\u0432\u044b\u0437\u043e\u0432\u044b PHP exec<\/strong> \u0438 <strong>system<\/strong> \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<br \/>\n\u041f\u0440\u0438\u0447\u0438\u043d\u043e\u0439 \u044d\u0442\u043e\u0433\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043f\u0430\u043a\u0435\u0442 <strong>dash<\/strong> &#171;\u0443\u0441\u043a\u043e\u0440\u044f\u044e\u0449\u0438\u0439&#187; \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0437\u0430\u043c\u0435\u043d\u044f\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0443 <strong>bash<\/strong>:<\/p>\n<p><code><br \/>\n# ls -l \/bin\/sh<br \/>\nlrwxrwxrwx 1 root root 4 Dec  9 20:25 \/bin\/sh -> dash<br \/>\n<\/code><\/p>\n<p>\u0414\u043b\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439, \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432, \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438 bash \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p><code><br \/>\n# dpkg-reconfigure dash<br \/>\n<\/code><\/p>\n<p><a href=\"http:\/\/pingtool.org\/wp-content\/uploads\/2013\/12\/dash.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pingtool.org\/wp-content\/uploads\/2013\/12\/dash.png\" alt=\"dash dpkg-reconfigure debian linux\" title=\"dash\" width=\"520\" height=\"301\" class=\"aligncenter size-full wp-image-629\" \/><\/a><\/p>\n<p>\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043e\u0442\u0432\u0435\u0442 &#171;No&#187; \u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u0441\u0435 \u0432\u044b\u0437\u043e\u0432\u044b \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0431\u0443\u0434\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u0441\u044f <strong>bash<\/strong>.<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p><code><br \/>\n# ls -l \/bin\/sh<br \/>\nlrwxrwxrwx 1 root root 4 Dec  9 20:26 \/bin\/sh -> bash<br \/>\n<\/code><\/p>","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u0441\u043b\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0441\u0430\u0439\u043d\u0430 \u043d\u0430 Debian 6, \u0432\u044b\u0437\u043e\u0432\u044b PHP exec \u0438 system \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c. \u041f\u0440\u0438\u0447\u0438\u043d\u043e\u0439 \u044d\u0442\u043e\u0433\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043f\u0430\u043a\u0435\u0442 dash &#171;\u0443\u0441\u043a\u043e\u0440\u044f\u044e\u0449\u0438\u0439&#187; \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0437\u0430\u043c\u0435\u043d\u044f\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0443 bash: # ls -l \/bin\/sh lrwxrwxrwx 1 root root 4 Dec 9 20:25 \/bin\/sh -> dash &hellip; <a href=\"https:\/\/pingtool.org\/ru\/php-exec-system-calls-working-debian-6\/\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[12],"tags":[41,26],"class_list":["post-624","post","type-post","status-publish","format-standard","hentry","category-linux","tag-bash","tag-linux-2"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/posts\/624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/comments?post=624"}],"version-history":[{"count":9,"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/posts\/624\/revisions"}],"predecessor-version":[{"id":635,"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/posts\/624\/revisions\/635"}],"wp:attachment":[{"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/media?parent=624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/categories?post=624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/tags?post=624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}