@@ -39,13 +39,10 @@ def initialize(info = {})
39
39
register_options (
40
40
[
41
41
OptAddressLocal . new ( 'LHOST' , "The local listener hostname" , default : "127.0.0.1" ) ,
42
- OptPort . new ( 'LPORT' , "The local listener port" , default : 8443 ) ,
43
- OptString . new ( 'HttpProxyHost' , "The proxy server's IP address" , required : true , default : "127.0.0.1" , aliases : [ 'PayloadProxyHost' ] ) ,
44
- OptPort . new ( 'HttpProxyPort' , "The proxy port to connect to" , required : true , default : 8080 , aliases : [ 'PayloadProxyPort' ] ) ,
45
- OptEnum . new ( 'HttpProxyType' , 'The proxy type, HTTP or SOCKS' , enums : [ 'HTTP' , 'SOCKS' ] , aliases : [ 'PayloadProxyType' ] ) ,
46
- OptString . new ( 'HttpProxyUser' , "An optional username for HTTP proxy authentication" , aliases : [ 'PayloadProxyUser' ] ) ,
47
- OptString . new ( 'HttpProxyPass' , "An optional password for HTTP proxy authentication" , aliases : [ 'PayloadProxyPass' ] )
48
- ] , Msf ::Handler ::ReverseHttpsProxy )
42
+ OptPort . new ( 'LPORT' , "The local listener port" , default : 8443 )
43
+ ] +
44
+ Msf ::Opt ::http_proxy_options ,
45
+ Msf ::Handler ::ReverseHttpsProxy )
49
46
50
47
register_advanced_options (
51
48
[
0 commit comments