如果直接运行
proxychains /usr/local/share/metasploit-framework/msfconsole
metasploit会报错:
[-] Failed to connect to the database: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
因为使用了代理,metasploit连接数据库时会出错。
1. 如果要在metasploit中使用reverse_tcp,则可以设置
直接运行metasplot
然后在msfconsole中设置代理即可
set proxies socks5:127.0.0.1:8990