File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
lib/metasploit/framework/login_scanner
spec/lib/metasploit/framework Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ module AccessLevels
30
30
31
31
CAN_GET_SESSION = true
32
32
DEFAULT_REALM = 'WORKSTATION'
33
- LIKELY_PORTS = [ 139 , 445 ]
33
+ LIKELY_PORTS = [ 445 ]
34
34
LIKELY_SERVICE_NAMES = [ "smb" ]
35
35
PRIVATE_TYPES = [ :password , :ntlm_hash ]
36
36
REALM_KEY = Metasploit ::Model ::Realm ::Key ::ACTIVE_DIRECTORY_DOMAIN
Original file line number Diff line number Diff line change 24
24
it { is_expected . not_to include Metasploit ::Framework ::LoginScanner ::HTTP }
25
25
end
26
26
27
- [ 139 , 445 ] . each do |foo |
28
- context "with port #{ foo } " do
29
- let ( :port ) { foo }
30
27
31
- it { is_expected . to include Metasploit ::Framework ::LoginScanner ::SMB }
32
- it { is_expected . not_to include Metasploit ::Framework ::LoginScanner ::HTTP }
33
- it { is_expected . not_to include Metasploit ::Framework ::LoginScanner ::VNC }
34
- end
28
+ context "with port 445" do
29
+ let ( :port ) { 445 }
30
+
31
+ it { is_expected . to include Metasploit ::Framework ::LoginScanner ::SMB }
32
+ it { is_expected . not_to include Metasploit ::Framework ::LoginScanner ::HTTP }
33
+ it { is_expected . not_to include Metasploit ::Framework ::LoginScanner ::VNC }
35
34
end
36
35
36
+
37
37
context "with name 'http'" do
38
38
let ( :name ) { 'http' }
39
39
You can’t perform that action at this time.
0 commit comments