SMBClient
.ConnectSMBInfoMode(host, port)
⇒ SMBLog
.DetectSMBGhost(host, port)
⇒ boolean
.ListSMBv2Metadata(host, port)
⇒ ServiceSMB
.ListShares(host, port, user, password)
⇒ Array.<string>
SMBLog
: object
ServiceSMB
: object
smb
SMBClient
.ConnectSMBInfoMode(host, port)
⇒ SMBLog
.DetectSMBGhost(host, port)
⇒ boolean
.ListSMBv2Metadata(host, port)
⇒ ServiceSMB
.ListShares(host, port, user, password)
⇒ Array.<string>
SMBLog
SMBClient
SMBLog
- - The log of the SMB handshake.error
- The error encountered during the connection.Param | Type | Description |
---|---|---|
host | string | The host to connect to. |
port | string | The port to connect to. |
boolean
SMBClient
boolean
- - The result of the SMBGhost vulnerability detection.error
- The error encountered during the detection.Param | Type | Description |
---|---|---|
host | string | The host to connect to. |
port | string | The port to connect to. |
ServiceSMB
SMBClient
ServiceSMB
- - The metadata of the SMBv2 service.error
- The error encountered during the listing.Param | Type | Description |
---|---|---|
host | string | The host to connect to. |
port | string | The port to connect to. |
Array.<string>
SMBClient
Array.<string>
- - The list of shares.error
- The error encountered during the listing.Param | Type | Description |
---|---|---|
host | string | The host to connect to. |
port | string | The port to connect to. |
user | string | The username for authentication. |
password | string | The password for authentication. |
object
smb
object
smb