Rapid7.sh 616 B

123456789101112131415161718
  1. #!/bin/bash
  2. set -e
  3. # Download Rapid7 package
  4. echo "Downloading Rapid7 Insight Agent..."
  5. wget https://us.storage.endpoint.ingress.rapid7.com/com.rapid7.razor.public/endpoint/agent/latest/linux/x86_64/rapid7_insight_agent_x64.deb
  6. chmod +x rapid7_insight_agent_x64.deb
  7. # Install required packages
  8. # Install Rapid7 Insight Agent
  9. echo "Installing Rapid7 Insight Agent..."
  10. dpkg -i rapid7_insight_agent_x64.deb
  11. # Configure Rapid7 Insight Agent
  12. echo "Configuring Rapid7 Insight Agent..."
  13. bash /opt/rapid7/ir_agent/components/insight_agent/*/configure_agent.sh --token=us2:1e644f56-2b11-4908-874e-6f1d62dc9f57 -v --start