projectdiscovery/nuclei · error
smb url missing share name
Error message
smb url missing share name
What it means
Error "smb url missing share name" thrown in projectdiscovery/nuclei.
Source
Thrown at pkg/protocols/file/smb_path.go:135
share := cleaned[1]
rel := "."
if len(cleaned) > 2 {
rel = strings.Join(cleaned[2:], "/")
}
if err := smbsession.RequireShareName(share); err != nil {
return nil, err
}
normalized, err := smbsession.NormalizeSharePath(rel)
if err != nil {
return nil, err
}
return &SMBTarget{Host: host, Port: 445, Share: share, Path: normalized}, nil
}
func splitSharePath(urlPath string) (share, rel string, err error) {
urlPath = strings.Trim(urlPath, "/")
if urlPath == "" {
return "", "", fmt.Errorf("smb url missing share name")
}
parts := strings.SplitN(urlPath, "/", 2)
share = parts[0]
if err := smbsession.RequireShareName(share); err != nil {
return "", "", err
}
rel = "."
if len(parts) == 2 {
rel = parts[1]
}
normalized, err := smbsession.NormalizeSharePath(rel)
if err != nil {
return "", "", err
}
return share, normalized, nil
}
// Display returns a stable UNC-like string for events/logs (never embeds password).View on GitHub (pinned to 265b3a3dec)
When it happens
Trigger: Thrown at pkg/protocols/file/smb_path.go:135 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of projectdiscovery/nuclei@265b3a3dec (2026-08-15).
Data as JSON: /api/errors/455a6e4e3250f0f8.
Report an issue: GitHub.