#
smbclient-ng
Awesome tool to interact with SMB shares
#
Connect to a machine via SMB
smbclient-ng -d north.sevenkingdoms.local -u samwell.tarly -p Heartsbane --host winterfell
#
Connect with Kerberos
TIP
I had to go outside of Exegol (my goto for pentest tools) to install smbclientng with pipx install smbclientng
because otherwise the Kerberos auth attempt below fails with a bug!
smbclientng --kdcHost=dc.domain.com -d dc.domain.com -u user-you-have-ccache-for --host victim.domain.com -k --no-pass
#
List shares
shares
#
Connect to a share
use sysvol
#
Navigate
Use ls
plus tab completion
#
Tail the contents of a file
tail somefile.txt
#
Remove a file
rm ScheduledTasks.xml