Interacting with SMB

Windows

Using GUI

  • [windows]+R

  • paste \\192.168.220.129\Finance\

Using CMD

Using DIR command

C:\htb> dir \\192.168.220.129\Finance\

Connecting using net use

C:\htb> net use n: \\192.168.220.129\Finance
C:\htb> net use n: \\192.168.220.129\Finance /user:plaintext Password123

Counting how many files

C:\htb> dir n: /a-d /s /b | find /c ":\"

Finding filenames

C:\htb>dir n:\*cred* /s /b

n:\Contracts\private\credentials.txt

Finding files with keywords

Using PowerShell

Get-ChildItem command

New-PSDrive Command

Counting how many files

Finding filenames

Finding files with keywords

Linux

Mounting with username and password

Mounting with credential file

Finding Filenames

Finding Files with keywords

Last updated