@@ -30,17 +30,19 @@ arguments = Rex::Parser::Arguments.new(
30
30
"-U" => [ true , "Specify the username to access msfrpcd" ] ,
31
31
"-P" => [ true , "Specify the password to access msfrpcd" ] ,
32
32
"-u" => [ true , "URI for Web server" ] ,
33
- "-S" => [ false , "Disable SSL on the RPC socket" ] ,
33
+ "-t" => [ true , "Token Timeout (default 300 seconds" ] ,
34
+ "-S" => [ false , "Disable SSL on the RPC socket" ] ,
34
35
"-f" => [ false , "Run the daemon in the foreground" ] ,
35
- "-n" => [ false , "Disable database" ] ,
36
+ "-n" => [ false , "Disable database" ] ,
36
37
"-h" => [ false , "Help banner" ] )
37
38
38
39
opts = {
39
40
'RunInForeground' => true ,
40
41
'SSL' => true ,
41
42
'ServerHost' => '0.0.0.0' ,
42
43
'ServerPort' => 55553 ,
43
- 'ServerType' => 'Msg'
44
+ 'ServerType' => 'Msg' ,
45
+ 'TokenTimeout' => 300 ,
44
46
}
45
47
46
48
foreground = false
@@ -60,6 +62,8 @@ arguments.parse(ARGV) { |opt, idx, val|
60
62
opts [ 'User' ] = val
61
63
when '-P'
62
64
opts [ 'Pass' ] = val
65
+ when "-t"
66
+ opts [ 'TokenTimeout' ] = val . to_i
63
67
when "-f"
64
68
foreground = true
65
69
when "-u"
0 commit comments