Computer >> Hướng Dẫn Máy Tính >  >> Kết Nối Mạng >> An Ninh Mạng

Cách gỡ cài đặt Tenable Nessus / Nessus Agent khỏi Windows, Mac, Linux hoàn toàn

Gỡ Tenable Nessus (Scanner/Manager) trên Windows

  1. Win + R → appwiz.cpl → Enter.
  2. Tìm Tenable Nessus trong danh sách.
  3. Chuột phải → Gỡ cài đặt (Uninstall) → Có (Yes).
  4. Khởi động lại máy tính.
  5. Dọn dẹp thêm (Optional): Xóa thư mục C:\ProgramData\Tenable\Nessus\ và C:\Program Files\Tenable\Nessus\ nếu còn lại.

Gỡ Tenable Nessus trên macOS

  1. Mở System Settings / System Preferences → Nessus (biểu tượng trong ngăn cài đặt).
  2. Nhấn biểu tượng Khóa → nhập user/pass admin Mac.
  3. Nhấn Stop Nessus → trạng thái chuyển Stopped (đỏ).
  4. Đóng Preferences.
  5. Mở Terminal → chạy lệnh:
    sudo rm -rf /Library/Nessus
    sudo rm -rf /Library/PreferencePanes/Nessus.prefPane
    sudo pkgutil --forget com.tenablesecurity.nessus
    
  6. Khởi động lại Mac.

Gỡ Nessus Agent trên macOS

sudo launchctl remove com.tenablesecurity.nessusagent
sudo rm -rf /Library/NessusAgent
sudo pkgutil --forget com.tenablesecurity.nessusagent

Gỡ Tenable Nessus / Nessus Agent trên Linux

Nessus Scanner/Manager (DEB/RPM)

# Debian/Ubuntu
sudo dpkg -r nessus
# hoặc
sudo apt-get remove --purge nessus

# RHEL/CentOS/Fedora
sudo rpm -e nessus
# hoặc
sudo yum remove nessus
# hoặc
sudo dnf remove nessus

Nessus Agent (DEB/RPM)

# Debian/Ubuntu
sudo dpkg -r nessus-agent
sudo apt-get remove --purge nessus-agent

# RHEL/CentOS/Fedora
sudo rpm -e nessus-agent
sudo yum remove nessus-agent

Dừng dịch vụ trước khi gỡ (Linux)

sudo systemctl stop nessusd          # Nessus Scanner
sudo systemctl stop nessus-agent     # Nessus Agent
sudo systemctl disable nessusd
sudo systemctl disable nessus-agent

Reset / Khôi phục Nessus (Không gỡ)

Reset Activation Code (Mã kích hoạt)

  1. Đăng nhập Tenable Community (community.tenable.com).
  2. Góc trên phải → My Products.
  3. Chọn sản phẩm → Manage Product → Reset Product Activation.
  4. Dùng Activation Code mới để đăng ký lại.

Restart Service Nessus (Windows)

  1. Win + R → services.msc.
  2. Tìm Tenable Nessus → chuột phải → Restart.

Restart Service Nessus (Linux/macOS)

sudo systemctl restart nessusd        # Linux Scanner
sudo systemctl restart nessus-agent   # Linux Agent
# macOS: Trong System Preferences → Nessus → Stop → Start

Tenable Security Center (Tenable.sc) – Gỡ / Restart

# Stop
sudo service SecurityCenter stop
# Start
sudo service SecurityCenter start
# Restart
sudo service SecurityCenter restart
# Gỡ (RPM based)
sudo rpm -e SecurityCenter

Dừng quét (Stop Scan) trong Nessus UI

  1. Vào My Scans.
  2. Tìm scan đang chạy → nhấn nút Stop (hình vuông) ở cột Actions.
  3. Xác nhận Stop Scan. Có thể chọn Force Stop cho local scan.

Lưu ý quan trọng

  • Trước khi gỡ: Export scans/reports/policies cần thiết (UI → Scans → Export → Nessus DB / PDF / CSV).
  • Nessus Agent nhẹ, low-footprint – bổ sung cho network scan, hãy cân nhắc giữ lại nếu dùng Tenable.io / Tenable.sc.
  • Trên Mac: Không cài nhiều instance Nessus (Agent/Manager/Scanner) cùng lúc – sẽ kill process cũ, mất data scan.
  • Sau gỡ: Kiểm tra port 8834 (Nessus UI) đã giải phóng chưa: netstat -an | findstr 8834 (Win) / ss -tlnp | grep 8834 (Linux).