---
title: "SMB"
date: 2024-07-10
draft: false
---

### smbclient
- https://github.com/irgoncalves/smbclient_cheatsheet

### listing shares with creds
```bash
┌──(root㉿kali)-[~/box/cascade]
└─# smbclient -L 10.10.10.182 -U r.thompson%rY4n5eva 
```


### logging into a share with creds
```bash
┌──(root㉿kali)-[~/box/cascade]
└─# smbclient  //10.10.10.182/Data -U r.thompson%rY4n5eva 
```

### recursive get
```bash
smbclient '\\server\share'
mask ""
recurse ON
prompt OFF
cd 'path\to\remote\dir'
lcd '~/path/to/download/to/'
mget *
```

### writeable SMB share, capturing NTLM hashes
https://osandamalith.com/2017/03/24/places-of-interest-in-stealing-netntlm-hashes/
https://github.com/Greenwolf/ntlm_theft
