Skip to content

Commit befe224

Browse files
committed
Use wordpress_and_online? before actions
1 parent 3fdd3d3 commit befe224

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/auxiliary/scanner/http/wordpress_content_injection.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ def check_host(_ip)
6666
end
6767

6868
def run_host(_ip)
69+
if !wordpress_and_online?
70+
print_error("WordPress not detected at #{full_uri}")
71+
return
72+
end
73+
6974
case action.name
7075
when 'LIST'
7176
do_list

0 commit comments

Comments
 (0)