<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>openssl on Warkruid's Weeds</title><link>https://www.warkruid.com/tags/openssl/</link><description>Recent content in openssl on Warkruid's Weeds</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Fri, 08 Apr 2022 09:18:12 +0200</lastBuildDate><atom:link href="https://www.warkruid.com/tags/openssl/index.xml" rel="self" type="application/rss+xml"/><item><title>OpenSSL: Living Of The Land</title><link>https://www.warkruid.com/openssl-living-of-the-land/</link><pubDate>Fri, 08 Apr 2022 09:18:12 +0200</pubDate><guid>https://www.warkruid.com/openssl-living-of-the-land/</guid><description>There was a question on stackoverflow about the OpenSSL s_client functionality in relation to SMTP mail.
This question seemed a &amp;ldquo;red team&amp;rdquo; question to me.
(Red Team stands for a team that attacks a site or service to test it&amp;rsquo;s security)
How can you use OpenSSL to send mail out of a system?
Let&amp;rsquo;s take a look.
You can pipe SMTP commands into openssl with &amp;ldquo;&amp;laquo;&amp;lt;&amp;rdquo;
SMTPSERVER=&amp;#34;smtp.example.com&amp;#34;
SMTPPORT=587
SMTPCOMMANDS=&amp;#34;QUIT&amp;#34;
openssl s_client -crlf -quiet -starttls smtp -connect ${SMTPSERVER}:${SMTPPORT} &amp;lt;&amp;lt;&amp;lt; ${SMTPCOMMAND} Openssl connects to the smtp server via ttls and opens a command line shell.</description></item></channel></rss>