You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
6
5
7
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
8
7
-
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This project is the first rust implementation of [SMB2 & 3](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-smb2/5606ad47-5ee0-437a-817e-70c366052962) client -- the protocol that powers Windows file sharing and remote services. The project is designed to be used as a crate, but also includes a CLI tool for basic operations.
the protocol that powers Windows file sharing and remote services.
10
+
The project is designed to be used as a crate, but also includes a CLI tool for basic operations.
8
11
9
12
While most current implementations are mostly bindings to C libraries (such as libsmb2, samba, or windows' own libraries), this project is a full implementation in Rust, with no dependencies on C libraries!
10
13
11
14
## Getting started
15
+
12
16
Running the project's CLI is as simple as executing:
17
+
13
18
```sh
14
19
cargo run -- --help
15
20
```
21
+
16
22
Check out the `info` and the `copy` sub-commands for more information.
17
23
18
-
For advanced usage, and crate usage, see the [Advanced Usage](#advanced-usage) section.
19
24
## Features
25
+
20
26
- ✅ SMB 2.X & 3.X support.
21
27
- ✅ Async (`tokio`), Multi-threaded, or Single-threaded client.
22
28
- ✅ Compression & Encryption support.
@@ -27,6 +33,7 @@ For advanced usage, and crate usage, see the [Advanced Usage](#advanced-usage) s
27
33
You are welcome to see the project's roadmap in the [GitHub Project](https://github.com/users/AvivNaaman/projects/2).
28
34
29
35
## Using the crate
36
+
30
37
Check out the `Client` struct, exported from the `smb` crate, to initiate a connection to an SMB server:
- Open `instruments` and attach, using the right profiler.
18
27
- Enter in the command line to actually begin the execution of the program.
19
28
20
29
>[!note]
21
-
> Launching the program from within `instruments` doesn't work properly, since local network connections are blocked. This also happens when using `lldb` to attach to the process. The program must be launched from the command line, and then `instruments` can attach to it.
30
+
> Launching the program from within `instruments` doesn't work properly, since local network connections are blocked. This also happens when using `lldb` to attach to the process. The program must be launched from the command line, and then `instruments` can attach to it.
0 commit comments