-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathorcainstaller.sh
31 lines (24 loc) · 1 KB
/
orcainstaller.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
###run as sudo
###only tested on a fresh Ubuntu 18.04 LTS install
###add shodan api key as an environmental variable prior to running, or just replace it in the script
SHODAN_API_KEY=your_key_here
echo 'Updating packages...'
sudo apt update -y
echo 'Installing packages...'
sudo apt install apt-transport-https ca-certificates curl software-properties-common build-essential python3-pip -y
echo 'Installing Docker...'
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt install docker-ce docker-compose -y
sudo systemctl enable docker
echo 'Installing Orca...'
git clone https://github.com/digitalshadows/orca.git
sudo docker-compose up -d
sudo -H pip3 install .
yes | orca-recon init $SHODAN_API_KEY
echo "$(_ORCA_RECON_COMPLETE=source orca-recon)" > ~/.orca/orca-recon-complete.sh
echo '. ~/.orca/orca-recon-complete.sh' >> ~/.bashrc
cd ..
source ~/.bashrc
echo 'Finished!'