searchsploit

searchsploit "Samba < 2."

show web url instead of local

searchsploit -w "Samba < 2."

open exploit in editor

searchsploit -x exploits/linux/remote/16321.rb

copy exploit to current folder

searchsploit -m exploits/linux/remote/16321.rb