We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 647c867 + ac1fb2d commit 110e78aCopy full SHA for 110e78a
lib/msf/core/exploit/dcerpc_epm.rb
@@ -43,26 +43,20 @@ def dcerpc_endpoint_list
43
print_status("Connecting to the endpoint mapper service...")
44
begin
45
eps = nil
46
- dport = nil
+ dport = datastore['RPORT'] || 135
47
48
- [135, 593].each do |i|
49
- dport = i
50
- begin
51
- eps = Rex::Socket::Tcp.create(
+ begin
+ eps = Rex::Socket::Tcp.create(
52
'PeerHost' => rhost,
53
'PeerPort' => dport,
54
'Proxies' => proxies,
55
'Context' =>
56
- {
57
- 'Msf' => framework,
58
- 'MsfExploit' => self,
59
- }
60
- )
61
-
62
- break
63
64
- rescue ::Exception
65
- end
+ {
+ 'Msf' => framework,
+ 'MsfExploit' => self,
+ }
+ )
+ rescue ::Exception
66
end
67
68
if (not eps)
0 commit comments