Use wordpress_and_online? before actions
parent
3fdd3d3651
commit
befe224c58
|
@ -66,6 +66,11 @@ class MetasploitModule < Msf::Auxiliary
|
||||||
end
|
end
|
||||||
|
|
||||||
def run_host(_ip)
|
def run_host(_ip)
|
||||||
|
if !wordpress_and_online?
|
||||||
|
print_error("WordPress not detected at #{full_uri}")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
case action.name
|
case action.name
|
||||||
when 'LIST'
|
when 'LIST'
|
||||||
do_list
|
do_list
|
||||||
|
|
Loading…
Reference in New Issue