Post

Enumerate Samba

Notes

1
2
3
4
5
6
7
8
9
10
11
12
13
14
nmap --scripts [script name] --script-args [smbusername smbpassword] -p[port no.] ipaddr


[Nmap SMB Scripts and SMB Enumeration Step-By-Step Pentesting Guide](https://www.infosecademy.com/nmap-smb-scripts-enumeration/)



<aside>
📌 **SUMMARY:**

### SMB: Nmap Scripts

To gather more information about SMB, you can use Nmap scripts. Here is an example command to run Nmap scripts related to SMB enumeration:

nmap –scripts smb-* –script-args smbusername=smbpassword -p[port no.] ipaddr ```

Make sure to replace [script name] with the specific script you want to run, [smbusername smbpassword] with the appropriate SMB credentials, [port no.] with the desired port number, and ipaddr with the target IP address.

For more detailed guidance on Nmap SMB scripts and step-by-step pentesting, you can refer to the following resource: Nmap SMB Scripts and SMB Enumeration Step-By-Step Pentesting Guide

</aside>


Date: September 28, 2023

Topic: SMB (Server Message Block)

Recall

Samba port

Net use [drive you want] //[IP addr/drivename] password

Net use * /delete

Notes

  • 139 and 445
  • used to connect to SMB server and add to our local machine.

  • Will delete the added samba server

Recall

Notes

This post is licensed under CC BY 4.0 by the author.

Trending Tags