Showing posts with label local atack. Show all posts
Showing posts with label local atack. Show all posts

Monday, May 26, 2014

Hướng dẫn chống hack local atack

Hướng dẫn chống hack local (rất hiệu quả)(Apache web server)





Các bạn mở file "php.ini" trong pico editor 
[ pico /usr/local/lib/php.ini ]

1- tìm "safe_mode" [ Ctrl + W and type "safe_mode" ] đổi Off thành On 

 [ "safe_mode = Off" to "safe_mode = On" ]

2- tìm "disabled_functions" [ Ctrl + W and type "disabled_functions" ] và add theo functions

[system, exec, shell_exec, passthru, pcntl_exec, putenv, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, popen, pclose, set_time_limit, ini_alter, virtual, openlog, escapeshellcmd, escapeshellarg, dl, curl_exec, parse_ini_file, show_source]

3- Sau đó save lại  [ Ctrl + X then Y ] retart lại Apache web server [ /etc/init.d/httpd restart ]

Xong ! chú ý nên backup php.ini trước.