git clone --recursive https://github.com/hanc00l/nemo
brew install rabbitmq
brew install mysql@5.7
-
创建数据库
brew services run mysql@5.7 mysql -u root >CREATE DATABASE `nemo` DEFAULT CHARACTER SET utf8mb4;
-
导入nemo.sql
mysql -u root nemo < nemo.sql
-
创建用户并授权
CREATE USER 'nemo'@'%' IDENTIFIED BY 'nemo2020'; GRANT ALL PRIVILEGES ON nemo.* TO 'nemo'@'%'; FLUSH PRIVILEGES;
brew install nmap masscan
# 因为nmap、masscan的SYN扫描需要root权限,为避免使用sudo,设置root权限的suid
cd /usr/local/Cellar/nmap/7.80_1/bin
sudo chown root nmap
sudo chmod u+s nmap
cd /usr/local/Cellar/masscan/1.0.5/bin
sudo chown root masscan
sudo chmod u+s masscan
git clone https://github.com/urbanadventurer/WhatWeb
cd WhatWeb
# whatwebf需要编译和安装ruby,通过make install自动安装相关的ruby依赖
make install
-
mysql数据库、用户名和密码
# database DB_HOST = 'localhost' DB_PORT = 3306 DB_NAME = 'nemo' DB_USERNAME = 'nemo' DB_PASSWORD = 'nemo2020'
-
rabbitmq的地址、用户名和密码
# rabbitmq MQ_HOST = '127.0.0.1' MQ_PORT = 5672 MQ_USERNAME = 'guest' MQ_PASSWORD = 'guest'
-
flower的地址及端口
# flower FLOWER_BIND_ADDR = '127.0.0.1' FLOWER_PORT = 5555 FLOWER_AUTH_USER = 'nemo' FLOWER_AUTH_PASSWORD = 'nemo'
pip3 install -r requirements.txt
brew services run mysql@5.7
brew services run rabbitmq
export PYTHONOPTIMIZE=1
celery -A nemo.core.tasks.tasks worker --loglevel info -c 4
celery flower -A nemo.core.tasks.tasks --basic_auth=nemo:nemo --address=127.0.0.1 -port-5555
python3 app.py