<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Security-Planet.de &#187; Capture</title>
	<atom:link href="http://security-planet.de/tag/capture/feed/" rel="self" type="application/rss+xml" />
	<link>http://security-planet.de</link>
	<description>IT-Security, Netzwerktechnik, dies und das</description>
	<lastBuildDate>Tue, 20 Jul 2010 16:50:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cisco IOS: Embedded Packet Capture</title>
		<link>http://security-planet.de/2009/05/02/cisco-ios-embedded-packet-capture/</link>
		<comments>http://security-planet.de/2009/05/02/cisco-ios-embedded-packet-capture/#comments</comments>
		<pubDate>Sat, 02 May 2009 16:11:29 +0000</pubDate>
		<dc:creator>Karsten</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Capture]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[Konfiguration]]></category>

		<guid isPermaLink="false">http://security-planet.de/?p=1734</guid>
		<description><![CDATA[Viele Cisco-Geräte erlauben es, direkt auf der Netzwerk-Schnittstelle Pakete mitzuschneiden. Wie das mit der PIX/ASA geht habe ich schon vor längerer Zeit beschrieben.
Seit IOS 12.4(20)T geht das auch auf dem Router. Steffen Lehmann von Systema hat dazu eine kleine Einführung gerschrieben und sie mir zur Verfügung gestellt:

Ab 12.4(20)T kann ohne großen Aufwand ein Router Interface [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://security-planet.de/wp-content/uploads/2008/12/router.png" alt="router" title="router" width="70" height="49" class="alignleft size-full wp-image-643" />Viele Cisco-Geräte erlauben es, direkt auf der Netzwerk-Schnittstelle Pakete mitzuschneiden. Wie das mit der PIX/ASA geht habe ich schon <a href="http://security-planet.de/2005/07/26/cisco-pix-capturing-traffic/">vor längerer Zeit beschrieben</a>.</p>
<p>Seit IOS 12.4(20)T geht das auch auf dem Router. <em><a href="https://www.xing.com/profile/Steffen_Lehmann">Steffen Lehmann</a></em> von <a href="http://www.systema-online.de/">Systema</a> hat dazu eine kleine Einführung gerschrieben und sie mir zur Verfügung gestellt:</p>
<hr />
Ab 12.4(20)T kann ohne großen Aufwand ein Router Interface gespiegelt werden und per ftp/tftp der Output im Wireshark kompatiblen Format exportiert werden.</p>
<p>Dies funktioniert auch für SUB Interfaces auf einem 802.1q Trunk .</p>
<p><strong>Die Konfguration</strong></p>
<ol>
<li>Erstellen des Buffers</li>
<p>Hier wird der das Puffer File definiert, welches für die „gedumpten“ Pakete verwendet wird.</p>
<pre class="code"><code>
Router#monitor capture buffer >Buffer Filename<
</code></pre>
<p><img src="http://security-planet.de/wp-content/uploads/2009/05/embedded-packet-capture_htm_4d612e2.gif" alt="embedded-packet-capture_htm_4d612e2" title="embedded-packet-capture_htm_4d612e2" width="880" height="72" class="alignnone size-full wp-image-1748" /></p>
<li>Erstellen des Capture Point</li>
<p>Damit wird definiert, welche Source für eine bestimmte Session (Capture Point) genutzt wird.</p>
<pre class="code"><code>
Router#monitor capture point ip cef >CapturePointName< >IF Name< >Richtung<
</code></pre>
<p><img src="http://security-planet.de/wp-content/uploads/2009/05/embedded-packet-capture_htm_m43ffb00a.gif" alt="embedded-packet-capture_htm_m43ffb00a" title="embedded-packet-capture_htm_m43ffb00a" width="877" height="56" class="alignnone size-full wp-image-1751" /></p>
<li>Zuordnung Buffer – Capture Point</li>
<pre class="code"><code>
Router#monitor capture point associate >CapturePointName< >Buffer Filename<
</code></pre>
<p><img src="http://security-planet.de/wp-content/uploads/2009/05/embedded-packet-capture_htm_efca750.gif" alt="embedded-packet-capture_htm_efca750" title="embedded-packet-capture_htm_efca750" width="642" height="46" class="alignnone size-full wp-image-1752" /></p>
<li>Start des Capture</li>
<pre class="code"><code>
Router#monitor capture point start >CapturePointName<
</code></pre>
<p><img src="http://security-planet.de/wp-content/uploads/2009/05/embedded-packet-capture_htm_m69e287f3.gif" alt="embedded-packet-capture_htm_m69e287f3" title="embedded-packet-capture_htm_m69e287f3" width="524" height="32" class="alignnone size-full wp-image-1753" /></p>
<li>Monitoring</li>
<p>Um festzustellen, wie viele Pakete schon gemonitort wurden, kann mit folgendem Kommando nachgesehen werden...</p>
<pre class="code"><code>
Router#show monitor capture buffer > Buffer Filename<
</code></pre>
<p><img src="http://security-planet.de/wp-content/uploads/2009/05/embedded-packet-capture_htm_m1a74612e.gif" alt="embedded-packet-capture_htm_m1a74612e" title="embedded-packet-capture_htm_m1a74612e" width="690" height="329" class="alignnone size-full wp-image-1754" /></p>
<li>Beenden des Capture</li>
<pre class="code"><code>
Router#monitor capture point stop >CapturePointName<
</code></pre>
<li>Kopieren des Capture File auf externen Server</li>
<pre class="code"><code>
Router#monitor capture buffer >Buffer Filename< export tftp://>IPADRESSE>/>Dateiname<
</code></pre>
<p><img src="http://security-planet.de/wp-content/uploads/2009/05/embedded-packet-capture_htm_43109f51.gif" alt="embedded-packet-capture_htm_43109f51" title="embedded-packet-capture_htm_43109f51" width="690" height="57" class="alignnone size-full wp-image-1755" /></p>
<p>Jetzt kann die Datei auf dem remote Rechner mit Wireshark geöffnet und analysiert werden.
</ol>
]]></content:encoded>
			<wfw:commentRss>http://security-planet.de/2009/05/02/cisco-ios-embedded-packet-capture/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Cisco ASA: Neuerungen beim Capture</title>
		<link>http://security-planet.de/2007/09/13/cisco-asa-neuerungen-beim-capture/</link>
		<comments>http://security-planet.de/2007/09/13/cisco-asa-neuerungen-beim-capture/#comments</comments>
		<pubDate>Thu, 13 Sep 2007 16:05:42 +0000</pubDate>
		<dc:creator>Karsten</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Cisco - Security]]></category>
		<category><![CDATA[Capture]]></category>
		<category><![CDATA[PIX/ASA]]></category>

		<guid isPermaLink="false">http://security-planet.de/2007/09/13/cisco-asa-neuerungen-beim-capture/</guid>
		<description><![CDATA[Über die Möglichkeit auf der PIX/ASA ala tcpdump Pakete mitzuschneiden habe ich schon geschrieben. Diese seit der Version 6.2 vorhandene Funktion wurde zwar schon mehrfach erweitert, die interessanteste Änderung ist jetzt aber in den zur Version 8 gehörenden ASDM eingebaut worden: Ein Capture-Wizard, mit dem diese Funktion extrem einfach benutzbar wird.
Dieser Wizard arbeitet in sechs [...]]]></description>
			<content:encoded><![CDATA[<p>Über die Möglichkeit auf der PIX/ASA ala tcpdump Pakete mitzuschneiden habe ich <a href="http://security-planet.de/2005/07/26/cisco-pix-capturing-traffic/" title="Cisco PIX/ASA - Capturing Traffic">schon geschrieben</a>. Diese seit der Version 6.2 vorhandene Funktion wurde zwar schon mehrfach erweitert, die interessanteste Änderung ist jetzt aber in den zur Version 8 gehörenden ASDM eingebaut worden: Ein Capture-Wizard, mit dem diese Funktion extrem einfach benutzbar wird.</p>
<p>Dieser Wizard arbeitet in sechs einfachen Schritten:<span id="more-221"></span></p>
<ol>
<li>Der Wizard wird aus dem Menü heraus gestartet und beschreibt die sechs nötigen Schritte:<img src="http://security-planet.de/wp-content/uploads/2007/09/space1.png" alt="space1.png" /><br />
<img src="http://security-planet.de/wp-content/uploads/2007/09/capture1.png" alt="Cisco ASA: Neuerungen beim Capture" /><img src="http://security-planet.de/wp-content/uploads/2007/09/space1.png" alt="space1.png" /></li>
<li>Für das Eingangsinterface wird der mitzuschneidende Traffic definiert:<img src="http://security-planet.de/wp-content/uploads/2007/09/space1.png" alt="space1.png" /><br />
<img src="http://security-planet.de/wp-content/uploads/2007/09/capture2.png" alt="Cisco ASA: Neuerungen beim Capture" /><img src="http://security-planet.de/wp-content/uploads/2007/09/space1.png" alt="space1.png" /></li>
<li>Die gleiche Konfiguration wird für das Ausgangsinterface gemacht:<img src="http://security-planet.de/wp-content/uploads/2007/09/space1.png" alt="space1.png" /><br />
<img src="http://security-planet.de/wp-content/uploads/2007/09/capture3.png" alt="Cisco ASA: Neuerungen beim Capture" /><img src="http://security-planet.de/wp-content/uploads/2007/09/space1.png" alt="space1.png" /></li>
<li>Im vierten Schritt wird die mitzuschneidende Paketgröße, die Größe des Buffers und die Art des Buffers konfiguriert: <img src="http://security-planet.de/wp-content/uploads/2007/09/space1.png" alt="space1.png" height="10" width="400" /><br />
<img src="http://security-planet.de/wp-content/uploads/2007/09/capture4.png" alt="Cisco ASA: Neuerungen beim Capture" /><img src="http://security-planet.de/wp-content/uploads/2007/09/space1.png" alt="space1.png" /></li>
<li>Eine kleine Zusammenfassung der konfigurierten Parameter wird angezeigt: <img src="http://security-planet.de/wp-content/uploads/2007/09/space1.png" alt="space1.png" /><br />
<img src="http://security-planet.de/wp-content/uploads/2007/09/capture5.png" alt="Cisco ASA: Neuerungen beim Capture" /><img src="http://security-planet.de/wp-content/uploads/2007/09/space1.png" alt="space1.png" /></li>
<li>Als nächstes wird der Capture-Vorgang über den &#8220;Start&#8221;-Knopf begonnen: <img src="http://security-planet.de/wp-content/uploads/2007/09/space1.png" alt="space1.png" /><br />
<img src="http://security-planet.de/wp-content/uploads/2007/09/capture6-1.png" alt="Cisco ASA: Neuerungen beim Capture" /><img src="http://security-planet.de/wp-content/uploads/2007/09/space1.png" alt="space1.png" /></li>
<li>Die Fenster bleiben aber solange leer bis das Capturing gestoppt wird: <img src="http://security-planet.de/wp-content/uploads/2007/09/space1.png" alt="space1.png" /><br />
<img src="http://security-planet.de/wp-content/uploads/2007/09/capture6-2.png" alt="Cisco ASA: Neuerungen beim Capture" /><img src="http://security-planet.de/wp-content/uploads/2007/09/space1.png" alt="space1.png" /></li>
<li>Wenn der Pfad zum Ethereal/Wireshark im ASDM konfiguriert wurde, können die mitgeschnittenen Dateien auch direkt dort dargestellt werden: <img src="http://security-planet.de/wp-content/uploads/2007/09/space1.png" alt="space1.png" /><br />
<img src="http://security-planet.de/wp-content/uploads/2007/09/capture7.png" alt="Cisco ASA: Neuerungen beim Capture" /><img src="http://security-planet.de/wp-content/uploads/2007/09/space1.png" alt="space1.png" /></li>
</ol>
<p>Schon diese Neuerung rechtfertigt fast den Wechsel auf die neue Version 8. Aber halt auch nur fast. Vorher muß sich erstmal zeigen wieviele Bugs in der aktuellen 8.02 noch drin sind &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://security-planet.de/2007/09/13/cisco-asa-neuerungen-beim-capture/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco PIX/ASA &#8211; Capturing Traffic</title>
		<link>http://security-planet.de/2005/07/26/cisco-pix-capturing-traffic/</link>
		<comments>http://security-planet.de/2005/07/26/cisco-pix-capturing-traffic/#comments</comments>
		<pubDate>Tue, 26 Jul 2005 17:44:54 +0000</pubDate>
		<dc:creator>Karsten</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Cisco - Security]]></category>
		<category><![CDATA[Capture]]></category>
		<category><![CDATA[Konfiguration]]></category>
		<category><![CDATA[PIX/ASA]]></category>

		<guid isPermaLink="false">http://security-planet.de/?p=17</guid>
		<description><![CDATA[This document shows how to capture traffic directly at the Cisco PIX/ASA Firewall. Thats a very powerful tool for troubleshooting.



The Topology used in this test:



All traffic for the bastionhost (172.16.1.2) has to be captured for further analysis, the IP of the insidehost (10.0.1.12) is source-NATed to 172.16.1.20 when connecting to the DMZ.
This setup is based [...]]]></description>
			<content:encoded><![CDATA[<p>This document shows how to capture traffic directly at the Cisco PIX/ASA Firewall. Thats a very powerful tool for troubleshooting.<span id="more-31"></span></p>
<table>
<tr>
<td>
<strong>The Topology used in this test:</strong><br />
<img src="http://security-planet.de/wp-content/uploads/2006/08/pixcapture01.png" id="image83" alt="Capturing Traffic on the PIX - Topology" /></td>
</tr>
</table>
<p>All traffic for the bastionhost (172.16.1.2) has to be captured for further analysis, the IP of the insidehost (10.0.1.12) is source-NATed to 172.16.1.20 when connecting to the DMZ.</p>
<p><strong>This setup is based on the following PixOS-Release:</strong></p>
<pre class="code"><code>
pix1# show version

Cisco PIX Firewall Version 6.3(3)
...
Hardware:   PIX-515, 64 MB RAM, CPU Pentium 200 MHz
Licensed Features:
Failover:                    Enabled
VPN-DES:                     Enabled
VPN-3DES-AES:                Enabled
Maximum Physical Interfaces: 6
Maximum Interfaces:          10
Cut-through Proxy:           Enabled
Guards:                      Enabled
URL-filtering:               Enabled
Inside Hosts:                Unlimited
Throughput:                  Unlimited
IKE peers:                   Unlimited
</code></pre>
<p><strong>The capture-command:</strong></p>
<pre class=code><code>
pix1(config)# capture
Not enough arguments.
Usage: capture <capture-name> [access-list <acl-name>] [buffer <buf-size>]
               [ethernet-type <type>] [interface <if-name>]
               [packet-length <bytes>]
               [circular-buffer]
       clear capture <capture-name>
       no capture <capture-name> [access-list [<acl_name>]] [circular-buffer]
               [interface <if-name>]
       show capture [<capture-name> [access-list <acl-name>] [count <number>]
                     [detail] [dump]]
</number></acl-name></capture-name></if-name></acl_name></capture-name></capture-name></bytes></if-name></type></buf-size></acl-name></capture-name></code></pre>
<p><strong>Configuring the capture-function:</strong></p>
<ol>
<li>Write an access-list that describes the interesting traffic (optional)</li>
<li>Bind a capture-statement to an interface</li>
<li>Wait for traffic</li>
<li>Display or download the capture</li>
</ol>
<p><strong>Example:</strong></p>
<pre class="code"><code>
pix1(config)# access-list capture-bastion permit ip any host bastionhost
pix1(config)# access-list capture-bastion permit ip host bastionhost any
pix1(config)# capture cap1 access-list capture-bastion interface dmz
pix1(config)#
pix1(config)# show capture
capture cap1 access-list capture-bastion interface dmz
pix1(config)#
pix1(config)# show capture cap1
0 packet captured
0 packet shown
pix1(config)#
</code></pre>
<p>(now we ping the bastionhost and access the web-server)</p>
<p><strong>The resulting capture on the PIX:</strong></p>
<pre class="code"><code>
pix1(config)# show capture cap1 detail
9 packets captured
19:28:27.554536 000d.56a9.3bbe 000c.297c.dffa 0x0800 74: 172.16.1.20 &gt; bastionhost:
	icmp: echo request (ttl 128, id 46758)
19:28:27.555131 000c.297c.dffa 0002.b326.0704 0x0800 74: bastionhost &gt; 172.16.1.20:
	icmp: echo reply (ttl 255, id 210)
19:28:38.482488 000d.56a9.3bbe 000c.297c.dffa 0x0800 62: 172.16.1.20.3874 &gt; bastionhost.80:
	S [tcp sum ok] 306572975:306572975(0) win 65520 <mss> (DF)
	(ttl 128, id 46777)
19:28:38.483159 000c.297c.dffa 0002.b326.0704 0x0800 62: bastionhost.80 &gt; 172.16.1.20.3874:
	S [tcp sum ok] 2581607285:2581607285(0) ack 306572976 win 15120
	<mss> (DF) (ttl 64, id 211)
19:28:38.483419 000d.56a9.3bbe 000c.297c.dffa 0x0800 54: 172.16.1.20.3874 &gt; bastionhost.80:
	. [tcp sum ok] 306572976:306572976(0) ack 2581607286 win 65520 (DF) (ttl 128, id 46778)
19:28:38.484731 000d.56a9.3bbe 000c.297c.dffa 0x0800 402: 172.16.1.20.3874 &gt; bastionhost.80:
	P 306572976:306573324(348) ack 	2581607286 win 65520 (DF) (ttl 128, id 46779)
19:28:38.485158 000c.297c.dffa 0002.b326.0704 0x0800 60: bastionhost.80 &gt; 172.16.1.20.3874:
	. [tcp sum ok] 2581607286:2581607286(0) ack 306573324 win 15120 (DF) (ttl 64, id 212)
19:28:38.488179 000c.297c.dffa 0002.b326.0704 0x0800 584: bastionhost.80 &gt; 172.16.1.20.3874:
	P 2581607286:2581607816(530) ack 306573324 win 16380 (DF) (ttl 64, id 213)
19:28:38.614714 000d.56a9.3bbe 000c.297c.dffa 0x0800 54: 172.16.1.20.3874 &gt; bastionhost.80:
	. [tcp sum ok] 306573324:306573324(0) ack 2581607816 win 64990 (DF) (ttl 128, id 46783)
9 packets shown
</mss></mss></code></pre>
<pre class="code"><code>
pix1(config)# show capture cap1 dump
13 packets captured
19:28:27.554536 172.16.1.20 &gt; bastionhost: icmp: echo request
0x0000   4500 003c b6a6 0000 8001 29e4 ac10 0114        E..&lt;......).....
0x0010   ac10 0102 0800 315c 0300 1900 6162 6364        ......1....abcd
0x0020   6566 6768 696a 6b6c 6d6e 6f70 7172 7374        efghijklmnopqrst
0x0030   7576 7761 6263                                 uvwabc
19:28:27.555131 bastionhost &gt; 172.16.1.20: icmp: echo reply
0x0000   4500 003c 00d2 0000 ff01 60b8 ac10 0102        E..&lt;......`.....
0x0010   ac10 0114 0000 395c 0300 1900 6162 6364        ......9....abcd
0x0020   6566 6768 696a 6b6c 6d6e 6f70 7172 7374        efghijklmnopqrst
0x0030   7576 7761 6263                                 uvwabc
19:28:38.482488 172.16.1.20.3874 &gt; bastionhost.80: S 306572975:306572975(0)
    win 65520 <mss>
0x0000   4500 0030 b6b9 4000 8006 e9d7 ac10 0114        E..0..@.........
0x0010   ac10 0102 0f22 0050 1245 eeaf 0000 0000        .....".P.E......
0x0020   7002 fff0 1959 0000 0204 04ec 0101 0402        p....Y..........
19:28:38.483159 bastionhost.80 &gt; 172.16.1.20.3874: S 2581607285:2581607285(0)
    ack 306572976 win 15120 <mss>
0x0000   4500 0030 00d3 4000 4006 dfbe ac10 0102        E..0..@.@.......
0x0010   ac10 0114 0050 0f22 99e0 3375 1245 eeb0        .....P."..3u.E..
0x0020   7012 3b10 10d3 0000 0204 04ec 0101 0402        p.;.............
</mss></mss></code></pre>
<p><strong>Now we want to see more payload:</strong></p>
<pre class="code"><code>
pix1(config)# clear capture cap1
pix1(config)# show capture cap1
0 packet captured
0 packet shown
pix1(config)#
pix1(config)# capture cap1 packet-length 1500
pix1(config)#
pix1(config)# show capture
capture cap1 access-list capture-bastion packet-length 1500 interface dmz
pix1(config)#
</code></pre>
<p>(we access the web-server again)</p>
<pre class="code"><code>
pix1(config)# show capture cap1 dump
...
19:40:04.374980 172.16.1.20.3876 &gt; bastionhost.80: P 2217891186:2217891534(348)
    ack 3327525020 win 65520
0x0000   4500 0184 b868 4000 8006 e6d4 ac10 0114        E....h@.........
0x0010   ac10 0102 0f24 0050 8432 5572 c656 009c        .....$.P.2Ur.V..
0x0020   5018 fff0 4f1b 0000 4745 5420 2f66 6176        P...O...GET /fav
0x0030   6963 6f6e 2e69 636f 2048 5454 502f 312e        icon.ico HTTP/1.
0x0040   310d 0a48 6f73 743a 2031 3732 2e31 362e        1..Host: 172.16.
0x0050   312e 320d 0a55 7365 722d 4167 656e 743a        1.2..User-Agent:
0x0060   204d 6f7a 696c 6c61 2f35 2e30 2028 5769         Mozilla/5.0 (Wi
0x0070   6e64 6f77 733b 2055 3b20 5769 6e64 6f77        ndows; U; Window
0x0080   7320 4e54 2035 2e31 3b20 656e 2d55 533b        s NT 5.1; en-US;
0x0090   2072 763a 312e 372e 3529 2047 6563 6b6f         rv:1.7.5) Gecko
0x00a0   2f32 3030 3431 3130 3720 4669 7265 666f        /20041107 Firefo
0x00b0   782f 312e 300d 0a41 6363 6570 743a 2069        x/1.0..Accept: i
0x00c0   6d61 6765 2f70 6e67 2c2a 2f2a 3b71 3d30        mage/png,*/*;q=0
0x00d0   2e35 0d0a 4163 6365 7074 2d4c 616e 6775        .5..Accept-Langu
0x00e0   6167 653a 2064 652d 6465 2c64 653b 713d        age: de-de,de;q=
0x00f0   302e 382c 656e 2d75 733b 713d 302e 352c        0.8,en-us;q=0.5,
0x0100   656e 3b71 3d30 2e33 0d0a 4163 6365 7074        en;q=0.3..Accept
0x0110   2d45 6e63 6f64 696e 673a 2067 7a69 702c        -Encoding: gzip,
0x0120   6465 666c 6174 650d 0a41 6363 6570 742d        deflate..Accept-
0x0130   4368 6172 7365 743a 2049 534f 2d38 3835        Charset: ISO-885
0x0140   392d 312c 7574 662d 383b 713d 302e 372c        9-1,utf-8;q=0.7,
0x0150   2a3b 713d 302e 370d 0a4b 6565 702d 416c        *;q=0.7..Keep-Al
0x0160   6976 653a 2033 3030 0d0a 436f 6e6e 6563        ive: 300..Connec
0x0170   7469 6f6e 3a20 6b65 6570 2d61 6c69 7665        tion: keep-alive
0x0180   0d0a 0d0a                                      ....
</code></pre>
<p><strong>We can transfer the capture to our workstation:</strong></p>
<pre class="code"><code>
pix1(config)# copy capture:cap1 tftp://10.0.1.12/bastion.txt
copying Capture to tftp://10.0.1.12/bastion.txt:
pix1(config)#
</code></pre>
<pre class="code"><code>
C:TFTP-Root&gt;dir
 Volume in drive C has no label.
 Volume Serial Number is 5001-0224

 Directory of C:TFTP-Root

16.11.2004  18:50          .
16.11.2004  18:50          ..
16.11.2004  18:49             2.754 bastion.txt
               1 File(s)          2.754 bytes
               2 Dir(s)   1.801.687.040 bytes free

C:TFTP-Root&gt;
</code></pre>
<p><strong>The capture on the workstation (viewed with notepad):</strong><br />
<img src="http://security-planet.de/wp-content/uploads/2006/08/pixcapture02.png" id="image84" alt="Capturing Traffic on the PIX - The copied Textfile" /></p>
<p><strong>We can also export the capture in pcap-format (tcpdump):</strong></p>
<pre class="code"><code>
pix1(config)# copy capture:cap1 tftp://10.0.1.12/bastion.cap pcap
copying Capture to tftp://10.0.1.12/bastion.cap:
pix1(config)#
</code></pre>
<pre class="code"><code>
C:TFTP-Root&gt;dir
 Volume in drive C has no label.
 Volume Serial Number is 5001-0224

 Directory of C:TFTP-Root

16.11.2004  18:55             .
16.11.2004  18:55             ..
16.11.2004  18:55             5.747 bastion.cap
16.11.2004  18:49             2.754 bastion.txt
               2 File(s)          8.501 bytes
               2 Dir(s)   1.801.527.296 bytes free

C:TFTP-Root&gt;
</code></pre>
<p><strong>The capture on the workstation (viewd with Ethereal):</strong><br />
<img src="http://security-planet.de/wp-content/uploads/2006/08/pixcapture03.png" id="image85" alt="Capturing Traffic on the PIX - The copied pcap file" /></p>
<p><strong>The capture can also be downloaded with a browser</strong><br />
If we want to view or download the capture with a browser we have to activate the https-server (thats automatically done if you have activated the PDM/ASDM). This Example shows the PIXv6 syntax:</p>
<pre class="code"><code>
pix1(config)# http server enable
pix1(config)#
pix1(config)# http 10.0.1.12 255.255.255.255 inside
pix1(config)#
pix1(config)# domain-name security-planet.de
pix1(config)#
pix1(config)# ca generate rsa key 1024
For <key_modulus_size> &gt;= 1024, key generation could
  take up to several minutes. Please wait.
Keypair generation process begin.
.Success.

pix1(config)#
</key_modulus_size></code></pre>
<p><strong>We can view the capture in the browser:</strong><br />
<img src="http://security-planet.de/wp-content/uploads/2006/08/pixcapture04.png" id="image86" alt="Capturing Traffic on the PIX - Viewing the dump" /></p>
<p><strong>Or we can download the capture as pcap:</strong><br />
<img src="http://security-planet.de/wp-content/uploads/2006/08/pixcapture05.png" id="image87" alt="Capturing Traffic on the PIX - Downloading the pcap" /></p>
<p><strong>Finally we delete the capture on the PIX:</strong></p>
<pre class="code"><code>
pix1(config)# no capture cap1
pix1(config)#
pix1(config)# show capture cap1
ERROR: capture <cap1> does not exist
pix1(config)# show capture
pix1(config)#
</cap1></code></pre>
<p><iframe src="http://rcm-de.amazon.de/e/cm?t=lan2wan-21&#038;o=3&#038;p=8&#038;l=as1&#038;asins=1587054574&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://security-planet.de/2005/07/26/cisco-pix-capturing-traffic/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
