Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nova-video-player/smbcli
smbcli: a simple test program for jcifs-ng
https://github.com/nova-video-player/smbcli
Last synced: 8 days ago
JSON representation
smbcli: a simple test program for jcifs-ng
- Host: GitHub
- URL: https://github.com/nova-video-player/smbcli
- Owner: nova-video-player
- License: apache-2.0
- Created: 2020-04-19T14:08:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T22:29:17.000Z (12 months ago)
- Last Synced: 2024-04-13T23:52:45.476Z (7 months ago)
- Language: Java
- Homepage:
- Size: 1.09 MB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# smbcli: a simple test program for jcifs-ng
smbcli is a simple test program aiming at simply debugging [jcifs-ng](https://github.com/AgNO3/jcifs-ng) to get [nova video player](https://github.com/nova-video-player/aos-AVP) working with SMBv2/3.
It only does a file listing of a SMB network share directory.## Compilation
Project can be run directly via IntelliJ IDE but one can compile it via these commands if you prefer CLI:
```
rm -rt target
mvn package -DskipTests -Dmaven.javadoc.skip=true
```
## Usage
```
java -jar jcifstest-1.0-SNAPSHOT.jar 1|2 BCAST|DNS smb://server/share/ [domain user password]`
```
For guest login (unprotected shares) just omit `"" user password` as domain user password.## Logs
To get trace logs for jcifs-ng use the following `logback.xml` file in the root directory where smbcli is run. Sample file is provided in the project.
```
java -Dlogback.configurationFile=./logback.xml -jar jcifstest-1.0-SNAPSHOT.jar 1|2 BCAST|DNS smb://server/share/ [domain user password]`
```## pcap capture
For pcap captures, use wireshark with the following filter `ip.src == 192.168.0.101/24 && ip.dst == 192.168.0.1/24` (adapt to your subnet).
To export capture: edit mark all displayed, file export specified packets -> pcap, zip export.Alternatively tcpdump can be used too with the following command: `sudo tcpdump -n "src net 192.168.1.0/24 and dst net 192.168.1.0/24" -w capture.pcap`
## Recompile jcifs-ng
In order to compile jcifs-ng use maven:
```
mvn package -DskipTests -Dmaven.javadoc.skip=true
```
resulting jar is located in target directory.To get trace log for jcifs-ng use the following log4j.properties file in the directory where smbcli is present: