No description
  • C++ 77.9%
  • CSS 6.6%
  • HTML 6.1%
  • JavaScript 5.1%
  • Batchfile 3%
  • Other 1.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-04 22:39:47 +11:00
.openai Add SMB Diag Tool download site 2026-08-06 11:35:56 +10:00
scripts Add SMB Diag Tool download site 2026-08-06 11:35:56 +10:00
site Add SMB Diag Tool download site 2026-08-06 11:35:56 +10:00
src Add guest anonymous SMB credential shortcut 2026-10-04 22:39:47 +11:00
.gitignore Add SMB Diag Tool download site 2026-08-06 11:35:56 +10:00
build.cmd Add SMB Diag Tool download site 2026-08-06 11:35:56 +10:00
build.ps1 Add SMB Diag Tool download site 2026-08-06 11:35:56 +10:00
CMakeLists.txt Add SMB Diag Tool download site 2026-08-06 11:35:56 +10:00
package.json Add SMB Diag Tool download site 2026-08-06 11:35:56 +10:00
README.md Add SMB Diag Tool download site 2026-08-06 11:35:56 +10:00

SMB Diag Tool (Server Message Block)

A small native Win32 C++ utility for testing SMB / Windows file share connectivity.

The tool performs these checks:

  • Builds the target UNC path from the server and share fields.
  • Resolves the SMB server name.
  • Tests TCP connectivity to port 445.
  • Optionally connects with supplied credentials through WNetAddConnection2.
  • Checks whether the share path is accessible with GetFileAttributes.
  • Attempts to enumerate the top-level directory entries.

Build

If Visual Studio Build Tools are installed, run:

.\build.ps1

You can also run build.cmd directly from cmd.exe.

Or use CMake with a Visual Studio generator:

cmake -S . -B build -G "Visual Studio 17 2022" -A x64
cmake --build build --config Release

The executable will be produced at:

build\Release\SmbDiagTool.exe

Notes

SMB authentication package selection is handled by Windows. The UI exposes Default, NT LAN Manager (NTLM), and Kerberos-style choices for diagnostic clarity, but this simple Win32 implementation does not force a specific SMB security package.