HATEBIN
>
#!/usr/bin/env ruby require 'open3' def run_scan(scan_tool) stdout, stderr, status = Open3.capture3(*scan_tool) if status.success? puts "Scan results:\n#{stdout}" return true else puts "Error during scan: #{stderr}" return false end end # Run chkrootkit scan run_scan(["chkrootkit"]) # Run rkhunter scan run_scan(["rkhunter", "--check"])