Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Bash

Python Temporary SMTP server

python -m smtpd -n -c DebuggingServer localhost:1025
https://snipt.net/embed/1c298b39a7364123392e7265b6863e9a/
https://snipt.net/raw/1c298b39a7364123392e7265b6863e9a/
1c298b39a7364123392e7265b6863e9a
bash
Bash
1
2016-12-06T00:14:43
True
False
False
Aug 06, 2013 at 03:37 PM
/api/public/snipt/72339/
python-temporary-smtp-server
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>python -m smtpd -n -c DebuggingServer localhost:1025 </span></pre></div> </td></tr></table>
python, smtp

Text only

python local smtp server

python -m smtpd -n -c DebuggingServer localhost:1025
https://snipt.net/embed/214eb4f79359c41ec6cafeb257befe51/
https://snipt.net/raw/214eb4f79359c41ec6cafeb257befe51/
214eb4f79359c41ec6cafeb257befe51
text
Text only
1
2016-12-02T12:28:49
True
False
False
/api/public/snipt/29931/
python-local-smtp-server
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>python -m smtpd -n -c DebuggingServer localhost:1025 </span></pre></div> </td></tr></table>
smtp

Bash

Find SMTP server

dig +nocmd $DOMAIN MX +noall +answer | awk '{print $5 " " $6}' | sort  -n | awk '{print substr($2,1,length($2)-1) " " $1 }'
https://snipt.net/embed/34e75d3e86034660caa8f3dcd4c20963/
https://snipt.net/raw/34e75d3e86034660caa8f3dcd4c20963/
34e75d3e86034660caa8f3dcd4c20963
bash
Bash
1
2016-12-06T10:42:29
True
False
False
/api/public/snipt/26901/
find-smtp-server
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>dig +nocmd <span class="nv">$DOMAIN</span> MX +noall +answer <span class="p">|</span> awk <span class="s1">&#39;{print $5 &quot; &quot; $6}&#39;</span> <span class="p">|</span> sort -n <span class="p">|</span> awk <span class="s1">&#39;{print substr($2,1,length($2)-1) &quot; &quot; $1 }&#39;</span> </span></pre></div> </td></tr></table>
dig, dns, mail, smtp
Copyrighted, illegal, or inappropriate content? Email [email protected].