<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>viruses Archives - WardNet</title>
	<atom:link href="https://www.wardnet.co.uk/tag/viruses/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wardnet.co.uk/tag/viruses/</link>
	<description>Infrastructure, ERP and General Technology Blog</description>
	<lastBuildDate>Mon, 16 Sep 2013 15:16:40 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://i0.wp.com/www.wardnet.co.uk/wp-content/uploads/2026/01/wp-1767387074640.jpg?fit=32%2C32&#038;ssl=1</url>
	<title>viruses Archives - WardNet</title>
	<link>https://www.wardnet.co.uk/tag/viruses/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">63479081</site>	<item>
		<title>Linux Virus Scan &#8211; Daily Email Script</title>
		<link>https://www.wardnet.co.uk/linux-virus-scan-daily-email-script/</link>
		
		<dc:creator><![CDATA[Jonathan Ward]]></dc:creator>
		<pubDate>Fri, 24 May 2013 08:06:31 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[email script]]></category>
		<category><![CDATA[email server]]></category>
		<category><![CDATA[FOUND]]></category>
		<category><![CDATA[GREP]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Linux Virus Scan]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[Scan Results]]></category>
		<category><![CDATA[virus scan]]></category>
		<category><![CDATA[virus scanners]]></category>
		<category><![CDATA[viruses]]></category>
		<category><![CDATA[web directories]]></category>
		<guid isPermaLink="false">http://wardnet.co.uk/?p=204</guid>

					<description><![CDATA[<p>Yes, that&#8217;s right, Linux can get viruses too, in fact they can harbour windows based viruses if the system is</p>
<p><a href="https://www.wardnet.co.uk/linux-virus-scan-daily-email-script/">Linux Virus Scan &#8211; Daily Email Script</a></p>
]]></description>
										<content:encoded><![CDATA[<p>Yes, that&#8217;s right, Linux can get viruses too, in fact they can harbour windows based viruses if the system is used as a web and email server! Something I&#8217;ve been becoming more and more familiar with. So, our systems already used ClamAV one of the more popular Linux based virus scanners. But whilst it runs a scan on incoming emails etc. It doesn&#8217;t really give me a nice visual output (no GUI). My solution? Automated daily scan with emailed results&#8230;</p>
<p><span style="font-family: 'courier new', courier; font-size: 12px;">clamscan -r /var/www &gt; /root/scanresults.txt</span></p>
<p><span style="font-family: 'courier new', courier; font-size: 12px;">cat /root/scanresults.txt | mail -s &#8221; Scan Results&#8221; hello@example.com</span></p>
<p><span style="font-family: 'courier new', courier; font-size: 12px;"><em id="__mceDel">cat /root/scanresults.txt | grep FOUND | mail -s &#8220;Viruses Found&#8221; hello@example.com</em></span></p>
<p>So what does this do?</p>
<p>well, it scans the web directories (recursively) for any viruses that are listed in the virus DB (updated twice daily) &#8211; it then puts all the results into a text file. this text file is then read into an email command which is sent to the hello@example.com email address.</p>
<p>However, this isn&#8217;t much use as there are thousands of files and directories, what I really want to know is whether viruses were found&#8230; the solution to this is GREP out the value &#8220;FOUND&#8221; which is appended to the file name if a virus is found to be in it &#8211; this is then read into the same email command as before leaving me a nice list of only the files found with viruses!</p>
<p>I love a nice quick and easy script &#8211; I used cron tab to run this at 00:05 and 12:05 every day!</p>
<p><a href="https://www.wardnet.co.uk/linux-virus-scan-daily-email-script/">Linux Virus Scan &#8211; Daily Email Script</a></p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">204</post-id>	</item>
	</channel>
</rss>
