Categories Menu
Repair Center
24 hours online support we repair all types of laptops and relating to LCD screen,motherboard, DC adapter, power supplies and so much more! The shop reliable laptop repair in Ottawa area since 1995. Repair your laptop as easy as 1-2-3 !
computer_25
Services for your location
Tips to defend PHP Trojan attack effectively
print
report error
add to favorites
write a review
send to friends
suggest a topic
register

1. Defend to jump out web catalog
 First modify httpd.conf, if you only allow operating your php script in web catalog, you could modify httpd.conf file to resist php operation path. e.g. your web catalog is /usr/local/apache/htdocs, then you just need to add the line in httpd.conf:
php_admin_value open_basedir /usr/local/apache/htdocs
In this case, operations like the script reads files out of the catalog /usr/local/apache/htdocs are not allowed. If you mistake to open, error would prompt:
 Warning: open_basedir restriction in effect. File is in wrong directory in 
  /usr/local/apache/htdocs/open.php on line 4
2. Defend php Trojan to execute webshell
Open safe_mode, set the file php.ini:
disable_functions= passthru,exec,shell_exec,system , you can choose one of them or both.
3. Defend php Trojan to read/write file catalog
In php.ini, disable_functions= passthru,exec,shell_exec,system
Add php process file function behind.
Mainly:
fopen,mkdir,rmdir,chmod,unlink,dir 
  fopen,fread,fclose,fwrite,file_exists 
  closedir,is_dir,readdir.opendir 
  fileperms.copy,unlink,delfile
become to:
disable_functions= passthru,exec,shell_exec,system,fopen,mkdir,rmdi

prev
1
Other newly Articles from the Security and BIOS updates - Anti-virus /anti-Spyware Category:
  1. Fix an Unbootable Windows XP or Vista, Remove Boot Virus from Startup
  2. Solved: Trojan named AppInit.dll
  3. 10 Twitter Safety Tips To Protect Your Account & Identity
  4. Tips to defend PHP Trojan attack effectively
  5. How to Secure Your PC from Hackers, Virus and other Online Threats
  6. Kill viruses under Windows safe mode
  7. Remove Antivirus Soft. Description and removal instructions
  8. Google Hijack Virus - How to Remove the Google Hijack Virus
  9. AppInit Dlls - How do I remove a resident .dll? Help!
  10. Enable or Disable UAC From the Windows 7 / Vista Command Line
  11. How To Remove Security Tool and other Rogue/Fake Antivirus Malware
  12. Fix an Unbootable Windows XP or Vista, Remove Boot Virus from Startup
  13. How to kill the running exe and dll viruses?
  14. Solution for the virus drwtsn32.exe
  15. Check up
Custom Search
Examples: HP,laptop Rapair,LCD,DC Backlight,Inverter,solder
Article Comment:Replies(501)Views
Name(required):        Email(required):  
Verify: key
Use the above information at your own risk
Loading ... Loading ...