![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 81 Pomógł: 0 Dołączył: 4.08.2003 Ostrzeżenie: (0%) ![]() ![]() |
Jak wykonac skrypt napisany w bashu z poziomu php/ (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) Normalne programy typu iptables po nadaniu praw suid wykonuje
[php:1:d4390296fa] <? exec("iptables -t nat -nL"); ?> [/php:1:d4390296fa] w ten sposob ale sposob ten nie dziala gdy sie chce wykonac skrypt bashowy. Czy ktos moze mnial juz z czyms takim stycznosc (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 691 Pomógł: 0 Dołączył: 6.08.2003 Ostrzeżenie: (0%) ![]() ![]() |
Cytat Jak wykonac skrypt napisany w bashu z poziomu php/ (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) Normalne programy typu iptables po nadaniu praw suid wykonuje
[php:1:d3c49376e2] <? exec("iptables -t nat -nL"); ?> [/php:1:d3c49376e2] w ten sposob ale sposob ten nie dziala gdy sie chce wykonac skrypt bashowy. Czy ktos moze mnial juz z czyms takim stycznosc (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) Założenie suida skryptom nic nie daje. Jeśli bardzo chcesz w ten sposób uruchamiać zewnętrzne suidowe skrypty (choć to bardzo nie polecane) musisz użyć binarnego wrappera. |
|
|
![]() ![]() |
![]() |
Aktualny czas: 27.09.2025 - 15:34 |