Skip to content

smb_version: Make SMBv1 happy#21347

Open
g0tmi1k wants to merge 3 commits intorapid7:masterfrom
g0tmi1k:smb_version
Open

smb_version: Make SMBv1 happy#21347
g0tmi1k wants to merge 3 commits intorapid7:masterfrom
g0tmi1k:smb_version

Conversation

@g0tmi1k
Copy link
Copy Markdown
Contributor

@g0tmi1k g0tmi1k commented Apr 21, 2026

The target is metasploitable 2 VM.

Before

msf > use auxiliary/scanner/smb/smb_version
msf auxiliary(scanner/smb/smb_version) >
msf auxiliary(scanner/smb/smb_version) > options

Module options (auxiliary/scanner/smb/smb_version):

   Name     Current Setting  Required  Description
   ----     ---------------  --------  -----------
   RHOSTS   10.0.0.10        yes       The target host(s), see https://docs.metasploit.com/docs/using-metasploit/basics/using-metasploit.html
   RPORT                     no        The target port (TCP)
   THREADS  1                yes       The number of concurrent threads (max one per host)


View the full module info with the info, or info -d command.

msf auxiliary(scanner/smb/smb_version) >

msf auxiliary(scanner/smb/smb_version) > run
[*] 10.0.0.10:445         - Force SMB1 since SMB fingerprint needs native_lm/native_os information
[*] 10.0.0.10:445         -   Host could not be identified: Unix (Samba 3.0.20-Debian)
[*] 10.0.0.10             - Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
msf auxiliary(scanner/smb/smb_version) >

After

msf auxiliary(scanner/smb/smb_version) > run
[*] 10.0.0.10:445         - Force SMB1 since SMB fingerprint needs native_lm/native_os information
[*] 10.0.0.10:445         - SMB Detected (versions: 1) (preferred dialect: ) (signatures:optional)
[+] 10.0.0.10:445         -   Host is running Unix
[*] 10.0.0.10             - Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
msf auxiliary(scanner/smb/smb_version) >

@g0tmi1k
Copy link
Copy Markdown
Contributor Author

g0tmi1k commented Apr 22, 2026

msf auxiliary(scanner/smb/smb_version) > run
[*] 10.0.0.10:445         - Force SMB1 since SMB fingerprint needs native_lm/native_os information
[*] 10.0.0.10:445         - SMB Detected (versions: 1) (preferred dialect: ) (signatures: optional)
[+] 10.0.0.10:445         -   Host is running Unix
[*] 10.0.0.10:445         -   Samba 3.0.20-Debian
[*] 10.0.0.10             - Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
msf auxiliary(scanner/smb/smb_version) >

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants