File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed
lib/msf/ui/console/command_dispatcher Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,11 @@ class Auxiliary
27
27
#
28
28
def commands
29
29
super . update ( {
30
- "run" => "Launches the auxiliary module" ,
31
- "rerun" => "Reloads and launches the auxiliary module" ,
32
- "exploit" => "This is an alias for the run command" ,
30
+ "run" => "Launches the auxiliary module" ,
31
+ "rcheck" => "Reloads the module and checks if the target is vulnerable" ,
32
+ "rerun" => "Reloads and launches the auxiliary module" ,
33
+ "exploit" => "This is an alias for the run command" ,
34
+ "recheck" => "This is an alias for the rcheck command" ,
33
35
"rexploit" => "This is an alias for the rerun command" ,
34
36
"reload" => "Reloads the auxiliary module"
35
37
} ) . merge ( ( mod ? mod . auxiliary_commands : { } ) )
@@ -147,6 +149,18 @@ def cmd_run_help
147
149
148
150
alias cmd_exploit_help cmd_run_help
149
151
152
+ #
153
+ # Reloads an auxiliary module and checks the target to see if it's
154
+ # vulnerable.
155
+ #
156
+ def cmd_rcheck ( *args )
157
+ reload ( )
158
+
159
+ cmd_check ( *args )
160
+ end
161
+
162
+ alias cmd_recheck cmd_rcheck
163
+
150
164
end
151
165
152
166
end end end end
Original file line number Diff line number Diff line change @@ -32,9 +32,10 @@ def commands
32
32
"exploit" => "Launch an exploit attempt" ,
33
33
"rcheck" => "Reloads the module and checks if the target is vulnerable" ,
34
34
"rexploit" => "Reloads the module and launches an exploit attempt" ,
35
- "reload" => "Just reloads the module" ,
36
35
"run" => "Alias for exploit" ,
36
+ "recheck" => "Alias for rcheck" ,
37
37
"rerun" => "Alias for rexploit" ,
38
+ "reload" => "Just reloads the module"
38
39
} )
39
40
end
40
41
@@ -186,6 +187,8 @@ def cmd_rcheck(*args)
186
187
cmd_check ( *args )
187
188
end
188
189
190
+ alias cmd_recheck cmd_rcheck
191
+
189
192
#
190
193
# Reloads an exploit module and launches an exploit.
191
194
#
You can’t perform that action at this time.
0 commit comments