SMB - 139 & 445

139/tcp   open  netbios-ssn Samba smbd 4.6.2
445/tcp   open  netbios-ssn Samba smbd 4.6.2

Found that this version is vulnerable to SambaCry. Having CVE as CVE-2017–7494.

The above one is an authenticated attack. Luckily, we have a NULL session in SMB shares.

Exploit-1

Let's try following:

I will be using a virtual environment for setting up the required thing.

Install dependency now.

This required python2 and other dependency which was giving error when i tried to install it. So, I tried MetaSploit exploit.

Exploit run but no session was created for this.

Last updated

Was this helpful?