在Ubuntu 20.04 LTS Focal Fossa上安装SpiderFoot
步骤1.首先,通过apt
在终端中运行以下命令来确保所有系统软件包都是最新的。
sudo apt update
sudo apt upgrade
第2步。安装Python。
SpiderFoot用Python编写,需要安装在您的系统上:
sudo apt install python3 python3-pip
步骤3.在Ubuntu 20.04上安装SpiderFoot。
现在,我们从Git存储库下载最新版本的Spiderfoot:
wget https://github.com/smicallef/spiderfoot/archive/v3.3.tar.gz
接下来,解压缩下载的档案:
tar -xvzf v3.3.tar.gz cd spiderfoot-3.3 pip3 install -r requirements.txt
安装后,您可以使用以下命令列出SpiderFoot可用的所有选项:
python3 sf.py --help
您应该获得以下输出:
usage: sf.py [-h] [-d] [-l IP:port] [-m mod1,mod2,...] [-M] [-s TARGET] [-t type1,type2,...] [-T] [-o tab|csv|json] [-H] [-n] [-r] [-S LENGTH] [-D DELIMITER] [-f] [-F type1,type2,...] [-x] [-q] SpiderFoot 3.3: Open Source Intelligence Automation. optional arguments: -h, --help show this help message and exit -d, --debug Enable debug output. -l IP:port IP and port to listen on. -m mod1,mod2,... Modules to enable. -M, --modules List available modules. -s TARGET Target for the scan. -t type1,type2,... Event types to collect (modules selected automatically). -T, --types List available event types. -o tab|csv|json Output format. Tab is default. If using json, -q is enforced. -H Don't print field headers, just data. -n Strip newlines from data. -r Include the source data field in tab/csv output. -S LENGTH Maximum data length to display. By default, all data is shown. -D DELIMITER Delimiter to use for CSV output. Default is ,. -f Filter out other event types that weren't requested with -t. -F type1,type2,... Show only a set of event types, comma-separated. -x STRICT MODE. Will only enable modules that can directly consume your target, and if -t was specified only those events will be consumed by modules. This overrides -t and -m options. -q Disable logging. This will also hide errors!
SpiderFoot还具有Web界面。在Web UI上运行以下命令:
python3 sf.py -l localhost:5001
上面的命令使SpiderFoot可以从浏览器访问。打开浏览器,浏览到服务器主机名或IP地址,后跟端口5001 。http://192.168.77.21:8080
默认情况下,无需任何身份验证即可访问SpiderFoot。因此建议启用基本身份验证。运行以下命令以将您的用户名和密码添加到密码文件中:
echo "admin:Your-Strong-Password" > passwd
恭喜你!您已经成功安装了SpiderFoot。感谢您使用本教程在Ubuntu 20.04 LTS Focal Fossa系统上安装SpiderFoot。有关其他帮助或有用信息,建议您访问SpiderFoot官方网站。
原创文章,作者:校长,如若转载,请注明出处:https://www.yundongfang.com/Yun46591.html