Last active
July 27, 2020 03:57
-
-
Save LuisErnestoZamb/5616d30cc137d9c8a40072c3de0e9bc2 to your computer and use it in GitHub Desktop.
How to hack a Centos 4 machine to get a recent version of OpenSSL in order to execute AWS SQS through perl (Amazon::SQS::[email protected])
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(echo o conf prerequisites_policy follow;echo o conf commit)|cpan | |
wget http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4 | |
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4 | |
yum install -y gcc perl-Digest-SHA1 perl-Digest-HMAC perl-Net-SSLeay perl-libwww-perl perl-Crypt-SSLeay openssl-perl openssl-devel system-config-date | |
cpan App::cpanminus | |
cpanm [email protected] [email protected] | |
openssl version | |
yum install gcc | |
cd /usr/src | |
wget https://www.openssl.org/source/openssl-1.0.2r.tar.gz -O openssl-1.0.2r.tar.gz --no-check-certificate | |
tar -zxf openssl-1.0.2r.tar.gz | |
cd openssl-1.0.2r | |
./config ; make ; make test; make install; openssl version; | |
mv /usr/bin/openssl /root/ | |
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl | |
openssl version | |
/sbin/ntpdate ntp.ubuntu.com | |
cpanm MIME::Base64 JSON YAML::XS IO::Socket::INET Try::Tiny | |
cpan LWP::Protocol::https Digest::SHA Digest::HMAC_SHA1 URI::Escape XML::Simple Try::Tiny Proc::Daemon JSON YAML::XS MIME::Base64 XML::Simple Time::HiRes Proc::Daemon | |
cpan IO::HTML HTTP::Request Module::Metadata LWP::UserAgent Date::Parse AWS::Signature4 | |
cpanm Amazon::SQS::[email protected] | |
# For timezone errors: | |
rm /etc/localtime | |
ln -s /usr/share/zoneinfo/GMT /etc/localtime | |
/sbin/ntpdate -u ntp.ubuntu.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment