vulhub / vulhub

Pre-Built Vulnerable Environments Based on Docker-Compose
https://vulhub.org
MIT License
17.74k stars 4.47k forks source link

samba/CVE-2017-7494 Error reproducing exploit #224

Closed scmanjarrez closed 4 years ago

scmanjarrez commented 4 years ago

提交issue前,请检查你本地的vulhub是否是最新版,否则可能存在一些由于时间问题导致而今已经修复的bug。

填写如下信息

smbclient //192.168.144.2/myshare -N                                                                 13:30  09/09/20  100% 
WARNING: The "syslog" option is deprecated
Anonymous login successful
Try "help" to get a list of possible commands.
smb: \> 
msf6 exploit(linux/samba/is_known_pipename) > options

Module options (exploit/linux/samba/is_known_pipename):

   Name            Current Setting  Required  Description
   ----            ---------------  --------  -----------
   RHOSTS          192.168.144.2    yes       The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
   RPORT           445              yes       The SMB service port (TCP)
   SMB_FOLDER      /home/share      no        The directory to use within the writeable SMB share
   SMB_SHARE_NAME                   no        The name of the SMB share containing a writeable directory

Payload options (cmd/unix/interact):

   Name  Current Setting  Required  Description
   ----  ---------------  --------  -----------

Exploit target:

   Id  Name
   --  ----
   0   Automatic (Interact)

msf6 exploit(linux/samba/is_known_pipename) > run

[-] 192.168.144.2:445 - Exploit failed [no-access]: Rex::Proto::SMB::Exceptions::LoginError Login Failed: (0xc000006d) STATUS_LOGON_FAILURE: The attempted logon is invalid. This is either due to a bad username or authentication information.
[*] Exploit completed, but no session was created.

注意,issue仅接受vulhub自身的bug,如:

注意:关于环境搭建成功,但复现漏洞不成功的情况,我可能不会测试并回复issue,因为我在搭建环境的时候均已测试成功。建议此类issue作者自行测试并寻找错误原因,如果找到原因的确是vulhub的问题(比如某种情况没考虑到),则再创建issue。

不接受:

附加信息

请贴出完整错误信息,可以是命令行输出、软件报错信息、截图等。

注意,请贴出完整错误信息,不要只粘贴错误的最后一行!

phith0n commented 4 years ago

I can't reproduce this bug too, anonymous connection of Samba is failed.

phith0n commented 4 years ago

Hi there,

Please try the newest version of samba/CVE-2017-7494 to test this vulnerability.

Notice that I update the exploit manual in samba/CVE-2017-7494/README.md, metasploit is not usable for it.