Skip to content

Commit

Permalink
Move ACPP default port into Rex
Browse files Browse the repository at this point in the history
  • Loading branch information
jhart-r7 committed Jan 13, 2015
1 parent 4e6879f commit 69f03f5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/metasploit/framework/login_scanner/acpp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class ACPP
#
# CONSTANTS
#
DEFAULT_PORT = 5009
LIKELY_PORTS = [ 5009 ]
DEFAULT_PORT = Rex::Proto::ACPP::DEFAULT_PORT
LIKELY_PORTS = [ DEFAULT_PORT ]
LIKELY_SERVICE_NAMES = [ 'acpp' ]
PRIVATE_TYPES = [ :password ]
REALM_KEY = nil
Expand Down
8 changes: 8 additions & 0 deletions lib/rex/proto/acpp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@

require 'rex/proto/acpp/client'
require 'rex/proto/acpp/message'

module Rex
module Proto
module ACPP
DEFAULT_PORT = 5009
end
end
end
2 changes: 1 addition & 1 deletion modules/auxiliary/scanner/acpp/login.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def initialize

register_options(
[
Opt::RPORT(5009)
Opt::RPORT(Rex::Proto::ACPP::DEFAULT_PORT)
], self.class)

deregister_options(
Expand Down

0 comments on commit 69f03f5

Please sign in to comment.