pcapr-local 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.html +468 -0
  2. data/VERSION +1 -1
  3. data/pcapr-local.gemspec +4 -4
  4. metadata +5 -5
  5. data/README.md +0 -64
data/README.html ADDED
@@ -0,0 +1,468 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta content="text/html; charset=ISO-8859-1"
5
+ http-equiv="content-type" />
6
+ <title>Pcapr.Local</title>
7
+ <style type="text/css">
8
+
9
+
10
+ #masthead{
11
+ margin: 0;
12
+ border-bottom: 1px solid #cccccc;
13
+ width: 600px;
14
+ padding-top: 10px;
15
+ padding-right: 0px;
16
+ padding-bottom: 5px;
17
+ padding-left: 0px;
18
+ }
19
+
20
+ #content{
21
+ float: left;
22
+ width: 600px;
23
+ margin: 0;
24
+ padding: 0 3% 0 0;
25
+ line-height: 16px;
26
+ }
27
+
28
+ #siteInfo{
29
+ clear: both;
30
+ border: 1px solid #cccccc;
31
+ font-size: 75%;
32
+ color: #cccccc;
33
+ background-color:inherit;
34
+ padding: 10px 10px 10px 10px;
35
+ margin-top: 0px;
36
+ width: 600px;
37
+ }
38
+
39
+ body {
40
+ background-color: #FFFFFF;
41
+ font-family: Arial, sans-serif;
42
+ font-size: 9pt;
43
+ color: #333333;
44
+ left:auto;
45
+ top: auto;
46
+ bottom: auto;
47
+ margin: 10 0 0 10px;
48
+ right: auto;
49
+ width: 95%;
50
+ }
51
+
52
+ p {
53
+ font-family: Arial, sans-serif;
54
+ font-size: 9pt;
55
+ text-align: left;
56
+ line-height: 16px;
57
+ width: auto;
58
+ margin-top: 10px;
59
+ margin-left: 10px;
60
+ padding: 0px;
61
+ }
62
+
63
+ a:link, a:visited {
64
+ color: #3B6EBF;
65
+ background-color: transparent;
66
+ text-decoration: none;
67
+ }
68
+
69
+ a:hover {
70
+ color: #3B6EBF;
71
+ text-decoration: underline;
72
+ }
73
+
74
+
75
+ .code{
76
+ font-family: Courier, monospace;
77
+ font-size: 9pt
78
+ }
79
+
80
+
81
+ .note {
82
+ font-style: italic;
83
+ font-size: 9pt;
84
+ font-family: Helvetica, Arial, sans-serif;
85
+ margin-top: 10px;
86
+ margin-right: 0;
87
+ margin-bottom: 5px;
88
+ margin-left: 10px;
89
+ width: 85%;
90
+ }
91
+
92
+ li {
93
+ font-family: Arial, sans-serif;
94
+ font-size: 9pt;
95
+ font-weight: normal;
96
+ line-height: 16px;
97
+ width: auto;
98
+ margin-top: 0px;
99
+ margin-right: 0px;
100
+ margin-bottom: 10px;
101
+ margin-left: 6px;
102
+ padding-top: 0px;
103
+ padding-right: 2%;
104
+ padding-bottom: 0px;
105
+ padding-left: 0px;
106
+ }
107
+
108
+ ul {
109
+ list-style-type: disc;
110
+ list-style-position: outside;
111
+ margin-top: 8px;
112
+ }
113
+
114
+ .UI_link_blue {
115
+ color: #369;
116
+ text-decoration: underline;
117
+ }
118
+
119
+ .code_black_background {
120
+ border:1px solid silver;
121
+ font-size: 9pt;
122
+ width: 90%;
123
+ margin-top: 8px;
124
+ margin-left: 2%;
125
+ margin-right: 4px;
126
+ margin-bottom: 4px;
127
+ font-family: Courier, monospace;
128
+ font-weight: normal;
129
+ background-color: #333;
130
+ color: #FFF;
131
+ padding: 4px;
132
+ }
133
+
134
+
135
+ h1{
136
+ font-family: Verdana, Arial, Helvetica, sans-serif;
137
+ font-size: 12pt;
138
+ color: #E95D20;
139
+ background-color: inherit;
140
+ padding-top: 5px;
141
+ background-image: none;
142
+ font-weight: bold;
143
+ margin: 0px;
144
+ width: 100%;
145
+ }
146
+
147
+ h2{
148
+ -moz-border-radius-bottomleft:0;
149
+ -moz-border-radius-bottomright:0;
150
+ -moz-border-radius-topleft:8px;
151
+ -moz-border-radius-topright:8px;
152
+ color:#E95D20;
153
+ font-family:Arial, sans-serif;
154
+ font-size:10pt;
155
+ font-style:oblique;
156
+ margin:15 0 0 8px;
157
+ padding: 4 2 1 0px;
158
+ }
159
+
160
+ h3{
161
+ -moz-border-radius-bottomleft:0;
162
+ -moz-border-radius-bottomright:0;
163
+ -moz-border-radius-topleft:8px;
164
+ -moz-border-radius-topright:8px;
165
+ border:1px solid silver;
166
+ font-size: 9pt;
167
+ color: #333333;
168
+ background-color: #E7E7E7;
169
+ font-weight: bold;
170
+ width: 580px;
171
+ padding-top: 4px;
172
+ padding-bottom: 1px;
173
+ padding-left: 6px;
174
+ margin-top: 20px;
175
+ margin-left: 6px;
176
+ }
177
+
178
+ h4{
179
+ font-size: 9pt;
180
+ font-weight: bold;
181
+ vertical-align: top;
182
+ text-align: left;
183
+ margin-top: 0px;
184
+ margin-right: 15px;
185
+ margin-bottom: 5px;
186
+ margin-left: 10px;
187
+ color: #333333;
188
+ font-style: normal;
189
+ font-variant: normal;
190
+ text-transform: none;
191
+ border: #DFDFDF; }
192
+
193
+
194
+ h5{
195
+ font-size: 9pt;
196
+ color: #333333;
197
+ font-style: italic;
198
+ font-weight: normal;
199
+ margin: 6px 2px 4px 2px;
200
+ padding: 0px;
201
+ }
202
+
203
+ h6 {
204
+ border:1px solid silver;
205
+ font-size: 9pt;
206
+ color: #333333;
207
+ font-weight: normal;
208
+ background-color: #E7E7E7;
209
+ width: 96%;
210
+ padding-top: 4px;
211
+ padding-bottom: 1px;
212
+ padding-left: 4px;
213
+ margin-top: 15px;
214
+ margin-left: 4px;
215
+ margin-right:2px;
216
+ margin-bottom:1px;
217
+ }
218
+
219
+ /*********** begin wide tables ***********/
220
+ table.wide {
221
+ background: #FFFFFF;
222
+ border-collapse: collapse;
223
+ align: left;
224
+ width: 99%;
225
+ margin-top: 3%;
226
+ margin-right: 1%;
227
+ margin-bottom: 3%;
228
+ margin-left: 15px;
229
+ }
230
+ table.wide th, table.wide td {
231
+ border: 1px silver solid;
232
+ padding: 0.2em;
233
+ }
234
+
235
+ table.wide td {
236
+ width:auto;
237
+ font-family: Arial, Helvetica, sans-serif;
238
+ font-size: 9pt;
239
+ height: auto;
240
+ line-height:16px;
241
+ padding:6px 2px 2px 4px;
242
+ }
243
+
244
+ table.wide th {
245
+ background: #E7E7E7;
246
+ text-align: left;
247
+ vertical-align: middle;
248
+ font: Arial, Helvetica, sans-serif;
249
+ font-size: 9pt;
250
+ font-weight: bold;
251
+ color: #333333;
252
+ padding-top: 4px;
253
+ padding-right: 4px;
254
+ padding-bottom: 2px;
255
+ padding-left: 6px;
256
+ }
257
+
258
+ #important{
259
+ float: clear;
260
+ color: #333333;
261
+ background-color: #e7eedc;
262
+ -moz-border-radius-bottomleft:0;
263
+ -moz-border-radius-bottomright:0;
264
+ -moz-border-radius-topleft:8px;
265
+ -moz-border-radius-topright:8px;
266
+ border:1px solid silver;
267
+ font-size: 9pt;
268
+ padding-top: 2px;
269
+ padding-bottom: 0px;
270
+ padding-left: 2px;
271
+ margin-top: 15px;
272
+ margin-left: 15px;
273
+ margin-right: 35px;
274
+ margin-bottom: 15px;
275
+ }
276
+
277
+ /*********** end wide tables ***********/
278
+
279
+ -->
280
+ </style>
281
+
282
+ </head>
283
+ <body>
284
+ <div id="masthead">
285
+ <h1> <a name="#top" id="#top"></a>Pcapr.Local</h1>
286
+ </div>
287
+ <div id="content">
288
+ <p>Pcapr.Local is a gem that can automatically parse any packet capture and create a .par file suitable for generating a Scenario in Mu Studio. It's designed to help you create Scenarios for proprietary protocols that need custom Wireshark dissectors (pcapr.Local uses the locally-installed Wireshark application when indexing a .pcap). </p>
289
+ <p>This document provides details for the following:</p>
290
+ <ul>
291
+ <li><a href="#pcapr_reqs">Requirements</a></li>
292
+ <li><a href="#pcapr_install">Installing &amp; Configuring</a></li>
293
+ <li><a href="#pcapr_using">Using</a> (viewing indexed pcaps and downloading PAR files)</li>
294
+ <li><a href="#pcapr_tips">Tips &amp; Tricks</a></li>
295
+ </ul>
296
+ <p>After installing and configuring Pcapr.Local, you can copy or move your pcap files to the designated pcaps directory and Pcapr.Local will automatically index those files. Then, using a web browser, you can view the list of pcaps and their indexes, generate reports, or download the index as a PAR file that you can use in Mu Studio to create a Scenario.</p>
297
+ <h2><a name="pcapr_reqs"></a>Requirements</h2>
298
+ <p>To run pcapr.Local, you must install it on a system that also includes the following:</p>
299
+ <ul>
300
+ <li><strong>Linux</strong> (any flavor). You can install on a dedicated Linux system or in a virtual machine (VM). </li>
301
+ <li> <strong>Ruby</strong> (1.8.6, 1.8.7, 1.9.2) + <strong>Rubygems</strong> (1.3.7 or higher). When using Ruby 1.8.6, you must install<a href="http://rubyforge.org/frs/?group_id=126" target="_blank"> rubygems 1.3.7</a>. Rubygems officially ceased support for ruby 1.8.6 as of the rubygems 1.4.0 release, so any version 1.4.x or higher will not install on a ruby 1.8.6 system.</li>
302
+ <li><strong>CouchDB</strong>. Local and remote installations supported. If you have configured a username and password for the CouchDB service, you'll need to provide those user credentials during the pcapr.Local gem installation.</li>
303
+ <li><strong>Wireshark</strong> (any version). Pcapr.Local will automatically use the installed version of <em>tshark</em> (a component of Wireshark) to create the pcap indexes. When using a package manager (such as aptitude on Ubuntu), you might need to install tshark separately if it's not included as part of the Wireshark installation.</li>
304
+ <li><strong>Zip</strong> (any version). Pcapr.Local requires zip to create PAR files from your indexed pcaps.</li>
305
+ <li><strong>pcapr-local.gem</strong>. If the Linux system has Internet connectivity, you can use the gem command (supported by rubygems) to quickly download and install the Pcapr.Local gem. Otherwise, you'll need to manually download the gem, copy it to the Linux system, and install it.</li>
306
+ </ul>
307
+ <p><a href="#top">back to top &uarr;</a></p>
308
+ <p>&nbsp;</p>
309
+ <h2><a name="pcapr_install" id="pcapr_install"></a>Installing &amp; Configuring</h2>
310
+ <p>After ensuring that your Linux system has all the necessary <a href="pcapr_local_about.html#pcapr_reqs">pre-requisites for running Pcapr.Local</a>, you can download the pcapr-local gem and configure it for your system. </p>
311
+ <p>You can install and run pcapr.Local as a root user or as a regular (non-root) user. If the Linux system has Internet connectivity, you can use the gem command (supported by rubygems) to quickly download and install the Pcapr.Local gem. Otherwise, you'll need to manually download the gem and copy it to the Linux system before installing. </p>
312
+ <p>After installing the gem, configure the gem by answering a few questions about where you want to store pcaps and indexes, the IP and port on which you want to access pcapr.Local, and the location of your CouchDB service (your answers are saved as a configuration file at: <strong><span class="code">~/.pcapr_local/config</span></strong>). When configuration is complete, the pcapr server process continues running in the background, performing tasks such as checking for new pcaps and creating indexes. </p>
313
+ <p>To view activities during configuration, tail the pcapr.Local log file with the command: <strong><span class="code">tail -F ~/pcapr.Local/log/server.log</span></strong></p>
314
+ <h3>To Install Pcapr.Local:</h3>
315
+ <p>To install over the Internet:</p>
316
+ <ol>
317
+ <li>Login to the Linux system on which you want to install pcapr.Local. </li>
318
+ <li>Install the pcapr-local gem using the gem command:
319
+ <p class="code_black_background"><strong>gem install pcapr-local</strong></p>
320
+ </li>
321
+ </ol>
322
+ <p>To install manually:</p>
323
+ <ol>
324
+ <li>Download the pcapr.Local gem from <a href="http://rubygems.org/gems/pcapr-local">http://rubygems.org/gems/pcapr-local</a>. </li>
325
+ <li>Copy the gem to the Linux system on which you want to install the gem.</li>
326
+ <li>Login to the Linux system. </li>
327
+ <li>Change to the directory that contains the gem, then install it using the gem command:
328
+ <p class="code_black_background"><strong>gem install pcapr-local.gem</strong></p>
329
+ </li>
330
+ </ol>
331
+ <h3>To Configure Pcapr.Local:</h3>
332
+ <ol start="1">
333
+ <li>Run the configuration tool using the startpcapr command:</li>
334
+ </ol>
335
+ <blockquote>
336
+ <p class="code_black_background"><strong>startpcapr</strong></p>
337
+ <p>This command starts the configuration process in which you'll be asked several questions. </p>
338
+ </blockquote>
339
+ <ol start="2">
340
+ <li>Answer the following seven (7) questions when prompted:</li>
341
+ </ol>
342
+ <table width="86%" border="1" cellpadding="1" cellspacing="1" class="wide">
343
+ <tr>
344
+ <th width="32%" scope="col">Question</th>
345
+ <th width="68%" scope="col"> Answer</th>
346
+ </tr>
347
+ <tr>
348
+ <td><h5>A. Where should pcapr.Local store user files?</h5></td>
349
+ <td><p>[/root/pcapr.Local] </p>
350
+ <p>Press <strong>Enter</strong> to accept this default. This sets the directory for storing all pcapr-related files.</p></td>
351
+ </tr>
352
+ <tr>
353
+ <td><h5>B. Which directory would you like to scan for indexable pcaps?</h5></td>
354
+ <td><p>[/root/pcapr.Local/pcaps]</p>
355
+ <p>Press <strong>Enter</strong> to accept this default. This sets the directory for storing packet captures. Any .pcap file you place in this directory will be automatically indexed by pcapr.Local.</p></td>
356
+ </tr>
357
+ <tr>
358
+ <td><h5>C. Where would you like to store index files?</h5></td>
359
+ <td><p>[/root/pcapr.Local/indexes] </p>
360
+ <p>Press <strong>Enter</strong> to accept this default. This sets the directory for storing .pcap indexes. Indexes are automatically created for every .pcap file in the pcapr.Local/pcaps directory (or whatever directory you specified as the pcap repository in question A).</p></td>
361
+ </tr>
362
+ <tr>
363
+ <td><h5>D. What IP address should pcapr.Local run on?</h5></td>
364
+ <td><p>[127.0.0.1] </p>
365
+ <p>Press <strong>Enter</strong> to accept this default. This sets the IP address at which you can access pcapr.Local. For example, if you want to access pcapr.Local at IP address 10.10.1.175 , you should enter that address here.</p></td>
366
+ </tr>
367
+ <tr>
368
+ <td><h5>E. What port should pcapr.Local listen on?</h5></td>
369
+ <td><p>[8080] </p>
370
+ <p>Press <strong>Enter</strong> to accept this default. This sets the port at which you can access pcapr.Local. For example, if you want to access pcapr.Local at 10.10.1.175:8888, you should enter 8888 here.</p></td>
371
+ </tr>
372
+ <tr>
373
+ <td><h5>F. Pick a name for your CouchDB database (database will be created automatically).</h5></td>
374
+ <td><p>[pcapr_local_root] </p>
375
+ <p>Press <strong>Enter</strong> to accept this default. This creates a CouchDB database for pcaps and their indexes. </p></td>
376
+ </tr>
377
+ <tr>
378
+ <td><h5>G. pcapr.Local requires CouchDB to run. Where is your CouchDB server?</h5></td>
379
+ <td><p>[http://127.0.0.1:5984] </p>
380
+ <p>If you have not yet configured a username and password for the CouchDB service, press <strong>Enter</strong> to accept this default. </p>
381
+ <p>However, if you <em><strong>have</strong></em> configured a username and password for the CouchDB service, you <em><strong>must</strong></em> provide those user credentials. Type the following and then press <strong>Enter</strong>:</p>
382
+ <p class="code_black_background"><strong>http://<em>user</em>:<em>password</em>@127.0.0.1:5984</strong></p></td>
383
+ </tr>
384
+ </table>
385
+ <ol start="3">
386
+ <li>After answering all questions, the following message confirms a successful installation: <br>
387
+ </li>
388
+ </ol>
389
+ <table width="92%" border="0" align="center" cellpadding="1" cellspacing="1">
390
+ <tr align="left">
391
+ <td width="72%" scope="col"><p class="code_black_background">Thank you. Configuration is saved at /root/.pcapr_local/config.<br>
392
+ Starting server at <strong><em>ip:port</em></strong><br>
393
+ Log is at /root/<strong><em>pcapr-directory</em></strong>/log/server.log<br>
394
+ Moving server process to the background. Run 'stoppcapr' to stop the server.</p></td>
395
+ <td width="28%" class="wide" scope="col"><p>Where <strong><em>ip:port</em></strong> are values given in questions D and E. </p>
396
+ <p>Where<strong> <em>pcapr-directory</em></strong> is the value given in question A. </p></td>
397
+ </tr>
398
+ </table>
399
+ <p>You are now ready to copy your .pcap files into the pcap directory, where pcapr.Local will automatically index them and create PAR files that you can use in Mu Studio to generate Scenarios. </p>
400
+ <p><a href="#top">back to top &uarr;</a></p>
401
+ <h2><a name="pcapr_using" id="pcapr_using"></a>Using Pcapr.Local</h2>
402
+ <p>After installing and configuring pcapr.Local, you can copy your .pcap files into the pcap directory, where pcapr.Local will automatically index them and create a .par file (a Pcap ARchive, or PAR) that you can use in Mu Studio to generate Scenarios. (A PAR file contains dissection data from your local Wireshark installation, enabling you to use custom dissectors for proprietary protocols.) </p>
403
+ <p>When you've moved some pcaps into the pcaps directory, you are ready to use the Pcapr.Local UI to view the indexes for those pcaps. The UI has three components: </p>
404
+ <ul>
405
+ <li><strong>Browse</strong>. Displays a list of indexed pcaps, with their associated services and more recent index statistics. Select a pcap to view its details and/or download a PAR file for creating a Scenario.</li>
406
+ <li><strong>Folders</strong>. Displays a list of subdirectories in the pcap directory. By default, this list is empty but you can create new directories using the command line (<span class="code"><strong>mkdir</strong> <em>directory-name</em></span>). However, you'll need to put at least one pcap into a subdirectory before that directory will appear in the Folders tab. </li>
407
+ <li><strong>Services</strong>. Displays a tag cloud of services found in all indexed pcaps.</li>
408
+ </ul>
409
+ <p>Keep in mind that any changes made at the command line will take about a minute to appear in the UI. </p>
410
+ <h3>To View Indexes &amp; Get PAR files:</h3>
411
+ <ol>
412
+ <li>Add packet captures into the pcaps directory (<strong>/root/pcapr.Local/pcaps</strong> by default). For example, to move all .pcap files from a local directory to the pcaps folder on the Linux system, type:</li>
413
+ </ol>
414
+ <blockquote>
415
+ <p class="code_black_background"><strong>scp *.pcap root@<em>linux-ip</em>:pcapr.Local/pcaps</strong></p>
416
+ </blockquote>
417
+ <ol start="2">
418
+ <li>Wait about about a minute. Pcapr.Local checks the pcap directory every 60 seconds, indexing any new pcaps automatically. </li>
419
+ <li>Using your web browser, view the indexed pcaps at <strong>http://<em>ip</em>:<em>port</em>/home/index.html</strong> (where <em>ip:port</em> is IP address and port on the Linux system you configured during pcapr.Local configuration). </li>
420
+ <li>Select the .pcap for which you want to view details: <br>
421
+ <ul>
422
+ <li>Clicking the <span class="UI_link_blue"><em>file</em>.pcap</span> link takes you to <a href="http://www.pcapr.net/">pcapr.net</a>, where you can use <a href="http://www.pcapr.net/xtractr">xtractor</a> to explore the indexed pcap. </li>
423
+ <li>Selecting <span class="UI_link_blue">indexed</span> returns you to the list of indexed pcaps. </li>
424
+ </ul>
425
+ </li>
426
+ <li>Click <span class="UI_link_blue">PAR file</span> to download the .par file for that .pcap. <br>
427
+ </li>
428
+ <li>In Mu Studio, import the .par file to create a Scenario. Because the packet capture has already been dissected, the generation process skips flow selection and automatically displays the Scenario Editor. </li>
429
+ </ol>
430
+ <p><a href="#top">back to top &uarr;</a></p>
431
+ <h2><a name="pcapr_tips" id="pcapr_tips"></a>Tips &amp; Tricks</h2>
432
+ <p>The following section includes tips and tricks for using pcapr.Local. </p>
433
+ <h4>Pcapr.Local Doesn't See Pcaps</h4>
434
+ <p>If you added pcaps to the pcap directory but they don't appear in the list of indexed pcaps, try the following:</p>
435
+ <ul>
436
+ <li>Wait about about a minute then check again. Pcapr.Local checks the pcap directory every 60 seconds, indexing any new pcaps automatically. </li>
437
+ <li>Check the config file (<strong><span class="code">~/.pcapr_local/config</span></strong>) to confirm that you are putting your pcaps in the correct directory.</li>
438
+ </ul>
439
+ <h4>Cannot Download a PAR File</h4>
440
+ <p>If you get an error when attempting to download the PAR file for a pcap, you probably don't have Zip installed on your Linux system. Try installing Zip (on Ubuntu, type <strong class="code">apt-get install zip</strong>) then try to download the PAR file again (you don't need to re-index the pcap). </p>
441
+ <h4>Starting &amp; Stopping Pcapr.Local</h4>
442
+ <ul>
443
+ <li>To stop the pcapr.Local server, use the command <strong class="code"> stoppcapr</strong></li>
444
+ <li>To start/restart the pcapr.Local server, use the command <strong class="code"> startpcapr</strong></li>
445
+ </ul>
446
+ <h4>Organizing Pcaps</h4>
447
+ <p>When managing large numbers of pcaps, use the command line to create subdirectories in the pcaps directory (<span class="code"><strong>mkdir</strong> <em>directory-name</em></span>), then place pcaps files in these subdirectories. Pcapr.Local will automatically index any .pcap file in the main pcaps directory and any included subdirectories. </p>
448
+ <p>In the pcapr.Local UI, select the Folders tab to view a list of subdirectories in the pcap directory. However, you'll need to put at least one pcap into a subdirectory before that directory will appear in the Folders tab (and you might need to wait up to 60 seconds). </p>
449
+ <h4>Getting PAR files From the Command Line</h4>
450
+ <p>You can create PAR files at the command line instead of using the pcapr.Local UI. </p>
451
+ <ol>
452
+ <li>Login to the Linux system running pcapr.Local. </li>
453
+ <li>Change to the pcaps directory. </li>
454
+ <li>Specify the name of the pcap using the pcap2par command:
455
+ <p class="code_black_background"><strong>pcap2par<em> filename</em>.pcap</strong></p>
456
+ </li>
457
+ </ol>
458
+ <blockquote>
459
+ <p> This command creates a PAR file called <strong>export.par</strong> in the current directory. </p>
460
+ <p>To specify the location and name of the .par file, use a path argument with the pcap2par command. For example:</p>
461
+ <p class="code_black_background"><strong>pcap2par my-test-traffic.pcap ~/par_files/my-test-traffic.par </strong></p>
462
+ <p>This command creates a .par file named &quot;my-test-traffic.par&quot; in the &quot;par_files&quot; directory.</p>
463
+ </blockquote>
464
+ <p><a href="#top">back to top &uarr;</a></p>
465
+ </div>
466
+
467
+ </body>
468
+ </html>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.10
1
+ 0.1.11
data/pcapr-local.gemspec CHANGED
@@ -5,22 +5,22 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pcapr-local}
8
- s.version = "0.1.10"
8
+ s.version = "0.1.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mu Dynamics"]
12
- s.date = %q{2011-03-31}
12
+ s.date = %q{2011-04-04}
13
13
  s.description = %q{Index, Browse, and Query your vast pcap collection.}
14
14
  s.email = %q{nbaggott@gmail.com}
15
15
  s.executables = ["pcap2par", "startpcapr", "stoppcapr", "xtractr"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.txt",
18
- "README.md"
18
+ "README.html"
19
19
  ]
20
20
  s.files = [
21
21
  ".document",
22
22
  "LICENSE.txt",
23
- "README.md",
23
+ "README.html",
24
24
  "Rakefile",
25
25
  "VERSION",
26
26
  "bin/pcap2par",
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 10
9
- version: 0.1.10
8
+ - 11
9
+ version: 0.1.11
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mu Dynamics
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-03-31 00:00:00 -07:00
17
+ date: 2011-04-04 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -189,11 +189,11 @@ extensions: []
189
189
 
190
190
  extra_rdoc_files:
191
191
  - LICENSE.txt
192
- - README.md
192
+ - README.html
193
193
  files:
194
194
  - .document
195
195
  - LICENSE.txt
196
- - README.md
196
+ - README.html
197
197
  - Rakefile
198
198
  - VERSION
199
199
  - bin/pcap2par
data/README.md DELETED
@@ -1,64 +0,0 @@
1
- # pcapr.Local #
2
-
3
- ## Introduction
4
-
5
- pcapr.Local is a tool for browsing and managing a large repository of packet captures (pcaps). After you tell pcapr.Local where your pcaps are located, it will index them automatically and let you navigate your collection in the comfort of your web browser. pcapr.Local builds on and integrates with [Xtractr](http://code.google.com/p/pcapr/wiki/Xtractr) so you can analyze your pcaps in the Xtractr web UI. The Xtractr web UI is hosted on pcapr.net but talks to a local Xtractr instance (managed by pcapr.Local) and your data never leaves your network.
6
-
7
- In addition to managing your pcaps, you can use pcapr.Local to leverage your custom wireshark dissectors when creating Scenarios in Mu Studio. PAR files (described below) created by pcapr.Local can be imported into Mu Studio just like a pcap, but Mu Studio will use your wireshark data to guide Scenario creation.
8
-
9
- ## Dependencies
10
-
11
- ### CouchDB
12
- CouchDB needs to be available. Either or local or remote installation will work. On Ubuntu/Debian you can install CouchDB with:
13
-
14
- $ sudo apt-get install couchdb
15
-
16
- ### Wireshark
17
-
18
- You need to have wireshark installed. In particular the command line "tshark" utility should be available.
19
-
20
- ### Ruby
21
-
22
- Tested with Ruby 1.8.6, 1.8.7, and 1.9.2.
23
-
24
- ## Supported environments
25
-
26
- Linux only. Sorry.
27
-
28
- ## Running pcapr.Local
29
-
30
- 1. Install the gem.
31
- 2. Run the "startpcapr" executable that is installed with the gem:
32
-
33
- $ startpcapr
34
-
35
- This will ask you some basic questions, and will record your answers in a config file at ~/.pcapr_local/config that will be used on subsequent invocations. After collecting configuration information, the server process will continue running in the background and you'll get your prompt back. If you like to keep an eye on what's going on you can tail the pcapr.Local log file with:
36
-
37
- $ tail -F ~/pcapr.Local/log/server.log
38
-
39
- 3. Add pcaps to the pcap directory you configured (default ~/pcapr.Local/pcaps) and wait a short while for them to be noticed and indexed (about a minute).
40
- 4. Point your browser to http://localhost:8080 (or whatever you configured).
41
- 5. If you want to stop the pcapr.Local server you can do so with:
42
-
43
- $ stoppcapr
44
-
45
- ## Creating PAR files
46
-
47
- A PAR file (Pcap ARchive) is a format that can be imported onto a Mu Studio to create a Scenario. For purposes of Scenario creation, a PAR file is equivalent to the starting pcap with a couple of exceptions:
48
-
49
- 1. The PAR file contains wireshark dissection data from your local wireshark installation. This means you get the full benefits of any custom dissectors you may have.
50
- 2. When you import a PAR you'll bypass the normal flow selection page and go directly to the Scenario editor.
51
-
52
- ### In the GUI
53
-
54
- Select a pcap in the pcapr.Local browser. The page that opens has a link at the bottom that lets you download a PAR file for that pcap.
55
-
56
- ### On the Command Line
57
-
58
- The gem bundles a CLI tool for creating PAR files called 'pcap2par'. Usage is very simple, just provide a path to your pcap:
59
-
60
- $ pcap2par my_traffic.pcap
61
-
62
- This will create the PAR file called "export.par" in the current directory. You can optionally specify the output file as a second argument:
63
-
64
- $ pcap2par my_traffic.pcap ~/par_files/my_traffic.par