MS-CIFS 2.2.4.64.2 vs MS-SMB 2.2.4.9.2 (WC: 34, 42 & 50)#295
Conversation
|
Changes look good to me, thanks for making them. I'll give this a test tomorrow. One question though, is in the before/after of the PR description, I see you're running the module against metasploitable and that with these changes the error about a bad packet should be omitted. My question is, when I test this, are these the only changes I need, or do I need to load your changes from 21345 in framework too? |
|
The above test was with both PRs in place - below is JUST this PR. [*] Connected to the database specified in the YAML file
[*] Connected to msf. Connection type: postgresql. Connection name: OYGIkFxA.
[*] Deleted workspace: default
[*] Recreated the default workspace
VERBOSE => true
RHOSTS => 10.0.0.10
LHOST => tap0
msf > git branch -v
[*] exec: git branch -v
* master 9efc727462 automatic module_metadata_base.json update
smb_enumshares e6ae2314ce smb_enumshares: Allow for SMB1 ruby_smb & rex backends
msf >
msf > use auxiliary/scanner/smb/smb_enumshares
[*] New in Metasploit 6.4 - This module can target a SESSION or an RHOST
msf auxiliary(scanner/smb/smb_enumshares) >
msf auxiliary(scanner/smb/smb_enumshares) > options
Module options (auxiliary/scanner/smb/smb_enumshares):
Name Current Setting Required Description
---- --------------- -------- -----------
HIGHLIGHT_NAME_PATTERN username|password|user|pass|Groups.xml yes PCRE regex of resource names to highlight
LogSpider 3 no 0 = disabled, 1 = CSV, 2 = table (txt), 3 = one liner (txt) (Accepted: 0, 1, 2, 3)
MaxDepth 999 yes Max number of subdirectories to spider
Share no Show only the specified share
ShowFiles false yes Show detailed information when spidering
SpiderProfiles true no Spider only user profiles when share is a disk share
SpiderShares false no Spider shares recursively
Used when connecting via an existing SESSION:
Name Current Setting Required Description
---- --------------- -------- -----------
SESSION no The session to run this module on
Used when making a new connection via RHOSTS:
Name Current Setting Required Description
---- --------------- -------- -----------
RHOSTS 10.0.0.10 no The target host(s), see https://docs.metasploit.com/docs/using-metasploit/basics/using-metasploit.html
SMBDomain . no The Windows domain to use for authentication
SMBPass no The password for the specified username
SMBUser no The username to authenticate as
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_enumshares) >
msf auxiliary(scanner/smb/smb_enumshares) > run
[*] 10.0.0.10: - Connecting to the server...
[+] 10.0.0.10: - print$ - (DISK) Printer Drivers
[+] 10.0.0.10: - tmp - (DISK) oh noes!
[+] 10.0.0.10: - opt - (DISK)
[+] 10.0.0.10: - IPC$ - (IPC) IPC Service (metasploitable server (Samba 3.0.20-Debian))
[+] 10.0.0.10: - ADMIN$ - (IPC) IPC Service (metasploitable server (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_enumshares) > |
|
I gave this a test without the framework changes. With a metasploitable 2 target, it fixes the error in the I'll go ahead and merge this because it at least fixes the metasploitable 2 target. |
|
Thanks @smcintyre-r7! |
This came about due to https://github.com/rapid7/metasploit-framework/pull/21345/changes/BASE..e6ae2314cec27286542a830eb813877d1b88c4cc#r3118623808
As a result, no longer have to use
rexon smb1 (target is Metasploitable 2)Before
After