mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-06-28 15:55:47 +02:00
Add tests for drupal.
This commit is contained in:
parent
1826f8540c
commit
15e9daaf29
11
chef/cookbooks/metasploitable/test/linux/drupal.rb
Normal file
11
chef/cookbooks/metasploitable/test/linux/drupal.rb
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# InSpec Testing for Drupal
|
||||||
|
|
||||||
|
describe command('curl http://localhost/drupal/') do
|
||||||
|
its('stdout') { should match /kali-metasploit-256\.png/ } # Make sure it has the icon
|
||||||
|
its('stdout') { should match /Metasploitable FAQs/ } # Make sure it has the title
|
||||||
|
its('stdout') { should match /What else is there to do here/ } # Make sure it has the content
|
||||||
|
end
|
||||||
|
|
||||||
|
describe command('mysql -h 127.0.0.1 --user="root" --password="sploitme" --execute="SHOW DATABASES LIKE \'drupal\'"') do
|
||||||
|
its('stdout') { should match /drupal/ } # Make sure the database exists
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user