snipt

Ctrl+h for KB shortcuts

Bash

hijack specific production db queries

sudo tcpdump -i eth0 -s 0 -l -w - dst port 3306 | strings | grep .......
https://snippets.siftie.com/embed/0527de2bf1e427ba69332b7e8d17d771/
/raw/0527de2bf1e427ba69332b7e8d17d771/
0527de2bf1e427ba69332b7e8d17d771
bash
Bash
1
2019-03-15T11:31:32
True
False
False
/api/public/snipt/33998/
hijack-specific-production-db-queries
<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>sudo tcpdump -i eth0 -s <span class="m">0</span> -l -w - dst port <span class="m">3306</span> <span class="p">|</span> strings <span class="p">|</span> grep ....... </span></pre></div> </td></tr></table>
database, production, sql, tcpdump

Bash

tcpdump example

tcpdump -nAs0 -w /tmp/`hostname`.`date +%Y%m%d-%H%M`.cap host 10.132.7.157 or 10.132.7.13 and not arp
https://snippets.siftie.com/embed/6dbf76b9072e7589366eff50ca8d1530/
/raw/6dbf76b9072e7589366eff50ca8d1530/
6dbf76b9072e7589366eff50ca8d1530
bash
Bash
1
2019-03-17T19:25:44
True
False
False
/api/public/snipt/11359/
tcpdump-example
<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>tcpdump -nAs0 -w /tmp/<span class="sb">`</span>hostname<span class="sb">`</span>.<span class="sb">`</span>date +%Y%m%d-%H%M<span class="sb">`</span>.cap host 10.132.7.157 or 10.132.7.13 and not arp </span></pre></div> </td></tr></table>
tcpdump

Bash

simple packet filtering on local host

tcpdump -A -i lo0 port 8080
https://snippets.siftie.com/embed/391e44ef7303505434c875f8dce9e54b/
/raw/391e44ef7303505434c875f8dce9e54b/
391e44ef7303505434c875f8dce9e54b
bash
Bash
1
2019-03-17T18:30:33
True
False
False
/api/public/snipt/4102/
simple-packet-filtering-on-local-host
<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>tcpdump -A -i lo0 port 8080 </span></pre></div> </td></tr></table>
sysadmin, tcpdump