139, 445 - SMB

Port 139

Port 139 is terferred to a 'NBT over IP'. The Network Basic Input Output System (NETBIOS) is a software product designed to enable objects in a local area network (LAN) to interact with network hardware an facilitate the transmission of data across the network.

Port 445

Port 445 is identified as 'SMB over IP'. SMB stands for Server Message Blocks, which is also known as Common Internet File System. As an application-layer network protocol, SMB/CIFS is primarily utilized to share files, printers, serial ports, across a network.

SMB

The Server Message Block (SMB) protocol is designed for regulating access to files, directories, and other network resources like printers or routers. Primarily utilized within the Windows operating system, SMB ensures backward compativility. The Samba project offers a free software solution for SMB implementation on Linux and Unix systems.

IPC$ Share

The IPC$ share can be accessed through an anonymous null session, allowing for interacting with services exposed via named pipes. enum4linuxcan be used to collect:

  • Information on the operating system

  • Details on the parent domain

  • compilation of local users and groups

  • information on available SMB shares

  • effective system security policy

enum4linux -a target-ip

Common Credentials

(blank) : (blank)

guest : (blank)

Administrator, admin : (blank), password, administrator, admin

arcserve : arcserve, backup

tivoli, tmersrvd : tivoli, tmersvd, admin

backupexec, backup : backupexec, backup, arcada

test, lab, demo : password, test, lab, demo

List Shares using smbclient

Enumerate Users, Groups & Logged On Users

Enumerate Local Users

Impacket

Shared Folders Enumeration

Look if you can access anything that you find. If you don't have credentials, try using null credentials/guest user

List Shared Folders

Connect/List a Shared Folder

From Windows Host

Powershell

CMD

Mount a Share on Linux

Download files from a share

Execute Commands

crackmapexec

crackmapexec can execute commands abusing any of mmcexec, smbexec, atexec, wmiexec being wmiexec the default method.

Last updated