Skip to content

ノートDwinar

Hidup tuh bercanda, yang serius cuma mati

Menu
  • Home
  • Admin Server
    • Debian
    • RedHat
    • Ubuntu
    • Zimbra
  • Blog
  • Buku & Publishing
  • About
  • Contact
  • Privacy Policy
Menu

Cara Install Clam AntiVirus untuk protect servers dari serangan virus.

Posted on February 1, 2019 by dwinar

Untuk install Install clamav di CentOS 7, harus menggunakan repo epel terlebih dahulu. Jika belum mengaktifkan repo epel, bisa mengikuti tutorial saya yang ini. Setelah itu install clamav dengan perintah sebagai berikut.

yum install clamav clamav-update -y

Update clamav

[[email protected] ~]# freshclam
ClamAV update process started at Fri Feb  1 02:15:37 2019
WARNING: Can't query current.cvd.clamav.net
WARNING: Invalid DNS reply. Falling back to HTTP mode.
WARNING: getfile: Unknown response from database.clamav.net (IP: 104.16.188.138)                                                                                                             : HTTP/1.0 502
WARNING: Can't download main.cvd from database.clamav.net
Trying again in 5 secs...
WARNING: Can't query current.cvd.clamav.net
WARNING: Invalid DNS reply. Falling back to HTTP mode.
Downloading main.cvd [100%]
main.cvd updated (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Downloading daily.cvd [100%]
daily.cvd updated (version: 25345, sigs: 2229880, f-level: 63, builder: raynman)
Downloading bytecode.cvd [100%]
bytecode.cvd updated (version: 328, sigs: 94, f-level: 63, builder: neo)
Database updated (6796223 signatures) from database.clamav.net (IP: 104.16.185.1                                                                                                             38)
[[email protected] ~]#

Untuk perintah scan anti virus clamav adalah dengan perintah berikut.

[[email protected] ~]# clamscan --infected --remove --recursive /home

----------- SCAN SUMMARY -----------
Known viruses: 6788923
Engine version: 0.101.1
Scanned directories: 2
Scanned files: 3
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 23.140 sec (0 m 23 s)
[[email protected] ~]#

Untuk uji coba download virus.

[[email protected] ~]# curl -O http://www.eicar.org/download/eicar.com

Sekarang coba scan kembali.

[[email protected] ~]# clamscan --infected --remove --recursive .
./eicar.com: Eicar-Test-Signature FOUND
./eicar.com: Removed.

----------- SCAN SUMMARY -----------
Known viruses: 6788923
Engine version: 0.101.1
Scanned directories: 10
Scanned files: 11
Infected files: 1
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 20.088 sec (0 m 20 s)
[[email protected] ~]#

Terlihat virus tesebut telah dihapus oleh clamav.  Demikian tuturial saya kali ini terimakasih telah membaca.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Instalasi T-Pot Honeypot Framework
  • Ulang Tahun Excellent 9
  • Cara Setting DNS over HTTPS
  • Cara Upgrade OS Mikrotik
  • Membersihkan Sampah Pada Docker

Recent Comments

  • raihan irfan on Cara Install Docker Toolbox di Windows 10 Home
  • dwinar on Instalasi T-Pot Honeypot Framework
  • dwinar on Instalasi T-Pot Honeypot Framework
  • dwinar on Cara Replikasi Database Master – Slave
  • manda on Cara Replikasi Database Master – Slave

Categories

  • Admin Server
  • Blog
  • Debian
  • RedHat
  • Ubuntu
  • Zimbra

Archives

  • January 2021
  • September 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018

Tags

BBB Blog CentOS CentOS 8 Cockpit cPanel DataBases docer Docker Docker CE Docker Private Registry Docker Toolbox fail2ban Gnome google cloud Honeypot Jitsi Kubernetes Let’s Encrypt Linux lsync MariaDB Mikrotik Nakivo NextCloud Open Source OpenSUSE Redhat RedHat 7 S/MIME SSH SSL T-Pot Ubuntu Video Conference Web Server WFH WHM Windows Zextras Zimbra Zimbra Docs Zimbra Drive Zimbra Drive v2 Zimbra NE
February 2019
MTWTFSS
 123
45678910
11121314151617
18192021222324
25262728 
« Jan   Mar »
© 2023 ノートDwinar | Powered by Minimalist Blog WordPress Theme