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