Skip to content

Schira4396/smb2-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smb2-rs

这是一个用于Smb协议认证的库,它目前支持SMBv1和SMBv2.1。

0x01 说明

此库是纯rust手搓的,Linux/Windows都兼容且不依赖lib-smbclient的C库,目前在Windows7、Windows server 2008、Windows server 2012、Windows server 2016以及Windows 10上测试通过,samba没测。

目前能够实现未授权检测,认证检测以及NTLM HASH复用,你也可以根据它二开,比如实现MS17-010或者PSEXEC相关的功能。

0x02 使用方法

作为库调用,见example/main.rs

作为可执行程序使用

cargo build --bin smbcheck --release
smbcheck -t 192.168.1.1 -u administrator -p 123456
smbcheck -t 192.168.1.1 --unauth

0x03 下一步计划

序号 说明 进度
smb v1 Windows server 2003
smb v3 Windows 10 or server 2016+ ×
Tree Connect ... ×
PTH Windows Server 2003+

0x04 免责声明

它只能实现认证,旨在方便网络安全行业的从业人员/学生进行学习和研究,基于此库开发的任何恶意工具或检测出的样本,均和作者没有任何关系。

About

A pure rust implementation based on the SMBv2.1 and SMBv1 protocol

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages