Skip to content

Commit 69f03f5

Browse files
committed
Move ACPP default port into Rex
1 parent 4e6879f commit 69f03f5

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

lib/metasploit/framework/login_scanner/acpp.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ class ACPP
1717
#
1818
# CONSTANTS
1919
#
20-
DEFAULT_PORT = 5009
21-
LIKELY_PORTS = [ 5009 ]
20+
DEFAULT_PORT = Rex::Proto::ACPP::DEFAULT_PORT
21+
LIKELY_PORTS = [ DEFAULT_PORT ]
2222
LIKELY_SERVICE_NAMES = [ 'acpp' ]
2323
PRIVATE_TYPES = [ :password ]
2424
REALM_KEY = nil

lib/rex/proto/acpp.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,11 @@
77

88
require 'rex/proto/acpp/client'
99
require 'rex/proto/acpp/message'
10+
11+
module Rex
12+
module Proto
13+
module ACPP
14+
DEFAULT_PORT = 5009
15+
end
16+
end
17+
end

modules/auxiliary/scanner/acpp/login.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def initialize
3434

3535
register_options(
3636
[
37-
Opt::RPORT(5009)
37+
Opt::RPORT(Rex::Proto::ACPP::DEFAULT_PORT)
3838
], self.class)
3939

4040
deregister_options(

0 commit comments

Comments
 (0)