无名 发表于 2022-5-8 15:03:57

termux安装msf(啥时候可以使)

msf的用法和简介#metasploit(msf)简介#
1.termux安装msf环境(kali)一定要科学上网
pkg install wget openssl-tool proot -y && hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/Kali/kali.sh && bash kali.sh
2.termux安装msf的postgresql数据库
脚本,后期启动postgresql脚本,postgresql配置软件下载链接(无联系方式)
https://xsfzl.lanzoum.com/irHuh04200yb
浏览器下载并解压然后输入以下内容(遇到问题输入y)
chmod +x termux数据库.sh
chmod +x postgresql_ctl.sh
./termux数据库.sh
下次启动或者停止输入
./postgresql_ctl.sh start    启动
./postgresql_ctl.sh stop    关闭
3.配置postgresql
安装msf配置包中解压出来的apk
点击左上角三个横线之后选择访问termux文件
找到目录/data/data/com.termux/files/usr/var/lib/postgresql/
以下这些步骤建议用mt管理器或者就用这个软件去修改
点击postgresql.conf
找到下面的东西(用MT管理器就在第60行)
#listen_addresses = 'localhost'                # what IP address(es) to listen on;
将localhost改成*即可(代表谁连接都行)
保存并退出
再点击同目录下的pg_hba.conf
找到下面的东西(用mt管理器的在91行)
# IPv4 local connections:
host    all             all             127.0.0.1/32            trust
在这个的下面加上这句话(代表哪个网段连接都可以)
host    all             all             0.0.0.0/0            trust
4.进入kali并下载msf
./start-kali.sh
apt update && apt upgrade && apt install metasploit-framework -y
安装完了之后输入
msfconsole
即可进入(加载有点慢习惯就好大约5~15分钟左右)
5.没了完结撒花,最后带上两张设置完的图片
http://cdn.u1.huluxia.com/g4/M03/E9/70/rBAAdmJtHpyAcx4HAAR_p8xtK-Q902.jpghttp://cdn.u1.huluxia.com/g4/M03/E9/70/rBAAdmJtHp2ATGy6AAJrIckvHj0394.jpg
页: [1]
查看完整版本: termux安装msf(啥时候可以使)