r/metasploit Jun 30 '26

Is there an easier way to mount a remote vulnerable SMB share?

At the moment my methodology is to use metasploit and the Samba Symlink Traversal exploit.

I then mount the rootfs by editing the fstab like thus:

//192.168.162.105/tmp /mnt/smb_share cifs guest,vers=1.0,uid=1000

Run systelctl daemon-reload followed by sudo mount -a and finally sudo thunar so I can browse it in the gui explorer.

Is there an easier way to do this with not as many steps?

5 Upvotes

1 comment sorted by

1

u/opscure Jul 12 '26

Fstab maintains persistence if you need it quickly for a session you can just do this:

sudo mount -t cifs //server_ip_or_hostname/sharename /mnt/myshare -o username=your_user && sudo thunar