rapid7 / ruby_smb

A native Ruby implementation of the SMB Protocol Family
Other
80 stars 80 forks source link

Add the #remove_share method to the server #260

Closed zeroSteiner closed 6 months ago

zeroSteiner commented 6 months ago

This is an easy one. It just adds the #remove_share method to the server. I'll need to use it to clean up once a single server instance can be shared by multiple modules in Metasploit as an HTTP service can be.

For testing, the easiest thing would probably be to wait until the corresponding Metasploit PR has been made and then just check that the cleanup method used it to remove the share using smbclient (e.g. smbclient //192.168.159.128/Share1 -U smcintyre -N -c "dir *").

bwatters-r7 commented 6 months ago

Release Notes

This PR adds the remove_share method to the server to support multiple smb shares.