{"id":909,"date":"2022-08-16T14:06:00","date_gmt":"2022-08-16T07:06:00","guid":{"rendered":"https:\/\/longvan.net\/cong-dong\/?p=909"},"modified":"2022-12-30T15:27:48","modified_gmt":"2022-12-30T08:27:48","slug":"hd-su-dung-clamav-scan-virus-tren-linux","status":"publish","type":"post","link":"https:\/\/longvan.net\/cong-dong\/hd-su-dung-clamav-scan-virus-tren-linux\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng ClamAV \u0111\u1ec3 scan virus tr\u00ean Linux"},"content":{"rendered":"<h4>I. ClamAV l\u00e0 g\u00ec ?<\/h4>\n<p>ClamAV l\u00e0 t\u1eeb vi\u1ebft t\u1eaft c\u1ee7a t\u00ean g\u1ecdi Clam Antivirus \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n b\u1edfi Cisco Systems . Clam Antivirus l\u00e0 m\u1ed9t b\u1ed9 c\u00f4ng c\u1ee5 mi\u1ec5n ph\u00ed, h\u1ed7 tr\u1ee3 \u0111a n\u1ec1n t\u1ea3ng v\u00e0 c\u00f9ng v\u1edbi h\u1ec7 sinh th\u00e1i \u0111a d\u1ea1ng c<span class=\"VIiyi\" lang=\"vi\"><span class=\"JLqJ4b ChMk0b C1N51c\" data-language-for-alternatives=\"vi\" data-language-to-translate-into=\"en\" data-phrase-index=\"4\" data-number-of-phrases=\"5\"><span class=\"Q4iAWc\">ung c\u1ea5p kh\u1ea3 n\u0103ng ph\u00e1t hi\u1ec7n ph\u1ea7n m\u1ec1m<\/span><\/span><\/span>, m\u00e3 ngu\u1ed3n \u0111\u1ed9c h\u1ea1i trong \u0111\u00f3 bao g\u1ed3m c\u1ea3 virus.<\/p>\n<p>ClamAV \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n d\u00e0nh cho Unix v\u00e0 c\u00f3 c\u00e1c phi\u00ean b\u1ea3n d\u00e0nh cho b\u00ean th\u1ee9 ba c\u00f3 s\u1eb5n cho AIX, BSD, Linux, MacOS, OpenVMS, OSF(Trust 64) v\u00e0 Solaris. K\u1ec3 t\u1eeb phi\u00ean b\u1ea3n 0.97.5, Clam Antivirus \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng v\u00e0 ch\u1ea1y tr\u00ean Microsoft Windows. <span class=\"VIiyi\" lang=\"vi\"><span class=\"JLqJ4b ChMk0b\" data-language-for-alternatives=\"vi\" data-language-to-translate-into=\"en\" data-phrase-index=\"4\" data-number-of-phrases=\"5\"><span class=\"Q4iAWc\">M\u1ed9t trong nh\u1eefng \u1ee9ng d\u1ee5ng ch\u00ednh c\u1ee7a ClamAV l\u00e0 tr\u00ean c\u00e1c Mail server, ho\u1ea1t \u0111\u1ed9ng nh\u01b0 m\u1ed9t ch\u01b0\u01a1ng tr\u00ecnh qu\u00e9t virus email ph\u00eda m\u00e1y ch\u1ee7.<\/span><\/span><\/span><\/p>\n<h4>II. C\u00e0i \u0111\u1eb7t ClamAV tr\u00ean Linux<\/h4>\n<ol>\n<li><strong>B\u01b0\u1edbc 1<\/strong>: ssh v\u00e0o server v\u00e0 d\u00f9ng l\u1ec7nh \u0111\u1ec3 t\u1ea3i g\u00f3i l\u1ea1i \u0111\u1eb7t epel.repo\n<pre># yum -y install epel-release\n# yum clean all<\/pre>\n<\/li>\n<li><strong>B\u01b0\u1edbc 2<\/strong>: c\u00e0i \u0111\u1eb7t ClamAV:\n<pre># yum -y install clamav clamav-scanner clamav-scanner-systemd clamav-server clamav-server-systemd clamav-update<\/pre>\n<p>Sau khi ch\u1ea1y xong l\u1ec7n c\u00e0i \u0111\u1eb7t clamav ta \u0111\u01b0\u1ee3c k\u1ebft qu\u1ea3 nh\u01b0 sau:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-914 size-full\" src=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2022\/08\/clav1-e1660816477241.png\" alt=\"\" width=\"812\" height=\"182\" srcset=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2022\/08\/clav1-e1660816477241.png 812w, https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2022\/08\/clav1-e1660816477241-300x67.png 300w, https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2022\/08\/clav1-e1660816477241-768x172.png 768w\" sizes=\"auto, (max-width: 812px) 100vw, 812px\" \/><\/p>\n<\/li>\n<\/ol>\n<h4>III. C\u00e0i \u0111\u1eb7t ClamAV tr\u00ean Unix<\/h4>\n<p>T\u01b0\u01a1ng t\u1ef1 nh\u01b0 c\u00e1c b\u01b0\u1edbc c\u00e0i \u0111\u1eb7t tr\u00ean Linux , ta l\u1ea7n thao t\u00e1c tr\u00ean Unix<\/p>\n<ul>\n<li><strong>B\u01b0\u1edbc 1<\/strong>: ssh v\u00e0o server v\u00e0 d\u00f9ng l\u1ec7nh \u0111\u1ec3 t\u1ea3i g\u00f3i l\u1ea1i \u0111\u1eb7t epel.repo\n<pre># sudo apt-get install epel-release\n# sudo apt-get clean all<\/pre>\n<\/li>\n<li><strong>B\u01b0\u1edbc 2<\/strong>: c\u00e0i \u0111\u1eb7t ClamAV b\u1eb1ng l\u1ec7nh:\n<pre># sudo apt-get install clamav clamav-daemo<\/pre>\n<\/li>\n<\/ul>\n<h4>IV. Qu\u00e9t virus tr\u00ean server b\u1eb1ng ClamAV:<\/h4>\n<ol>\n<li><strong>B\u01b0\u1edbc 1<\/strong>: update d\u1eef li\u1ec7u ClamAV, th\u1ef1c hi\u1ec7n c\u00e1c l\u1ec7nh sau:\n<pre># sudo service clamav-freshclam stop <br># sudo freshclam <br># sudo service clamav-freshclam start<\/pre>\n<\/li>\n<li><strong>B\u01b0\u1edbc 2<\/strong>: scan virus s\u1eed d\u1ee5ng l\u1ec7nh:\n<pre># clamscan -r \/* -l \/root\/scan_log.txt&nbsp; <\/pre>\n<p>Trong \u0111\u00f3:<\/p>\n<ul>\n<li>\n<p>clamscan : l\u1ec7nh scan b\u1eb1ng clamav<\/p>\n<\/li>\n<li>\n<p>-r \/* : scan t\u1eeb th\u01b0 m\u1ee5c root v\u00e0 to\u00e0n b\u1ed9 c\u00e1c th\u01b0 m\u1ee5c con (to\u00e0n b\u1ed9 server)<\/p>\n<\/li>\n<li>\n<p>-l \/root\/scan_log.txt&nbsp; : c\u1ea5u h\u00ecnh file ghi log \u1edf scan_log.txt<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>B\u01b0\u1edbc 3<\/strong>: Ki\u1ec3m tra l\u1ea1i k\u1ebft qu\u1ea3 Scan:<br><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-919\" src=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2022\/08\/clav3.png\" alt=\"\" width=\"578\" height=\"485\" srcset=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2022\/08\/clav3.png 578w, https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2022\/08\/clav3-300x252.png 300w\" sizes=\"auto, (max-width: 578px) 100vw, 578px\" \/>\n<ul>\n<li>Ki\u1ec3m tra to\u00e0n b\u1ed9 qu\u00e1 tr\u00ecnh b\u1eb1ng l\u1ec7nh:\n<pre># vi \/root\/scan_log.txt&nbsp;&nbsp; (ho\u1eb7c file log b\u1ea5t k\u1ef3 \u0111\u00e3 c\u1ea5u h\u00ecnh \u1edf b\u01b0\u1edbc 4)<\/pre>\n<\/li>\n<li>Ki\u1ec3m tra c\u00e1c file b\u1ecb nhi\u1ec5m b\u1eb1ng l\u1ec7nh:\n<pre># grep FOUND \/root\/scan_log.txt<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>Nh\u01b0 v\u1eady, Long V\u00e2n \u0111\u00e3 ho\u00e0n th\u00e0nh h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch c\u00e0i \u0111\u1eb7t v\u00e0 s\u1eed d\u1ee5ng ClamAV \u0111\u1ec3 scan virus v\u00e0 malware tr\u00ean m\u00e1y ch\u1ee7. Ch\u00fac c\u00e1c b\u1ea1n th\u00e0nh c\u00f4ng !<\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I. ClamAV l\u00e0 g\u00ec ? ClamAV l\u00e0 t\u1eeb vi\u1ebft t\u1eaft c\u1ee7a t\u00ean g\u1ecdi Clam Antivirus \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n b\u1edfi Cisco Systems . Clam Antivirus l\u00e0 m\u1ed9t b\u1ed9 c\u00f4ng c\u1ee5 mi\u1ec5n ph\u00ed, h\u1ed7 tr\u1ee3 \u0111a n\u1ec1n t\u1ea3ng v\u00e0 c\u00f9ng v\u1edbi h\u1ec7 sinh th\u00e1i \u0111a d\u1ea1ng cung c\u1ea5p kh\u1ea3 n\u0103ng ph\u00e1t hi\u1ec7n ph\u1ea7n m\u1ec1m, m\u00e3 ngu\u1ed3n \u0111\u1ed9c [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_oasis_is_in_workflow":0,"_oasis_original":0,"footnotes":""},"categories":[4],"tags":[98,95,5,97,99,96],"class_list":["post-909","post","type-post","status-publish","format-standard","hentry","category-linux","tag-check-result-clamav-scan","tag-clamav","tag-linux","tag-malware","tag-quet-virus","tag-scan-virus"],"_links":{"self":[{"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/posts\/909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/comments?post=909"}],"version-history":[{"count":11,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/posts\/909\/revisions"}],"predecessor-version":[{"id":947,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/posts\/909\/revisions\/947"}],"wp:attachment":[{"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/media?parent=909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/categories?post=909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/tags?post=909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}