From 4556f96fe4d07ef9ab98ca2437acdf2a3c434892 Mon Sep 17 00:00:00 2001 From: Jeffrey Martin Date: Thu, 6 Jan 2022 10:46:54 -0600 Subject: [PATCH] suppress cert check from phpmyadmin.net Supress the certificate check and validate a file has the pre-detemined checksum due to root certificate processing issues on EOL Ubuntu 14.04 OS. --- chef/cookbooks/metasploitable/recipes/phpmyadmin.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chef/cookbooks/metasploitable/recipes/phpmyadmin.rb b/chef/cookbooks/metasploitable/recipes/phpmyadmin.rb index f68c67d..35735b6 100644 --- a/chef/cookbooks/metasploitable/recipes/phpmyadmin.rb +++ b/chef/cookbooks/metasploitable/recipes/phpmyadmin.rb @@ -10,7 +10,8 @@ include_recipe 'metasploitable::php_545' bash "download and extract phpmyadmin" do code <<-EOH - wget -c -t 3 -O /tmp/phpMyAdmin-3.5.8-all-languages.tar.gz https://files.phpmyadmin.net/phpMyAdmin/3.5.8/phpMyAdmin-3.5.8-all-languages.tar.gz + wget -c -t 3 --no-check-certificate -O /tmp/phpMyAdmin-3.5.8-all-languages.tar.gz https://files.phpmyadmin.net/phpMyAdmin/3.5.8/phpMyAdmin-3.5.8-all-languages.tar.gz + echo "a129d4f03901c047799f634b122734ab687b48975563c87adbf5dea679676e11 /tmp/phpMyAdmin-3.5.8-all-languages.tar.gz" | shasum -a 256 --check --status tar xvfz /tmp/phpMyAdmin-3.5.8-all-languages.tar.gz -C /var/www/html mv /var/www/html/phpMyAdmin-3.5.8-all-languages /var/www/html/phpmyadmin EOH