PDA

Orijinalini görmek için tıklayınız : Sunucu Güvenliği için disable_functions ayarları



donjuanhose81
07.Nisan.2015, 07:35
disable_functions ayarlarını yaparak sunucu güvenliği için ilk adımı atabilirsiniz.


ssh tan


pico /usr/local/lib/php.ini




komutu girip php.ini dosyasından disable_functions satırını aşağıdaki ile değiştirin.


disable_functions = foreach, glob, openbasedir, posix_getpwuid, f_open, system,dl, array_compare, array_user_key_compare, passthru, cat, exec, popen, proc_close, proc_get_status, proc_nice, proc_open, escapeshellcmd, escapeshellarg, show_source, posix_mkfifo, ini_restore, mysql_list_dbs, get_current_user, getmyuid, pconnect, link, symlink, fin, passthruexec, fileread, shell_exec, pcntl_exec, ini_alter, parse_ini_file, leak, apache_child_terminate, chown, posix_kill, posix_setpgid, posix_setsid, posix_setuid, proc_terminate, syslog, allow_url_fopen, fpassthru, execute, shell, curl_exec, chgrp, stream_select, passthru, socket_select, socket_create, socket_create_listen, socket_create_pair, socket_listen, socket_accept, socket_bind, socket_strerror, pcntl_fork, pcntl_signal, pcntl_waitpid, pcntl_wexitstatus, pcntl_wifexited, pcntl_wifsignaled, pcntl_wifstopped, pcntl_wstopsig, pcntl_wtermsig, openlog, apache_get_modules, apache_get_version, apache_getenv, apache_note, apache_setenv, virtual




Yukarı da verdiklerim fazlasıyla olabilir, eğer kullandığınız scripte göre daha fazla sorun alıyorsanız aşağıdakileri kullanmanız da yeterli olacaktır


dl,hopenbasedir,mysql_list_dbs,get_current_user,sy mlink,ini_restore,restore_ini,system,shell_exec,pa ssthru

crazywebbers
18.Nisan.2015, 21:41
tabi bunları yaptıgınızda bazı uygulamalar calişmaz
bununda bilgsiini verebiliriz