{"id":410984,"date":"2024-10-14T08:00:00","date_gmt":"2024-10-14T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/wieczos-virus-scanner\/"},"modified":"2024-10-18T01:42:00","modified_gmt":"2024-10-18T01:42:00","slug":"wieczos-virus-scanner","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/wieczos-virus-scanner\/","title":{"rendered":"Wieczo's Virus Scanner"},"content":{"rendered":"<p><strong>Wieczo\u2019s Virus Scanner<\/strong> is a WordPress plugin that allows users to upload files from the WordPress admin area and scan them for viruses and malware by sending them to a ClamAV service.<\/p>\n<p>Additionally, the plugin sends every upload to ClamAV first. If a virus is found, the upload is aborted.<\/p>\n<p>The plugin also supports scanning your whole WordPress installation for malware and viruses.<\/p>\n<p>The plugin connects to a ClamAV service using the <strong>Host<\/strong> and <strong>Port<\/strong> variables configured in the plugin settings.<\/p>\n<h3>Features<\/h3>\n<ul>\n<li><strong>File Upload<\/strong>: Allows file uploads through a user-friendly admin page.<\/li>\n<li><strong>Upload Scan<\/strong>: Scans all uploaded files for viruses and malware.<\/li>\n<li><strong>Full Scan<\/strong>: Separate page to scan the whole WordPress installation for malware and viruses.<\/li>\n<li><strong>ClamAV Integration<\/strong>: Sends files via a socket connection to a ClamAV service for virus scanning.<\/li>\n<li><strong>Easy Configuration<\/strong>: Configure the host and port of the ClamAV service in the plugin settings.<\/li>\n<\/ul>\n<h3>How to Contribute<\/h3>\n<p>We\u2019re excited to welcome contributors to Wieczo\u2019s Virus Scanner!<br \/>\nWhether you\u2019re a seasoned developer or just getting started, your input is valuable.<br \/>\nYou can help us by reporting bugs, suggesting new features, or improving the code.<br \/>\nIt\u2019s a great way to sharpen your skills and make a real impact.<br \/>\nJust fork the repository, work on your ideas, and submit a pull request.<br \/>\nWe\u2019ll review it as soon as possible and work together to make this plugin even better!<\/p>\n<h3>Contributors<\/h3>\n<p>We want to thank all of our contributors! Here\u2019s a list of everyone who has helped make this project better:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/wieczo\" rel=\"nofollow ugc\">Thomas Wieczorek<\/a> \u2013 Project Creator<\/li>\n<li><a href=\"https:\/\/github.com\/simonneutert\" rel=\"nofollow ugc\">Simon Neutert<\/a> \u2013 Always an inspiration and contributes with his thoughts<br \/>\nand well-spoken arguments.<\/li>\n<\/ul>\n<h3>Manual Installation:<\/h3>\n<ol>\n<li>Upload the <code>wieczos-virus-scanner<\/code> directory to your WordPress installation\u2019s <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin in the WordPress Admin area under \u201cPlugins.\u201d<\/li>\n<li>Configure the ClamAV service under <strong>Settings -> ClamAV Settings<\/strong> (enter the host and port of the ClamAV service).<\/li>\n<\/ol>\n<h3>Configuration<\/h3>\n<p>After activating the plugin, you can configure the connection information for your ClamAV service as follows:<\/p>\n<ol>\n<li>Go to <strong>Settings -> ClamAV Scanner<\/strong>.<\/li>\n<li>\n<p>Enter the <strong>Host<\/strong> and <strong>Port<\/strong> of your ClamAV service, for example:<\/p>\n<ul>\n<li><strong>Host<\/strong>: <code>127.0.0.1<\/code> (if the service is running locally, default: <code>clamav<\/code>)<\/li>\n<li><strong>Port<\/strong>: <code>3310<\/code> (default port for ClamAV)<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Optionally, you can set a <strong>Timeout<\/strong> to define the maximum wait time for the connection to the ClamAV service.<\/p>\n<\/li>\n<\/ol>\n<h3>Usage<\/h3>\n<h3>1. Upload Scan<\/h3>\n<p>Once the plugin is activated, it automatically scans all uploads for viruses.<\/p>\n<h3>2. Manually Upload and Scan Files<\/h3>\n<ol>\n<li>Navigate to <strong>ClamAV Scanner -> File Scanner<\/strong> in the WordPress admin menu.<\/li>\n<li>Select a file you want to scan for viruses and click \u201cScan File.\u201d<\/li>\n<li>The plugin sends the file via a socket to the ClamAV service, and you will receive the scan result directly in the admin dashboard.<\/li>\n<\/ol>\n<h3>How It Works<\/h3>\n<ul>\n<li>The plugin uses the PHP <code>socket<\/code> functionality to establish a connection with a ClamAV service.<\/li>\n<li>Files uploaded through the WordPress admin interface are temporarily stored on the server.<\/li>\n<li>The plugin then opens a socket connection to the configured ClamAV host and port and sends the uploaded file for analysis.<\/li>\n<li>After the scan, the plugin displays the scan results on the admin page.<\/li>\n<\/ul>\n<h3>Requirements<\/h3>\n<ul>\n<li>WordPress 6.7 or higher<\/li>\n<li>A running <strong>ClamAV service<\/strong> that is accessible via a network socket (default port: 3310).<\/li>\n<li>PHP sockets must be enabled on the server.<\/li>\n<\/ul>\n<h3>Development<\/h3>\n<h3>Local Development<\/h3>\n<ol>\n<li>\n<p>Clone this repository into the <code>\/wp-content\/plugins\/<\/code> directory of your local WordPress project:<\/p>\n<p><code>bash<br \/>\ngit clone https:\/\/github.com\/wieczo\/wieczos-virus-scanner.git<\/code><\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>A plugin to scan uploaded files for viruses with ClamAV.<\/p>\n","protected":false},"author":65,"featured_media":410985,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Wieczo's Virus Scanner - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"A plugin to scan uploaded files for viruses with ClamAV."},"footnotes":""},"categories":[1],"tags":[5191,45686,5214,182,5315],"class_list":["post-410984","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-antivirus","tag-clamav","tag-malware","tag-security","tag-virus"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/410984","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=410984"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/410984\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/410985"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=410984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=410984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=410984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}