Results 1 to 7 of 7
-
28th Oct 2011, 10:27 AM #1OPMember
Secure your server against PHP Shells
Add this code in php.ini to protect your server agaist PHP shells execution.
Code:disable_functions = php_uname, getmyuid, getmypid, passthru, leak, listen, diskfreespace, tmpfile, link, ignore_user_abord, shell_exec, dl, set_time_limit, exec, system, highlight_file, source, show_source, fpaththru, virtual, posix_ctermid, posix_getcwd, posix_getegid, posix_geteuid, posix_getgid, posix_getgrgid, posix_getgrnam, posix_getgroups, posix_getlogin, posix_getpgid, posix_getpgrp, posix_getpid, posix, _getppid, posix_getpwnam, posix_getpwuid, posix_getrlimit, posix_getsid, posix_getuid, posix_isatty, posix_kill, posix_mkfifo, posix_setegid, posix_seteuid, posix_setgid, posix_setpgid, posix_setsid, posix_setuid, posix_times, posix_ttyname, posix_uname, proc_open, proc_close, proc_get_status, proc_nice, proc_terminate, phpinfo,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open, ini_alter,dl,popen,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error, socket_close,socket_connect safe_mode = On register_globals = Off display_errors = Off allow_url_fopen = Off allow_url_include = Off enable open_basedir(set it to webroot path)
Kw3rLn Reviewed by Kw3rLn on . Secure your server against PHP Shells Add this code in php.ini to protect your server agaist PHP shells execution. disable_functions = php_uname, getmyuid, getmypid, passthru, leak, listen, diskfreespace, tmpfile, link, ignore_user_abord, shell_exec, dl, set_time_limit, exec, system, highlight_file, source, show_source, fpaththru, virtual, posix_ctermid, posix_getcwd, posix_getegid, posix_geteuid, posix_getgid, posix_getgrgid, posix_getgrnam, posix_getgroups, posix_getlogin, posix_getpgid, posix_getpgrp, posix_getpid, posix, Rating: 5
-
28th Oct 2011, 11:21 AM #2MemberWebsite's:
srdelta.comWhat IS PHP Sell Is This Like DDoS ?
-
28th Oct 2011, 12:27 PM #3OPMember
You can easily upload and install a shell lol. Here is the definition:
PHP Shell is a shell wrapped in a PHP script. It's a tool you can use to execute arbitrary shell-commands or browse the filesystem on your remote webserver. This replaces, to a degree, a normal telnet connection, and to a lesser degree a SSH connection.
You use it for administration and maintenance of your website, which is often much easier to do if you can work directly on the server. For example, you could use PHP Shell to unpack and move big files around. All the normal command line programs like ps, free, du, df, etc can be used.
-
28th Oct 2011, 02:20 PM #4Member
To be honest that's a ridiculous amount of functions to disable, do you even know what each function does? on that note, you've just added aload for it to disable but the major ones have been left out..
My general list to disable:
disable_functions = "system, show_source, passthru, dl, symlink, exec, shell_exec, allow_url_fopen, popen, pclose, proc_open, proc_close, ini_set, ini_restore"
-
28th Oct 2011, 05:00 PM #5Member
can't block using .htaccess file?
-
28th Oct 2011, 05:52 PM #6Banned
quit hard to understand
im a php newbie
-
28th Oct 2011, 05:54 PM #7OH GOD!!!!!Website's:
HotNewHipHop.com
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Secure a server?
By GeeZus in forum Hosting DiscussionReplies: 16Last Post: 27th Mar 2012, 04:39 AM -
Secure a server?
By Jesshost in forum Hosting DiscussionReplies: 3Last Post: 11th Aug 2011, 07:21 PM -
Netherlands Upload Server - Secure?
By ph0g in forum File Host DiscussionReplies: 0Last Post: 6th Jun 2011, 07:59 PM -
[Shared] Cheap OFF-shore host, PHP shells is blocked, secure as hell!
By iKnow in forum ArchiveReplies: 6Last Post: 14th Jun 2009, 12:33 AM -
[Shared] Cheap OFF-shore host, PHP shells is blocked, secure as hell!
By iKnow in forum ArchiveReplies: 4Last Post: 22nd May 2009, 10:09 AM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...