Skip to content

Commit

Permalink
fix: detect-viruses, add php_files_excluded
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Jul 11, 2017
1 parent 2bf2f46 commit 0d166c5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 13 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,19 @@ server_scripts_domains_check_dns: "8.8.8.8"
server_scripts_domains_assert_ip: "your_server_ip"

server_scripts_detect_viruses_log: "{{ server_scripts_logs_base_path }}/detect-viruses.log"
server_scripts_detect_viruses_php_signatures: 'eval(base64_decode\|eval(stripslashes\|FilesMan\|WSO_VERSION\|\$sF=\"PCT4BA6ODSE_\"\|\$qV=\"stop_\"\|=chr('
server_scripts_detect_viruses_php_signatures:
- 'eval(base64_decode'
- 'eval(stripslashes'
- 'FilesMan'
- 'WSO_VERSION'
- '\$sF=\"PCT4BA6ODSE_\"'
- '\$qV=\"stop_\"'
- '=chr('
- '\.chr(101'
- 'b374k'
- "'base'\\.(32\\*"
server_scripts_detect_viruses_php_signatures_excluded: "filesManag"
server_scripts_detect_viruses_php_files_excluded: 'easy-captcha.php\|tfpdf.php'
server_scripts_detect_viruses_js_signatures: "document.write(unescape"

server_scripts_drupal_build_archives_projects_root: /usr/local/drupal
Expand Down
4 changes: 3 additions & 1 deletion templates/server-scripts.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ DOMAINS_CHECK_ASSERT_IP="{{ server_scripts_domains_assert_ip }}"

# detect-viruses
VIRUSES_LOG="{{ server_scripts_detect_viruses_log }}"
VIRUSES_PHP_SIGNATURES="{{ server_scripts_detect_viruses_php_signatures }}"
VIRUSES_PHP_SIGNATURES="{{ server_scripts_detect_viruses_php_signatures | join('\|') }}"
VIRUSES_PHP_SIGNATURES_EXCLUDED="{{ server_scripts_detect_viruses_php_signatures_excluded }}"
VIRUSES_PHP_FILES_EXCLUDED="{{ server_scripts_detect_viruses_php_files_excluded }}"
VIRUSES_JS_SIGNATURES="{{ server_scripts_detect_viruses_js_signatures }}"

# drupal-build-archives
Expand Down

0 comments on commit 0d166c5

Please sign in to comment.