SMB share listing from Linux with Go?

Hi,
I have been searching for the past week for some way to list from a linux machine all SMB Shared directories of an IP address on a windows machine. I have been using SMB2-Go Library for all the interactions from a mounting point and beyond it, my problem begins with not knowing the share that you want to mount and interact with.

Given an IP address I want to be able to list all the available shares that are on the machine, is such a thing possible?
The WinAPI that I will need for this is the ShareEnum from the netapi32.dll, but how can such an interaction be done from a linux box?

Any help would be much appriciated!

Thank you

Can you clarify which SMB library you’re using?

Never mind, I see it’s: https://github.com/hirochachacha/go-smb2 from another post.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.