Genellikle Server Sahibi olan arkadaşlarımızın dert olarak gördüğü C99 ve R57 TARZI Shell Scriptleri Nasıl Engelleyebiliriz?
c99 ve r57 shell lerini çalıştırmasını istemiyorum?
Öncellikle root olarak servera giriş yap
----------------------------------------------------
Putty Download ;
http://the.earth.li/~sgtatham/putty/.../x86/putty.exe
------------------------------------------------------
pico /etc/php.ini yada php ayar dosyasını pico yada nano komutuyla acıyoruz..
disable_function satırının karşısına bunları ekliyoruz ;
system,passthru,exec,popen,proc_close,proc_get_sta tus,proc_nice,proc_open,
allow_url_fopen,shell,shellexec,execute
disable_functions = system,passthru,exec,popen,proc_close,proc_get_sta tus,proc_nice,proc_open,
allow_url_fopen,shell,shellexec,execute
"ctrl+x yapıp kaydet ardından"
service htttpd restart yapıyoruz.
yalnız bu fonksiyonlar disable yapıldıgında bi cok script serverinda çalışmıcaktır ama shell deki cat ve bir çok komut’ta çalışmayacaktır.
c99 ve r57 shell lerini çalıştırmasını istemiyorum?
Öncellikle root olarak servera giriş yap
----------------------------------------------------
Putty Download ;
http://the.earth.li/~sgtatham/putty/.../x86/putty.exe
------------------------------------------------------
pico /etc/php.ini yada php ayar dosyasını pico yada nano komutuyla acıyoruz..
disable_function satırının karşısına bunları ekliyoruz ;
system,passthru,exec,popen,proc_close,proc_get_sta tus,proc_nice,proc_open,
allow_url_fopen,shell,shellexec,execute
disable_functions = system,passthru,exec,popen,proc_close,proc_get_sta tus,proc_nice,proc_open,
allow_url_fopen,shell,shellexec,execute
"ctrl+x yapıp kaydet ardından"
service htttpd restart yapıyoruz.
yalnız bu fonksiyonlar disable yapıldıgında bi cok script serverinda çalışmıcaktır ama shell deki cat ve bir çok komut’ta çalışmayacaktır.