鹰眼资产收集管理系统
-
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
-
sh Miniconda3-latest-Linux-x86_64.sh
-
vim ~/.bashrc
-
Vim中添加:export PATH="$PATH:/root/miniconda3/bin"
-
source ~/.bashrc
-
conda --version
-
conda create --name python python=3.8
-
source activate
-
conda deactivate
-
conda activate python
-
apt-get update
-
apt install build-essential libssl-dev libffi-dev python3-dev
-
apt install nmap
-
apt install net-tools
-
apt-get install chromium-browser
-
cd EagleEye
-
pip install -r requirements.txt
-
apt install postgresql postgresql-contrib
-
sudo -u postgres psql
-
\password postgres
-
输入密码两次
-
CREATE DATABASE eagleeye;
-
\q
-
config.py 配置 shodan api key,和数据库连接字符串
-
systemctl restart postgresql
-
systemctl status postgresql
-
sh EagleEye.sh
项目重启步骤:
- conda activate python
- sh EagleEye_Stop.sh
- sh EagleEye.sh
设置PostgreSQL远程访问:
-
vim /etc/postgresql/14/main/postgresql.conf
-
添加:listen_addresses = '*'
-
vim /etc/postgresql/14/main/pg_hba.conf
-
添加:host all all 0.0.0.0/0 md5
-
service postgresql restart