Example
SMBClient
SMBClient
host
, port
): SMBLog
ConnectSMBInfoMode tries to connect to provided host and port
and discovery SMB information
Returns handshake log and error. If error is not nil,
state will be false
Name | Type |
---|---|
host | string |
port | number |
SMBLog
Example
host
, port
): boolean
DetectSMBGhost tries to detect SMBGhost vulnerability
by using SMBv3 compression feature.
If the host is vulnerable, it returns true.
Name | Type |
---|---|
host | string |
port | number |
boolean
Example
host
, port
): ServiceSMB
ListSMBv2Metadata tries to connect to provided host and port
and list SMBv2 metadata.
Returns metadata and error. If error is not nil,
state will be false
Name | Type |
---|---|
host | string |
port | number |
ServiceSMB
Example
host
, port
, user
): string
[]
ListShares tries to connect to provided host and port
and list shares by using given credentials.
Credentials cannot be blank. guest or anonymous credentials
can be used by providing empty password.
Name | Type |
---|---|
host | string |
port | number |
user | string |
string
[]
Example