snipt

Ctrl+h for KB shortcuts
Sign up for : store and share your own code snippets.
#138797

Bash

fail2ban show banned ips

# display banned ip for ssh service
fail2ban-client status ssh-iptables
https://snipt.net/embed/2a4593f95017f5a6649ba0c06fb75f3d/
https://snipt.net/raw/2a4593f95017f5a6649ba0c06fb75f3d/
2a4593f95017f5a6649ba0c06fb75f3d
bash
Bash
2
2015-04-01T06:13:35
True
False
Mar 31, 2015 at 10:20 AM
/api/public/snipt/138797/
fail2ban-show-banned-ips-03e1cae8
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="c"># display banned ip for ssh service</span> </span><span id="L-2"><a name="L-2"></a>fail2ban-client status ssh-iptables </span></pre></div> </td></tr></table>
centos, fail2ban, security
#138795

Bash

nmap centos

1
2
3
4
5
# Voir tous les ports TCP ouverts sur une machine, utilisation de messages SYN, donc pas de log sur la machine cible :
nmap -F -n -sS 127.0.0.1

# Voir tous les ports UDP ouverts sur une machine :
nmap -sU 127.0.0.1
https://snipt.net/embed/ae3a46c01b364683dcf3f7e5aef3f3df/
https://snipt.net/raw/ae3a46c01b364683dcf3f7e5aef3f3df/
ae3a46c01b364683dcf3f7e5aef3f3df
bash
Bash
5
2015-04-01T06:13:35
True
False
/api/public/snipt/138795/
namp-centos-18fbc7fe
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="c"># Voir tous les ports TCP ouverts sur une machine, utilisation de messages SYN, donc pas de log sur la machine cible :</span> </span><span id="L-2"><a name="L-2"></a>nmap -F -n -sS 127.0.0.1 </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a><span class="c"># Voir tous les ports UDP ouverts sur une machine :</span> </span><span id="L-5"><a name="L-5"></a>nmap -sU 127.0.0.1 </span></pre></div> </td></tr></table>
centos, nmap, security
#138773

Text only

close telnet shortcut

 hold Alt key then enter 29 on num keypad
https://snipt.net/embed/c8cae63193ffb6b4899b703689df4f8f/
https://snipt.net/raw/c8cae63193ffb6b4899b703689df4f8f/
c8cae63193ffb6b4899b703689df4f8f
text
Text only
1
2015-04-01T06:13:32
True
False
Mar 29, 2015 at 09:07 AM
/api/public/snipt/138773/
close-telnet-shortcut-cbe66fa4
<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 id="L-1"><a name="L-1"></a> hold Alt key then enter 29 on num keypad </span></pre></div> </td></tr></table>
telnet
#138724

Text only

convert to responsive

http://www.quora.com/What-is-the-best-way-to-convert-a-non-responsive-WordPress-theme-to-a-responsive-one
https://snipt.net/embed/b1039926bde5f1fe0312baa8ee8a236d/
https://snipt.net/raw/b1039926bde5f1fe0312baa8ee8a236d/
b1039926bde5f1fe0312baa8ee8a236d
text
Text only
1
2015-04-01T06:13:31
True
False
Mar 27, 2015 at 12:24 AM
/api/public/snipt/138724/
convert-to-responsive-618e42b6
<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 id="L-1"><a name="L-1"></a>http://www.quora.com/What-is-the-best-way-to-convert-a-non-responsive-WordPress-theme-to-a-responsive-one </span></pre></div> </td></tr></table>
Copyrighted, illegal, or inappropriate content? Email [email protected].