Skip to content

Commit

Permalink
Use OptPort vs OptInt and cleanup the description
Browse files Browse the repository at this point in the history
  • Loading branch information
HD Moore committed Mar 18, 2015
1 parent a01be36 commit 2f13988
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/msf/core/handler/reverse_https_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def initialize(info = {})
OptString.new('LHOST', [ true, "The local listener hostname" ,"127.0.0.1"]),
OptPort.new('LPORT', [ true, "The local listener port", 8443 ]),
OptString.new('PROXY_HOST', [true, "The proxy server's IP address", "127.0.0.1"]),
OptInt.new('PROXY_PORT', [ false, "The proxy port to connect to", 8080 ]),
OptPort.new('PROXY_PORT', [true, "The proxy port to connect to", 8080 ]),
OptEnum.new('PROXY_TYPE', [true, 'The proxy type, HTTP or SOCKS', 'HTTP', ['HTTP', 'SOCKS']]),
OptString.new('PROXY_USERNAME', [ false, "An optional username for HTTP proxy authentication"]),
OptString.new('PROXY_PASSWORD', [ false, "An optional password for HTTP proxy authentication"])
Expand Down
4 changes: 2 additions & 2 deletions modules/payloads/stagers/python/reverse_http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def initialize(info = {})

register_options(
[
OptString.new('PROXY_HOST', [ false, "The address of an http proxy to use", "" ]),
OptInt.new('PROXY_PORT', [ false, "The Proxy port to connect to", 8080 ])
OptString.new('PROXY_HOST', [true, "The proxy server's IP address", "127.0.0.1"]),
OptPort.new('PROXY_PORT', [true, "The proxy port to connect to", 8080 ]),
], Msf::Handler::ReverseHttp)
end

Expand Down

0 comments on commit 2f13988

Please sign in to comment.