No description
- C++ 77.9%
- CSS 6.6%
- HTML 6.1%
- JavaScript 5.1%
- Batchfile 3%
- Other 1.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .openai | ||
| scripts | ||
| site | ||
| src | ||
| .gitignore | ||
| build.cmd | ||
| build.ps1 | ||
| CMakeLists.txt | ||
| package.json | ||
| README.md | ||
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.