這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Upload Scanner

外掛說明

Scan uploaded files with ClamAV or run system commands against uploaded files.  This allows you to integrate third party malware scanners.

This plugin requires either ClamAV or another third-party scanner to be installed.  This plugin will pass uploaded files to the scanner and take appropriate actions based ont he results, but it is not, itself, a malware scanner.

If you have a dedicated server, you can install php-clamav for performance and convenience.

Banner image from Eric Martinenz

螢幕擷圖

  • Options screen.
  • Log viewer.
  • Sample e-mail report.

安裝方式

Automatic installation

  1. Log into your WordPress admin
  2. Click Plugins
  3. Click Add New
  4. Search for Upload Scaner
  5. Click Install Now under “Upload Scanner”
  6. Activate the plugin

Manual installation:

  1. Download the plugin
  2. Extract the contents of the zip file
  3. Upload the contents of the zip file to the wp-content/plugins/ folder of your WordPress installation
  4. Then activate the Plugin from Plugins page.

常見問題集

It says ClamAV isn’t installed?

You’ll need to install ClamAV and php-clamav. You don’t actually need ClamAV to use this plugin, though.  You can use the system command to run another scanner that can accept input on the command line.

For example, you could scan with avira like this:

 avscan $UPLOAD_SCANNER_ORIG_TEMPNAME
It says exec is disabled

Your server admin has probably disabled the “exec” function.  You’ll want to talk to your server admin before moving forward with this plugin.  They may be able to help, or they may have other security measures in place that mean you don’t need this plugin.

Why doesn’t this plugin offer a “delete file” option?

PHP automatically deletes the files for you if they’re not handled.

“The file will be deleted from the temporary directory at the end of the request if it has not been moved away or renamed.”

http://www.php.net/manual/en/features.file-upload.post-method.php

Are there any security issues running shell commands?

The only user input that is passed to the shell command is the original file name chosen by the user, and this is passed through escapeshellarg() to sanitize it.  Otherwise, the only command that’s run is chosen by you.  It’s left to your server admin (or you) to determine that it’s safe for you to issue commands. This plugin should prevent attacker input from making it into the command. Let me know if you see any problems.

Is this compatible with Multisite?

I haven’t tested this with Multisite yet.  If you have input, let me know.

使用者評論

2016 年 9 月 14 日
It may not have been updated in 4 years, but it's such a simple plugin that there's really no reason to... and it still works great with your server's ClamAV install.
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Upload Scanner〉的開發相關工作。

參與者

將〈Upload Scanner〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.2

  • Internationalized strings
  • Marked compatibility with WordPress 3.4

1.1

  • Added logging

1.0

  • Released