获取目标机ip
使用kali的nmap命令收集信息
发现开启了445端口
进入msf模式,搜索并使用ms17_010模块
设置rhosts(目标机ip)
run运行模块
输入shell获得目标机的shell