firescan 0.07 → 0.08
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.txt +2 -1
- data/doc/Example.html +0 -2
- data/doc/Firebind.html +0 -40
- data/doc/Firebind/Client.html +23 -23
- data/doc/Firebind/Portspec.html +3 -5
- data/doc/Firebind/Scan.html +32 -12
- data/doc/Firebind/ScanError.html +2 -4
- data/doc/Firebind/ScanState.html +19 -21
- data/doc/Firebind/SimpleProtocol.html +4 -6
- data/doc/Firebind/TcpTransport.html +7 -9
- data/doc/Firebind/Transport.html +2 -4
- data/doc/Firebind/UdpTransport.html +4 -6
- data/doc/LICENSE_txt.html +0 -2
- data/doc/README_txt.html +0 -2
- data/doc/Runner.html +0 -2
- data/doc/TestPortspec.html +0 -2
- data/doc/Tools.html +4 -6
- data/doc/USAGE_txt.html +0 -2
- data/doc/VERSION_txt.html +2 -3
- data/doc/created.rid +22 -22
- data/doc/doc/created_rid.html +0 -2
- data/doc/firescan_gemspec.html +1 -3
- data/doc/index.html +0 -2
- data/doc/js/search_index.js +1 -1
- data/doc/table_of_contents.html +0 -3
- data/firescan.gemspec +1 -1
- data/lib/firebind/client.rb +20 -16
- data/lib/firebind/portspec.rb +2 -0
- data/lib/firebind/scan.rb +22 -10
- data/lib/firebind/scan_error.rb +2 -0
- data/lib/firebind/scan_state.rb +5 -3
- data/lib/firebind/simple_protocol.rb +3 -1
- data/lib/firebind/tcp_transport.rb +5 -3
- data/lib/firebind/tools.rb +2 -0
- data/lib/firebind/transport.rb +2 -0
- data/lib/firebind/udp_transport.rb +2 -0
- metadata +2 -4
- data/build +0 -7
- data/doc/build.html +0 -125
@@ -108,8 +108,6 @@
|
|
108
108
|
|
109
109
|
<li class="file"><a href="../VERSION_txt.html">VERSION</a>
|
110
110
|
|
111
|
-
<li class="file"><a href="../build.html">build</a>
|
112
|
-
|
113
111
|
<li class="file"><a href="../doc/created_rid.html">created.rid</a>
|
114
112
|
|
115
113
|
<li class="file"><a href="../firescan_gemspec.html">firescan.gemspec</a>
|
@@ -189,7 +187,7 @@ payload representing the ID number of the scan that was assigned during the
|
|
189
187
|
|
190
188
|
<div class="method-heading">
|
191
189
|
<span class="method-name">new</span><span
|
192
|
-
class="method-args">(guid,echo_host,transport,timeout,state=
|
190
|
+
class="method-args">(guid,echo_host,transport,timeout,state=nil)</span>
|
193
191
|
|
194
192
|
<span class="method-click-advice">click to toggle source</span>
|
195
193
|
|
@@ -204,8 +202,8 @@ payload representing the ID number of the scan that was assigned during the
|
|
204
202
|
|
205
203
|
|
206
204
|
<div class="method-source-code" id="new-source">
|
207
|
-
<pre><span class="ruby-comment"># File lib/firebind/simple_protocol.rb, line
|
208
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">guid</span>,<span class="ruby-identifier">echo_host</span>,<span class="ruby-identifier">transport</span>,<span class="ruby-identifier">timeout</span>,<span class="ruby-identifier">state</span>=<span class="ruby-
|
205
|
+
<pre><span class="ruby-comment"># File lib/firebind/simple_protocol.rb, line 32</span>
|
206
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">guid</span>,<span class="ruby-identifier">echo_host</span>,<span class="ruby-identifier">transport</span>,<span class="ruby-identifier">timeout</span>,<span class="ruby-identifier">state</span>=<span class="ruby-keyword">nil</span>)
|
209
207
|
<span class="ruby-ivar">@guid</span> = <span class="ruby-identifier">guid</span>
|
210
208
|
<span class="ruby-ivar">@echo_host</span> = <span class="ruby-identifier">echo_host</span>
|
211
209
|
<span class="ruby-ivar">@state</span> = <span class="ruby-identifier">state</span>
|
@@ -253,7 +251,7 @@ payload representing the ID number of the scan that was assigned during the
|
|
253
251
|
|
254
252
|
|
255
253
|
<div class="method-source-code" id="echo-source">
|
256
|
-
<pre><span class="ruby-comment"># File lib/firebind/simple_protocol.rb, line
|
254
|
+
<pre><span class="ruby-comment"># File lib/firebind/simple_protocol.rb, line 46</span>
|
257
255
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">echo</span>(<span class="ruby-identifier">port</span>)
|
258
256
|
<span class="ruby-identifier">payload</span> = <span class="ruby-identifier">big_endian</span> <span class="ruby-ivar">@guid</span>
|
259
257
|
<span class="ruby-keyword">begin</span>
|
@@ -112,8 +112,6 @@
|
|
112
112
|
|
113
113
|
<li class="file"><a href="../VERSION_txt.html">VERSION</a>
|
114
114
|
|
115
|
-
<li class="file"><a href="../build.html">build</a>
|
116
|
-
|
117
115
|
<li class="file"><a href="../doc/created_rid.html">created.rid</a>
|
118
116
|
|
119
117
|
<li class="file"><a href="../firescan_gemspec.html">firescan.gemspec</a>
|
@@ -211,7 +209,7 @@
|
|
211
209
|
|
212
210
|
|
213
211
|
<div class="method-source-code" id="new-source">
|
214
|
-
<pre><span class="ruby-comment"># File lib/firebind/tcp_transport.rb, line
|
212
|
+
<pre><span class="ruby-comment"># File lib/firebind/tcp_transport.rb, line 28</span>
|
215
213
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> (<span class="ruby-identifier">echo_server</span>,<span class="ruby-identifier">timeout</span>)
|
216
214
|
<span class="ruby-keyword">super</span>(<span class="ruby-identifier">echo_server</span>,<span class="ruby-identifier">timeout</span>)
|
217
215
|
<span class="ruby-keyword">end</span></pre>
|
@@ -250,7 +248,7 @@
|
|
250
248
|
|
251
249
|
|
252
250
|
<div class="method-source-code" id="connect-source">
|
253
|
-
<pre><span class="ruby-comment"># File lib/firebind/tcp_transport.rb, line
|
251
|
+
<pre><span class="ruby-comment"># File lib/firebind/tcp_transport.rb, line 33</span>
|
254
252
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">connect</span>(<span class="ruby-identifier">port</span>)
|
255
253
|
<span class="ruby-ivar">@port</span> = <span class="ruby-identifier">port</span>
|
256
254
|
<span class="ruby-identifier">connect_start</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>
|
@@ -274,9 +272,9 @@
|
|
274
272
|
<span class="ruby-identifier">readables</span>,<span class="ruby-identifier">writables</span>,<span class="ruby-identifier">errors</span> = <span class="ruby-constant">IO</span>.<span class="ruby-identifier">select</span>([<span class="ruby-ivar">@socket</span>], [<span class="ruby-ivar">@socket</span>], [<span class="ruby-ivar">@socket</span>], <span class="ruby-ivar">@timeout_seconds</span>)
|
275
273
|
<span class="ruby-identifier">debug</span> <span class="ruby-node">"readables=#{readables} writables=#{writables} errors=#{errors}"</span>
|
276
274
|
|
277
|
-
<span class="ruby-identifier">readable</span> = <span class="ruby-identifier">readables</span> <span class="ruby-operator">!=</span> <span class="ruby-
|
278
|
-
<span class="ruby-identifier">writable</span> = <span class="ruby-identifier">writables</span> <span class="ruby-operator">!=</span> <span class="ruby-
|
279
|
-
<span class="ruby-identifier">error</span> = <span class="ruby-identifier">errors</span> <span class="ruby-operator">!=</span> <span class="ruby-
|
275
|
+
<span class="ruby-identifier">readable</span> = <span class="ruby-identifier">readables</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">readables</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
276
|
+
<span class="ruby-identifier">writable</span> = <span class="ruby-identifier">writables</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">writables</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
277
|
+
<span class="ruby-identifier">error</span> = <span class="ruby-identifier">errors</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">errors</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
280
278
|
|
281
279
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">error</span>
|
282
280
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Firebind</span><span class="ruby-operator">::</span><span class="ruby-constant">ScanError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:HANDSHAKE_CONNECTION_REFUSED</span>)
|
@@ -336,7 +334,7 @@
|
|
336
334
|
|
337
335
|
|
338
336
|
<div class="method-source-code" id="receive-source">
|
339
|
-
<pre><span class="ruby-comment"># File lib/firebind/tcp_transport.rb, line
|
337
|
+
<pre><span class="ruby-comment"># File lib/firebind/tcp_transport.rb, line 127</span>
|
340
338
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">receive</span>
|
341
339
|
<span class="ruby-identifier">size</span> = <span class="ruby-ivar">@payload</span>.<span class="ruby-identifier">length</span>
|
342
340
|
<span class="ruby-identifier">count</span> = <span class="ruby-value">0</span>
|
@@ -426,7 +424,7 @@
|
|
426
424
|
|
427
425
|
|
428
426
|
<div class="method-source-code" id="send-source">
|
429
|
-
<pre><span class="ruby-comment"># File lib/firebind/tcp_transport.rb, line
|
427
|
+
<pre><span class="ruby-comment"># File lib/firebind/tcp_transport.rb, line 89</span>
|
430
428
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send</span>(<span class="ruby-identifier">payload</span>)
|
431
429
|
<span class="ruby-ivar">@payload</span> = <span class="ruby-identifier">payload</span>
|
432
430
|
<span class="ruby-identifier">size</span> = <span class="ruby-identifier">payload</span>.<span class="ruby-identifier">length</span>
|
data/doc/Firebind/Transport.html
CHANGED
@@ -108,8 +108,6 @@
|
|
108
108
|
|
109
109
|
<li class="file"><a href="../VERSION_txt.html">VERSION</a>
|
110
110
|
|
111
|
-
<li class="file"><a href="../build.html">build</a>
|
112
|
-
|
113
111
|
<li class="file"><a href="../doc/created_rid.html">created.rid</a>
|
114
112
|
|
115
113
|
<li class="file"><a href="../firescan_gemspec.html">firescan.gemspec</a>
|
@@ -200,7 +198,7 @@
|
|
200
198
|
|
201
199
|
|
202
200
|
<div class="method-source-code" id="new-source">
|
203
|
-
<pre><span class="ruby-comment"># File lib/firebind/transport.rb, line
|
201
|
+
<pre><span class="ruby-comment"># File lib/firebind/transport.rb, line 29</span>
|
204
202
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> (<span class="ruby-identifier">echo_server</span>, <span class="ruby-identifier">timeout</span>)
|
205
203
|
<span class="ruby-ivar">@echo_server</span> = <span class="ruby-identifier">echo_server</span>
|
206
204
|
<span class="ruby-ivar">@timeout</span> = <span class="ruby-identifier">timeout</span>
|
@@ -241,7 +239,7 @@
|
|
241
239
|
|
242
240
|
|
243
241
|
<div class="method-source-code" id="close-source">
|
244
|
-
<pre><span class="ruby-comment"># File lib/firebind/transport.rb, line
|
242
|
+
<pre><span class="ruby-comment"># File lib/firebind/transport.rb, line 36</span>
|
245
243
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">close</span>
|
246
244
|
<span class="ruby-keyword">begin</span>
|
247
245
|
<span class="ruby-comment">#noinspection RubyResolve</span>
|
@@ -112,8 +112,6 @@
|
|
112
112
|
|
113
113
|
<li class="file"><a href="../VERSION_txt.html">VERSION</a>
|
114
114
|
|
115
|
-
<li class="file"><a href="../build.html">build</a>
|
116
|
-
|
117
115
|
<li class="file"><a href="../doc/created_rid.html">created.rid</a>
|
118
116
|
|
119
117
|
<li class="file"><a href="../firescan_gemspec.html">firescan.gemspec</a>
|
@@ -211,7 +209,7 @@
|
|
211
209
|
|
212
210
|
|
213
211
|
<div class="method-source-code" id="new-source">
|
214
|
-
<pre><span class="ruby-comment"># File lib/firebind/udp_transport.rb, line
|
212
|
+
<pre><span class="ruby-comment"># File lib/firebind/udp_transport.rb, line 28</span>
|
215
213
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> (<span class="ruby-identifier">echo_server</span>,<span class="ruby-identifier">timeout</span>)
|
216
214
|
<span class="ruby-keyword">super</span>(<span class="ruby-identifier">echo_server</span>,<span class="ruby-identifier">timeout</span>)
|
217
215
|
<span class="ruby-keyword">end</span></pre>
|
@@ -250,7 +248,7 @@
|
|
250
248
|
|
251
249
|
|
252
250
|
<div class="method-source-code" id="connect-source">
|
253
|
-
<pre><span class="ruby-comment"># File lib/firebind/udp_transport.rb, line
|
251
|
+
<pre><span class="ruby-comment"># File lib/firebind/udp_transport.rb, line 32</span>
|
254
252
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">connect</span>(<span class="ruby-identifier">port</span>)
|
255
253
|
<span class="ruby-ivar">@port</span> = <span class="ruby-identifier">port</span>
|
256
254
|
<span class="ruby-keyword">begin</span>
|
@@ -294,7 +292,7 @@ across.</p>
|
|
294
292
|
|
295
293
|
|
296
294
|
<div class="method-source-code" id="receive-source">
|
297
|
-
<pre><span class="ruby-comment"># File lib/firebind/udp_transport.rb, line
|
295
|
+
<pre><span class="ruby-comment"># File lib/firebind/udp_transport.rb, line 103</span>
|
298
296
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">receive</span>
|
299
297
|
<span class="ruby-identifier">size</span> = <span class="ruby-ivar">@payload</span>.<span class="ruby-identifier">length</span>
|
300
298
|
<span class="ruby-identifier">count</span> = <span class="ruby-value">0</span>
|
@@ -399,7 +397,7 @@ response.</p>
|
|
399
397
|
|
400
398
|
|
401
399
|
<div class="method-source-code" id="send-source">
|
402
|
-
<pre><span class="ruby-comment"># File lib/firebind/udp_transport.rb, line
|
400
|
+
<pre><span class="ruby-comment"># File lib/firebind/udp_transport.rb, line 47</span>
|
403
401
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send</span>(<span class="ruby-identifier">payload</span>,<span class="ruby-identifier">num_payloads</span> = <span class="ruby-value">10</span>)
|
404
402
|
<span class="ruby-ivar">@payload</span> = <span class="ruby-identifier">payload</span>
|
405
403
|
<span class="ruby-identifier">size</span> = <span class="ruby-identifier">payload</span>.<span class="ruby-identifier">length</span>
|
data/doc/LICENSE_txt.html
CHANGED
@@ -59,8 +59,6 @@
|
|
59
59
|
|
60
60
|
<li class="file"><a href="./VERSION_txt.html">VERSION</a>
|
61
61
|
|
62
|
-
<li class="file"><a href="./build.html">build</a>
|
63
|
-
|
64
62
|
<li class="file"><a href="./doc/created_rid.html">created.rid</a>
|
65
63
|
|
66
64
|
<li class="file"><a href="./firescan_gemspec.html">firescan.gemspec</a>
|
data/doc/README_txt.html
CHANGED
@@ -69,8 +69,6 @@
|
|
69
69
|
|
70
70
|
<li class="file"><a href="./VERSION_txt.html">VERSION</a>
|
71
71
|
|
72
|
-
<li class="file"><a href="./build.html">build</a>
|
73
|
-
|
74
72
|
<li class="file"><a href="./doc/created_rid.html">created.rid</a>
|
75
73
|
|
76
74
|
<li class="file"><a href="./firescan_gemspec.html">firescan.gemspec</a>
|
data/doc/Runner.html
CHANGED
@@ -84,8 +84,6 @@
|
|
84
84
|
|
85
85
|
<li class="file"><a href="./VERSION_txt.html">VERSION</a>
|
86
86
|
|
87
|
-
<li class="file"><a href="./build.html">build</a>
|
88
|
-
|
89
87
|
<li class="file"><a href="./doc/created_rid.html">created.rid</a>
|
90
88
|
|
91
89
|
<li class="file"><a href="./firescan_gemspec.html">firescan.gemspec</a>
|
data/doc/TestPortspec.html
CHANGED
@@ -98,8 +98,6 @@
|
|
98
98
|
|
99
99
|
<li class="file"><a href="./VERSION_txt.html">VERSION</a>
|
100
100
|
|
101
|
-
<li class="file"><a href="./build.html">build</a>
|
102
|
-
|
103
101
|
<li class="file"><a href="./doc/created_rid.html">created.rid</a>
|
104
102
|
|
105
103
|
<li class="file"><a href="./firescan_gemspec.html">firescan.gemspec</a>
|
data/doc/Tools.html
CHANGED
@@ -94,8 +94,6 @@
|
|
94
94
|
|
95
95
|
<li class="file"><a href="./VERSION_txt.html">VERSION</a>
|
96
96
|
|
97
|
-
<li class="file"><a href="./build.html">build</a>
|
98
|
-
|
99
97
|
<li class="file"><a href="./doc/created_rid.html">created.rid</a>
|
100
98
|
|
101
99
|
<li class="file"><a href="./firescan_gemspec.html">firescan.gemspec</a>
|
@@ -188,7 +186,7 @@
|
|
188
186
|
|
189
187
|
|
190
188
|
<div class="method-source-code" id="big_endian-source">
|
191
|
-
<pre><span class="ruby-comment"># File lib/firebind/tools.rb, line
|
189
|
+
<pre><span class="ruby-comment"># File lib/firebind/tools.rb, line 25</span>
|
192
190
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">big_endian</span>(<span class="ruby-identifier">a_number</span>)
|
193
191
|
<span class="ruby-identifier">bytes</span> = []
|
194
192
|
<span class="ruby-value">7</span>.<span class="ruby-identifier">downto</span>(<span class="ruby-value">0</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
|
@@ -226,7 +224,7 @@
|
|
226
224
|
|
227
225
|
|
228
226
|
<div class="method-source-code" id="debug-source">
|
229
|
-
<pre><span class="ruby-comment"># File lib/firebind/tools.rb, line
|
227
|
+
<pre><span class="ruby-comment"># File lib/firebind/tools.rb, line 101</span>
|
230
228
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">debug</span>(<span class="ruby-identifier">msg</span>)
|
231
229
|
<span class="ruby-identifier">puts</span> <span class="ruby-node">"DEBUG #{self.class.to_s} - #{msg}"</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">$debug</span>
|
232
230
|
<span class="ruby-keyword">end</span></pre>
|
@@ -259,7 +257,7 @@
|
|
259
257
|
|
260
258
|
|
261
259
|
<div class="method-source-code" id="out-source">
|
262
|
-
<pre><span class="ruby-comment"># File lib/firebind/tools.rb, line
|
260
|
+
<pre><span class="ruby-comment"># File lib/firebind/tools.rb, line 105</span>
|
263
261
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">out</span>(<span class="ruby-identifier">msg</span>)
|
264
262
|
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">msg</span>
|
265
263
|
<span class="ruby-keyword">end</span></pre>
|
@@ -292,7 +290,7 @@
|
|
292
290
|
|
293
291
|
|
294
292
|
<div class="method-source-code" id="verbose-source">
|
295
|
-
<pre><span class="ruby-comment"># File lib/firebind/tools.rb, line
|
293
|
+
<pre><span class="ruby-comment"># File lib/firebind/tools.rb, line 97</span>
|
296
294
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">verbose</span>(<span class="ruby-identifier">msg</span>)
|
297
295
|
<span class="ruby-identifier">puts</span> <span class="ruby-node">"Firescan - #{msg}"</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">$verbose</span>
|
298
296
|
<span class="ruby-keyword">end</span></pre>
|
data/doc/USAGE_txt.html
CHANGED
@@ -73,8 +73,6 @@
|
|
73
73
|
|
74
74
|
<li class="file"><a href="./VERSION_txt.html">VERSION</a>
|
75
75
|
|
76
|
-
<li class="file"><a href="./build.html">build</a>
|
77
|
-
|
78
76
|
<li class="file"><a href="./doc/created_rid.html">created.rid</a>
|
79
77
|
|
80
78
|
<li class="file"><a href="./firescan_gemspec.html">firescan.gemspec</a>
|
data/doc/VERSION_txt.html
CHANGED
@@ -59,8 +59,6 @@
|
|
59
59
|
|
60
60
|
<li class="file"><a href="./VERSION_txt.html">VERSION</a>
|
61
61
|
|
62
|
-
<li class="file"><a href="./build.html">build</a>
|
63
|
-
|
64
62
|
<li class="file"><a href="./doc/created_rid.html">created.rid</a>
|
65
63
|
|
66
64
|
<li class="file"><a href="./firescan_gemspec.html">firescan.gemspec</a>
|
@@ -112,7 +110,8 @@
|
|
112
110
|
<p>Firescan Versioning</p>
|
113
111
|
<hr style="height: 10px">
|
114
112
|
|
115
|
-
<p>Version 0.07 - 12/2/2013 -
|
113
|
+
<p>Version 0.07 - 12/2/2013 - Initial release Version 0.08 - 1/10/2014 -
|
114
|
+
Timeout and tag scan parameters, field change for scanme.firebind.com</p>
|
116
115
|
|
117
116
|
</div>
|
118
117
|
|
data/doc/created.rid
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
|
2
|
-
./
|
3
|
-
./
|
4
|
-
./test/
|
5
|
-
./
|
6
|
-
./lib/firebind/
|
7
|
-
./lib/firebind/
|
8
|
-
./lib/firebind/
|
9
|
-
./lib/firebind/
|
10
|
-
./lib/firebind/
|
11
|
-
./lib/firebind/
|
12
|
-
./lib/firebind/
|
13
|
-
./lib/firebind/
|
14
|
-
./lib/firebind/
|
15
|
-
./lib/
|
16
|
-
./
|
17
|
-
./USAGE.txt
|
18
|
-
./bin/firescan
|
19
|
-
./doc/created.rid
|
20
|
-
./VERSION.txt
|
21
|
-
./firescan.gemspec
|
22
|
-
./README.txt
|
1
|
+
Fri, 10 Jan 2014 16:25:03 -0500
|
2
|
+
./LICENSE.txt Fri, 10 Jan 2014 13:34:46 -0500
|
3
|
+
./test/portspec_test.rb Fri, 10 Jan 2014 13:34:46 -0500
|
4
|
+
./test/runner.rb Fri, 10 Jan 2014 13:34:46 -0500
|
5
|
+
./lib/firebind/scan_error.rb Fri, 10 Jan 2014 15:23:18 -0500
|
6
|
+
./lib/firebind/client.rb Fri, 10 Jan 2014 15:49:51 -0500
|
7
|
+
./lib/firebind/udp_transport.rb Fri, 10 Jan 2014 15:21:29 -0500
|
8
|
+
./lib/firebind/tcp_transport.rb Fri, 10 Jan 2014 15:22:39 -0500
|
9
|
+
./lib/firebind/scan_state.rb Fri, 10 Jan 2014 16:17:37 -0500
|
10
|
+
./lib/firebind/transport.rb Fri, 10 Jan 2014 15:22:01 -0500
|
11
|
+
./lib/firebind/simple_protocol.rb Fri, 10 Jan 2014 15:23:18 -0500
|
12
|
+
./lib/firebind/tools.rb Fri, 10 Jan 2014 15:22:26 -0500
|
13
|
+
./lib/firebind/scan.rb Fri, 10 Jan 2014 16:13:53 -0500
|
14
|
+
./lib/firebind/portspec.rb Fri, 10 Jan 2014 15:23:37 -0500
|
15
|
+
./lib/example.rb Fri, 10 Jan 2014 13:34:46 -0500
|
16
|
+
./firescan-0.08.gem Fri, 10 Jan 2014 15:55:25 -0500
|
17
|
+
./USAGE.txt Fri, 10 Jan 2014 13:34:46 -0500
|
18
|
+
./bin/firescan Fri, 10 Jan 2014 13:34:46 -0500
|
19
|
+
./doc/created.rid Fri, 10 Jan 2014 16:25:03 -0500
|
20
|
+
./VERSION.txt Fri, 10 Jan 2014 16:13:53 -0500
|
21
|
+
./firescan.gemspec Fri, 10 Jan 2014 15:49:18 -0500
|
22
|
+
./README.txt Fri, 10 Jan 2014 13:34:46 -0500
|
data/doc/doc/created_rid.html
CHANGED
@@ -59,8 +59,6 @@
|
|
59
59
|
|
60
60
|
<li class="file"><a href="../VERSION_txt.html">VERSION</a>
|
61
61
|
|
62
|
-
<li class="file"><a href="../build.html">build</a>
|
63
|
-
|
64
62
|
<li class="file"><a href="../doc/created_rid.html">created.rid</a>
|
65
63
|
|
66
64
|
<li class="file"><a href="../firescan_gemspec.html">firescan.gemspec</a>
|
data/doc/firescan_gemspec.html
CHANGED
@@ -59,8 +59,6 @@
|
|
59
59
|
|
60
60
|
<li class="file"><a href="./VERSION_txt.html">VERSION</a>
|
61
61
|
|
62
|
-
<li class="file"><a href="./build.html">build</a>
|
63
|
-
|
64
62
|
<li class="file"><a href="./doc/created_rid.html">created.rid</a>
|
65
63
|
|
66
64
|
<li class="file"><a href="./firescan_gemspec.html">firescan.gemspec</a>
|
@@ -115,7 +113,7 @@
|
|
115
113
|
s.summary = 'Perform network path scanning'
|
116
114
|
s.description = File.read(File.join(File.dirname(__FILE__), 'README.txt'))
|
117
115
|
s.requirements = 'none'
|
118
|
-
s.version = '0.
|
116
|
+
s.version = '0.08'
|
119
117
|
s.author = 'Jay Houghton'
|
120
118
|
s.email = 'jay@firebind.com'
|
121
119
|
s.homepage = 'http://www.firebind.com'
|
data/doc/index.html
CHANGED
@@ -57,8 +57,6 @@
|
|
57
57
|
|
58
58
|
<li class="file"><a href="./VERSION_txt.html">VERSION</a>
|
59
59
|
|
60
|
-
<li class="file"><a href="./build.html">build</a>
|
61
|
-
|
62
60
|
<li class="file"><a href="./doc/created_rid.html">created.rid</a>
|
63
61
|
|
64
62
|
<li class="file"><a href="./firescan_gemspec.html">firescan.gemspec</a>
|
data/doc/js/search_index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var search_data = {"index":{"searchIndex":["example","firebind","client","portspec","scan","scanerror","scanstate","simpleprotocol","tcptransport","transport","udptransport","runner","testportspec","tools","arguments_valid?()","big_endian()","close()","closed_ports()","connect()","connect()","debug()","description()","do_output()","do_scan_output()","echo()","new()","new()","new()","new()","new()","new()","new()","new()","new()","on_error()","on_port_complete()","on_port_start()","on_port_tick()","on_scan_complete()","on_scan_start()","on_scan_stop()","on_start_failure()","open_ports()","out()","output_options()","parsed_options?()","percent_complete()","port_delay_seconds()","port_duration()","receive()","receive()","run()","scan()","send()","send()","setup()","size()","stop()","teardown()","test_fail()","to_s()","to_s()","to_s()","update()","update()","verbose()","license","readme","usage","version","build","created.rid","firescan.gemspec"],"longSearchIndex":["example","firebind","firebind::client","firebind::portspec","firebind::scan","firebind::scanerror","firebind::scanstate","firebind::simpleprotocol","firebind::tcptransport","firebind::transport","firebind::udptransport","runner","testportspec","tools","firebind::client#arguments_valid?()","tools#big_endian()","firebind::transport#close()","firebind::scanstate#closed_ports()","firebind::tcptransport#connect()","firebind::udptransport#connect()","tools#debug()","firebind::scanstate#description()","firebind::client#do_output()","firebind::client#do_scan_output()","firebind::simpleprotocol#echo()","firebind::client::new()","firebind::portspec::new()","firebind::scan::new()","firebind::scanerror::new()","firebind::scanstate::new()","firebind::simpleprotocol::new()","firebind::tcptransport::new()","firebind::transport::new()","firebind::udptransport::new()","firebind::scanstate#on_error()","firebind::scanstate#on_port_complete()","firebind::scanstate#on_port_start()","firebind::scanstate#on_port_tick()","firebind::scanstate#on_scan_complete()","firebind::scanstate#on_scan_start()","firebind::scanstate#on_scan_stop()","firebind::scanstate#on_start_failure()","firebind::scanstate#open_ports()","tools#out()","firebind::client#output_options()","firebind::client#parsed_options?()","firebind::scanstate#percent_complete()","firebind::scanstate#port_delay_seconds()","firebind::scanstate#port_duration()","firebind::tcptransport#receive()","firebind::udptransport#receive()","firebind::client#run()","firebind::scan#scan()","firebind::tcptransport#send()","firebind::udptransport#send()","testportspec#setup()","firebind::portspec#size()","firebind::scan#stop()","testportspec#teardown()","testportspec#test_fail()","firebind::portspec#to_s()","firebind::scanerror#to_s()","firebind::scanstate#to_s()","example#update()","firebind::client#update()","tools#verbose()","","","","","","",""],"info":[["Example","","Example.html","",""],["Firebind","","Firebind.html","","<p>Firebind – Path Scan Client Software Copyright (C) 2013 Firebind Inc. All\nrights reserved. Authors - …\n"],["Firebind::Client","","Firebind/Client.html","","<p>Firescan command line Ruby client for path scanning to a Firebind server\n"],["Firebind::Portspec","","Firebind/Portspec.html","","<p>This data structure encapsulates the properties and operations of a port\nlist. Arbitrary lists of comma …\n"],["Firebind::Scan","","Firebind/Scan.html","","<p>This is the primary API object for performing scans. Simply supply the\nnecessary arguments to create …\n"],["Firebind::ScanError","","Firebind/ScanError.html","",""],["Firebind::ScanState","","Firebind/ScanState.html","","\n<pre>Scan lifecycle states\n SCAN_SETUP\n SCAN_START\n PORT_START\n PORT_TICK\n PORT_COMPLETE\n ...\n SCAN_STOP ...</pre>\n"],["Firebind::SimpleProtocol","","Firebind/SimpleProtocol.html","","<p>Simplest of all echo protocols. This simply sends and receives an 8-byte\npayload representing the ID …\n"],["Firebind::TcpTransport","","Firebind/TcpTransport.html","","<p>Send and receive echo using TCP transport.\n"],["Firebind::Transport","","Firebind/Transport.html","",""],["Firebind::UdpTransport","","Firebind/UdpTransport.html","","<p>Send and receive echo using UDP transport.\n"],["Runner","","Runner.html","",""],["TestPortspec","","TestPortspec.html","",""],["Tools","","Tools.html","","<p>Utility module for translating socket and result codes.\n"],["arguments_valid?","Firebind::Client","Firebind/Client.html#method-i-arguments_valid-3F","()","<p>True if required arguments were provided\n"],["big_endian","Tools","Tools.html#method-i-big_endian","(a_number)",""],["close","Firebind::Transport","Firebind/Transport.html#method-i-close","()",""],["closed_ports","Firebind::ScanState","Firebind/ScanState.html#method-i-closed_ports","()","<p>return a Portspec of the closed ports for this scan\n"],["connect","Firebind::TcpTransport","Firebind/TcpTransport.html#method-i-connect","(port)","<p>establish connection to echo server on port\n"],["connect","Firebind::UdpTransport","Firebind/UdpTransport.html#method-i-connect","(port)",""],["debug","Tools","Tools.html#method-i-debug","(msg)",""],["description","Firebind::ScanState","Firebind/ScanState.html#method-i-description","(port_result_code)",""],["do_output","Firebind::Client","Firebind/Client.html#method-i-do_output","()",""],["do_scan_output","Firebind::Client","Firebind/Client.html#method-i-do_scan_output","(state)","<p>command line output formatting helpers\n"],["echo","Firebind::SimpleProtocol","Firebind/SimpleProtocol.html#method-i-echo","(port)",""],["new","Firebind::Client","Firebind/Client.html#method-c-new","(arguments)",""],["new","Firebind::Portspec","Firebind/Portspec.html#method-c-new","(port_list)","<p>Supply either a string or int array examples: 1,2,3,55,10-20 or\n[56,34,443,25,6000]\n"],["new","Firebind::Scan","Firebind/Scan.html#method-c-new","(command_server, ports, transport, timeout=5000, protocol=:SimpleProtocol, username=NIL, password=NIL)","<p>Create a new Scan\n"],["new","Firebind::ScanError","Firebind/ScanError.html#method-c-new","(status_code, error=nil)",""],["new","Firebind::ScanState","Firebind/ScanState.html#method-c-new","(command_server,protocol,transport,portspec,timeout)","<p>@param [Firebind::Portspec] portspec\n"],["new","Firebind::SimpleProtocol","Firebind/SimpleProtocol.html#method-c-new","(guid,echo_host,transport,timeout,state=NIL)","<p>@param [Object] transport\n"],["new","Firebind::TcpTransport","Firebind/TcpTransport.html#method-c-new","(echo_server,timeout)",""],["new","Firebind::Transport","Firebind/Transport.html#method-c-new","(echo_server, timeout)",""],["new","Firebind::UdpTransport","Firebind/UdpTransport.html#method-c-new","(echo_server,timeout)",""],["on_error","Firebind::ScanState","Firebind/ScanState.html#method-i-on_error","(status_code)",""],["on_port_complete","Firebind::ScanState","Firebind/ScanState.html#method-i-on_port_complete","(port,port_result_code)","<p>@param [Object] port\n"],["on_port_start","Firebind::ScanState","Firebind/ScanState.html#method-i-on_port_start","(port)",""],["on_port_tick","Firebind::ScanState","Firebind/ScanState.html#method-i-on_port_tick","()",""],["on_scan_complete","Firebind::ScanState","Firebind/ScanState.html#method-i-on_scan_complete","(status_code)",""],["on_scan_start","Firebind::ScanState","Firebind/ScanState.html#method-i-on_scan_start","(guid,echo_server,port_delay)","<p>lifecycle methods\n"],["on_scan_stop","Firebind::ScanState","Firebind/ScanState.html#method-i-on_scan_stop","()",""],["on_start_failure","Firebind::ScanState","Firebind/ScanState.html#method-i-on_start_failure","(status_code)",""],["open_ports","Firebind::ScanState","Firebind/ScanState.html#method-i-open_ports","()","<p>return a Portspec of the open ports for this scan\n"],["out","Tools","Tools.html#method-i-out","(msg)",""],["output_options","Firebind::Client","Firebind/Client.html#method-i-output_options","()",""],["parsed_options?","Firebind::Client","Firebind/Client.html#method-i-parsed_options-3F","()","<p>figure what arguments we have to work with\n"],["percent_complete","Firebind::ScanState","Firebind/ScanState.html#method-i-percent_complete","()",""],["port_delay_seconds","Firebind::ScanState","Firebind/ScanState.html#method-i-port_delay_seconds","()",""],["port_duration","Firebind::ScanState","Firebind/ScanState.html#method-i-port_duration","()","<p>data methods\n"],["receive","Firebind::TcpTransport","Firebind/TcpTransport.html#method-i-receive","()","<p>Receive echo response from server.\n<p>PAYLOAD_REFUSED_ON_RECV PAYLOAD_ERROR_ON_RECV PAYLOAD_TIMED_OUT_ON_RECV …\n"],["receive","Firebind::UdpTransport","Firebind/UdpTransport.html#method-i-receive","()","<p>Receive echo response from server. Partway through the timeout we’ll call\nsend() again to send more datagrams …\n"],["run","Firebind::Client","Firebind/Client.html#method-i-run","()","<p>Parse options, check arguments, then process the command\n"],["scan","Firebind::Scan","Firebind/Scan.html#method-i-scan","()","<p>Perform the path scan\n"],["send","Firebind::TcpTransport","Firebind/TcpTransport.html#method-i-send","(payload)","<p>Send data to the echo server\n<p>@param [Array payload - array of bytes\n"],["send","Firebind::UdpTransport","Firebind/UdpTransport.html#method-i-send","(payload,num_payloads = 10)","<p>Send data to the echo server, we’ll send multiple copies of the same data.\nSo long as the echo server …\n"],["setup","TestPortspec","TestPortspec.html#method-i-setup","()","<p>Called before every test method runs. Can be used to set up fixture\ninformation.\n"],["size","Firebind::Portspec","Firebind/Portspec.html#method-i-size","()",""],["stop","Firebind::Scan","Firebind/Scan.html#method-i-stop","()",""],["teardown","TestPortspec","TestPortspec.html#method-i-teardown","()","<p>Called after every test method runs. Can be used to tear down fixture\ninformation.\n"],["test_fail","TestPortspec","TestPortspec.html#method-i-test_fail","()","<p>Fake test\n"],["to_s","Firebind::Portspec","Firebind/Portspec.html#method-i-to_s","()",""],["to_s","Firebind::ScanError","Firebind/ScanError.html#method-i-to_s","()",""],["to_s","Firebind::ScanState","Firebind/ScanState.html#method-i-to_s","()",""],["update","Example","Example.html#method-i-update","(state)",""],["update","Firebind::Client","Firebind/Client.html#method-i-update","(state)","<p>scan callback interface @param [Object] state\n"],["verbose","Tools","Tools.html#method-i-verbose","(msg)",""],["LICENSE","","LICENSE_txt.html","","\n<pre> Apache License\n Version 2.0, January 2004\nhttp://www.apache.org/licenses/</pre>\n<p>TERMS AND CONDITIONS …\n"],["README","","README_txt.html","","<p>firescan-ruby\n<p>\n<p>Ruby reference implementation for the Firebind Firescan path scan client\nThis code has been …\n"],["USAGE","","USAGE_txt.html","","<p>Firescan - path scan client\n<p>Synopsis\n\n<pre>This is the Ruby reference implementation for the Firebind Firescan ...</pre>\n"],["VERSION","","VERSION_txt.html","","<p>Firescan Versioning\n<p>Version 0.07 - 12/2/2013 - Inital release\n"],["build","","build.html","","<p>#!/bin/bash rm *.gem rm -rf doc rdoc gem uninstall -x firescan gem build\nfirescan.gemspec gem install …\n"],["created.rid","","doc/created_rid.html","",""],["firescan.gemspec","","firescan_gemspec.html","","<p>Gem::Specification.new do |s|\n\n<pre>s.name = 'firescan'\ns.summary = 'Perform network path scanning'\ns.description ...</pre>\n"]]}}
|
1
|
+
var search_data = {"index":{"searchIndex":["example","firebind","client","portspec","scan","scanerror","scanstate","simpleprotocol","tcptransport","transport","udptransport","runner","testportspec","tools","arguments_valid?()","big_endian()","close()","closed_ports()","connect()","connect()","debug()","description()","do_output()","do_scan_output()","echo()","new()","new()","new()","new()","new()","new()","new()","new()","new()","on_error()","on_port_complete()","on_port_start()","on_port_tick()","on_scan_complete()","on_scan_start()","on_scan_stop()","on_start_failure()","open_ports()","out()","output_options()","parsed_options?()","percent_complete()","port_delay_seconds()","port_duration()","receive()","receive()","run()","scan()","send()","send()","setup()","size()","stop()","teardown()","test_fail()","to_s()","to_s()","to_s()","update()","update()","verbose()","license","readme","usage","version","created.rid","firescan.gemspec"],"longSearchIndex":["example","firebind","firebind::client","firebind::portspec","firebind::scan","firebind::scanerror","firebind::scanstate","firebind::simpleprotocol","firebind::tcptransport","firebind::transport","firebind::udptransport","runner","testportspec","tools","firebind::client#arguments_valid?()","tools#big_endian()","firebind::transport#close()","firebind::scanstate#closed_ports()","firebind::tcptransport#connect()","firebind::udptransport#connect()","tools#debug()","firebind::scanstate#description()","firebind::client#do_output()","firebind::client#do_scan_output()","firebind::simpleprotocol#echo()","firebind::client::new()","firebind::portspec::new()","firebind::scan::new()","firebind::scanerror::new()","firebind::scanstate::new()","firebind::simpleprotocol::new()","firebind::tcptransport::new()","firebind::transport::new()","firebind::udptransport::new()","firebind::scanstate#on_error()","firebind::scanstate#on_port_complete()","firebind::scanstate#on_port_start()","firebind::scanstate#on_port_tick()","firebind::scanstate#on_scan_complete()","firebind::scanstate#on_scan_start()","firebind::scanstate#on_scan_stop()","firebind::scanstate#on_start_failure()","firebind::scanstate#open_ports()","tools#out()","firebind::client#output_options()","firebind::client#parsed_options?()","firebind::scanstate#percent_complete()","firebind::scanstate#port_delay_seconds()","firebind::scanstate#port_duration()","firebind::tcptransport#receive()","firebind::udptransport#receive()","firebind::client#run()","firebind::scan#scan()","firebind::tcptransport#send()","firebind::udptransport#send()","testportspec#setup()","firebind::portspec#size()","firebind::scan#stop()","testportspec#teardown()","testportspec#test_fail()","firebind::portspec#to_s()","firebind::scanerror#to_s()","firebind::scanstate#to_s()","example#update()","firebind::client#update()","tools#verbose()","","","","","",""],"info":[["Example","","Example.html","",""],["Firebind","","Firebind.html","","<p>This module encapsulates client-side path scanning functionality for use\nwith an associated Firebind …\n"],["Firebind::Client","","Firebind/Client.html","","<p>Firescan command line Ruby client for path scanning to a Firebind server\n"],["Firebind::Portspec","","Firebind/Portspec.html","","<p>This data structure encapsulates the properties and operations of a port\nlist. Arbitrary lists of comma …\n"],["Firebind::Scan","","Firebind/Scan.html","","<p>This is the primary API object for performing scans. Simply supply the\nnecessary arguments to create …\n"],["Firebind::ScanError","","Firebind/ScanError.html","",""],["Firebind::ScanState","","Firebind/ScanState.html","","\n<pre>Scan lifecycle states\n SCAN_SETUP\n SCAN_START\n PORT_START\n PORT_TICK\n PORT_COMPLETE\n ...\n SCAN_STOP ...</pre>\n"],["Firebind::SimpleProtocol","","Firebind/SimpleProtocol.html","","<p>Simplest of all echo protocols. This simply sends and receives an 8-byte\npayload representing the ID …\n"],["Firebind::TcpTransport","","Firebind/TcpTransport.html","","<p>Send and receive echo using TCP transport.\n"],["Firebind::Transport","","Firebind/Transport.html","",""],["Firebind::UdpTransport","","Firebind/UdpTransport.html","","<p>Send and receive echo using UDP transport.\n"],["Runner","","Runner.html","",""],["TestPortspec","","TestPortspec.html","",""],["Tools","","Tools.html","","<p>Utility module for translating socket and result codes.\n"],["arguments_valid?","Firebind::Client","Firebind/Client.html#method-i-arguments_valid-3F","()","<p>True if required arguments were provided\n"],["big_endian","Tools","Tools.html#method-i-big_endian","(a_number)",""],["close","Firebind::Transport","Firebind/Transport.html#method-i-close","()",""],["closed_ports","Firebind::ScanState","Firebind/ScanState.html#method-i-closed_ports","()","<p>return a Portspec of the closed ports for this scan\n"],["connect","Firebind::TcpTransport","Firebind/TcpTransport.html#method-i-connect","(port)","<p>establish connection to echo server on port\n"],["connect","Firebind::UdpTransport","Firebind/UdpTransport.html#method-i-connect","(port)",""],["debug","Tools","Tools.html#method-i-debug","(msg)",""],["description","Firebind::ScanState","Firebind/ScanState.html#method-i-description","(port_result_code)",""],["do_output","Firebind::Client","Firebind/Client.html#method-i-do_output","()",""],["do_scan_output","Firebind::Client","Firebind/Client.html#method-i-do_scan_output","(state)","<p>command line output formatting helpers\n"],["echo","Firebind::SimpleProtocol","Firebind/SimpleProtocol.html#method-i-echo","(port)",""],["new","Firebind::Client","Firebind/Client.html#method-c-new","(arguments)",""],["new","Firebind::Portspec","Firebind/Portspec.html#method-c-new","(port_list)","<p>Supply either a string or int array examples: 1,2,3,55,10-20 or\n[56,34,443,25,6000]\n"],["new","Firebind::Scan","Firebind/Scan.html#method-c-new","(command_server, ports, transport, timeout=5000, protocol=:SimpleProtocol, username=nil, password=nil, tag=nil)","<p>Create a new Scan\n"],["new","Firebind::ScanError","Firebind/ScanError.html#method-c-new","(status_code, error=nil)",""],["new","Firebind::ScanState","Firebind/ScanState.html#method-c-new","(command_server,protocol,transport,portspec,timeout)","<p>@param [Firebind::Portspec] portspec\n"],["new","Firebind::SimpleProtocol","Firebind/SimpleProtocol.html#method-c-new","(guid,echo_host,transport,timeout,state=nil)","<p>@param [Object] transport\n"],["new","Firebind::TcpTransport","Firebind/TcpTransport.html#method-c-new","(echo_server,timeout)",""],["new","Firebind::Transport","Firebind/Transport.html#method-c-new","(echo_server, timeout)",""],["new","Firebind::UdpTransport","Firebind/UdpTransport.html#method-c-new","(echo_server,timeout)",""],["on_error","Firebind::ScanState","Firebind/ScanState.html#method-i-on_error","(status_code)",""],["on_port_complete","Firebind::ScanState","Firebind/ScanState.html#method-i-on_port_complete","(port,port_result_code)","<p>@param [Object] port\n"],["on_port_start","Firebind::ScanState","Firebind/ScanState.html#method-i-on_port_start","(port)",""],["on_port_tick","Firebind::ScanState","Firebind/ScanState.html#method-i-on_port_tick","()",""],["on_scan_complete","Firebind::ScanState","Firebind/ScanState.html#method-i-on_scan_complete","(status_code)",""],["on_scan_start","Firebind::ScanState","Firebind/ScanState.html#method-i-on_scan_start","(guid,echo_server,port_delay)","<p>lifecycle methods\n"],["on_scan_stop","Firebind::ScanState","Firebind/ScanState.html#method-i-on_scan_stop","()",""],["on_start_failure","Firebind::ScanState","Firebind/ScanState.html#method-i-on_start_failure","(status_code)",""],["open_ports","Firebind::ScanState","Firebind/ScanState.html#method-i-open_ports","()","<p>return a Portspec of the open ports for this scan\n"],["out","Tools","Tools.html#method-i-out","(msg)",""],["output_options","Firebind::Client","Firebind/Client.html#method-i-output_options","()",""],["parsed_options?","Firebind::Client","Firebind/Client.html#method-i-parsed_options-3F","()","<p>figure what arguments we have to work with\n"],["percent_complete","Firebind::ScanState","Firebind/ScanState.html#method-i-percent_complete","()",""],["port_delay_seconds","Firebind::ScanState","Firebind/ScanState.html#method-i-port_delay_seconds","()",""],["port_duration","Firebind::ScanState","Firebind/ScanState.html#method-i-port_duration","()","<p>data methods\n"],["receive","Firebind::TcpTransport","Firebind/TcpTransport.html#method-i-receive","()","<p>Receive echo response from server.\n<p>PAYLOAD_REFUSED_ON_RECV PAYLOAD_ERROR_ON_RECV PAYLOAD_TIMED_OUT_ON_RECV …\n"],["receive","Firebind::UdpTransport","Firebind/UdpTransport.html#method-i-receive","()","<p>Receive echo response from server. Partway through the timeout we’ll call\nsend() again to send more datagrams …\n"],["run","Firebind::Client","Firebind/Client.html#method-i-run","()","<p>Parse options, check arguments, then process the command\n"],["scan","Firebind::Scan","Firebind/Scan.html#method-i-scan","()","<p>Perform the path scan\n"],["send","Firebind::TcpTransport","Firebind/TcpTransport.html#method-i-send","(payload)","<p>Send data to the echo server\n<p>@param [Array payload - array of bytes\n"],["send","Firebind::UdpTransport","Firebind/UdpTransport.html#method-i-send","(payload,num_payloads = 10)","<p>Send data to the echo server, we’ll send multiple copies of the same data.\nSo long as the echo server …\n"],["setup","TestPortspec","TestPortspec.html#method-i-setup","()","<p>Called before every test method runs. Can be used to set up fixture\ninformation.\n"],["size","Firebind::Portspec","Firebind/Portspec.html#method-i-size","()",""],["stop","Firebind::Scan","Firebind/Scan.html#method-i-stop","()",""],["teardown","TestPortspec","TestPortspec.html#method-i-teardown","()","<p>Called after every test method runs. Can be used to tear down fixture\ninformation.\n"],["test_fail","TestPortspec","TestPortspec.html#method-i-test_fail","()","<p>Fake test\n"],["to_s","Firebind::Portspec","Firebind/Portspec.html#method-i-to_s","()",""],["to_s","Firebind::ScanError","Firebind/ScanError.html#method-i-to_s","()",""],["to_s","Firebind::ScanState","Firebind/ScanState.html#method-i-to_s","()",""],["update","Example","Example.html#method-i-update","(state)",""],["update","Firebind::Client","Firebind/Client.html#method-i-update","(state)","<p>scan callback interface @param [Object] state\n"],["verbose","Tools","Tools.html#method-i-verbose","(msg)",""],["LICENSE","","LICENSE_txt.html","","\n<pre> Apache License\n Version 2.0, January 2004\nhttp://www.apache.org/licenses/</pre>\n<p>TERMS AND CONDITIONS …\n"],["README","","README_txt.html","","<p>firescan-ruby\n<p>\n<p>Ruby reference implementation for the Firebind Firescan path scan client\nThis code has been …\n"],["USAGE","","USAGE_txt.html","","<p>Firescan - path scan client\n<p>Synopsis\n\n<pre>This is the Ruby reference implementation for the Firebind Firescan ...</pre>\n"],["VERSION","","VERSION_txt.html","","<p>Firescan Versioning\n<p>Version 0.07 - 12/2/2013 - Initial release Version 0.08 - 1/10/2014 -\nTimeout and …\n"],["created.rid","","doc/created_rid.html","",""],["firescan.gemspec","","firescan_gemspec.html","","<p>Gem::Specification.new do |s|\n\n<pre>s.name = 'firescan'\ns.summary = 'Perform network path scanning'\ns.description ...</pre>\n"]]}}
|
data/doc/table_of_contents.html
CHANGED
data/firescan.gemspec
CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
|
|
4
4
|
s.summary = 'Perform network path scanning'
|
5
5
|
s.description = File.read(File.join(File.dirname(__FILE__), 'README.txt'))
|
6
6
|
s.requirements = 'none'
|
7
|
-
s.version = '0.
|
7
|
+
s.version = '0.08'
|
8
8
|
s.author = 'Jay Houghton'
|
9
9
|
s.email = 'jay@firebind.com'
|
10
10
|
s.homepage = 'http://www.firebind.com'
|
data/lib/firebind/client.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
#--
|
1
2
|
# Firebind -- Path Scan Client Software
|
2
3
|
# Copyright (C) 2013 Firebind Inc. All rights reserved.
|
3
4
|
# Authors - Jay Houghton
|
@@ -13,11 +14,12 @@
|
|
13
14
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14
15
|
# License for the specific language governing permissions and limitations under
|
15
16
|
# the License.
|
17
|
+
#++
|
16
18
|
|
17
19
|
require 'optparse'
|
18
20
|
require 'ostruct'
|
19
21
|
require 'date'
|
20
|
-
|
22
|
+
|
21
23
|
require_relative 'scan'
|
22
24
|
require_relative 'tools'
|
23
25
|
|
@@ -26,35 +28,35 @@ module Firebind
|
|
26
28
|
# Firescan command line Ruby client for path scanning to a Firebind server
|
27
29
|
class Client
|
28
30
|
include Tools
|
29
|
-
VERSION = '0.
|
31
|
+
VERSION = '0.08'
|
30
32
|
|
31
33
|
attr_reader :options
|
32
34
|
|
33
35
|
def initialize(arguments)
|
34
36
|
@arguments = arguments
|
35
37
|
|
36
|
-
@opts =
|
38
|
+
@opts = nil
|
37
39
|
# Set defaults
|
38
40
|
@options = OpenStruct.new
|
39
|
-
@options.username =
|
40
|
-
@options.password =
|
41
|
+
@options.username = nil
|
42
|
+
@options.password = nil
|
41
43
|
@options.command_server = 'scanme.firebind.com'
|
42
44
|
@options.protocol = :Simple
|
43
45
|
@options.transport = :TCP
|
44
46
|
@options.timeout = 5000
|
45
|
-
@options.tcp_port_list =
|
46
|
-
@options.udp_port_list =
|
47
|
-
@options.local_address =
|
48
|
-
@options.tag =
|
47
|
+
@options.tcp_port_list = nil
|
48
|
+
@options.udp_port_list = nil
|
49
|
+
@options.local_address = nil
|
50
|
+
@options.tag = nil
|
49
51
|
end
|
50
52
|
|
51
53
|
# Parse options, check arguments, then process the command
|
52
54
|
def run
|
53
|
-
scan =
|
55
|
+
scan = nil
|
54
56
|
begin
|
55
57
|
|
56
58
|
if parsed_options? && arguments_valid?
|
57
|
-
puts
|
59
|
+
puts
|
58
60
|
verbose "Start at #{DateTime.now}"
|
59
61
|
puts "Firescan Ruby client version #{VERSION} ( http://www.firebind.com )"
|
60
62
|
#############
|
@@ -70,7 +72,8 @@ module Firebind
|
|
70
72
|
@options.timeout,
|
71
73
|
:SimpleProtocol,
|
72
74
|
@options.username,
|
73
|
-
@options.password
|
75
|
+
@options.password,
|
76
|
+
@options.tag)
|
74
77
|
|
75
78
|
scan.add_observer self
|
76
79
|
begin
|
@@ -95,10 +98,11 @@ module Firebind
|
|
95
98
|
@options.timeout,
|
96
99
|
:SimpleProtocol,
|
97
100
|
@options.username,
|
98
|
-
@options.password
|
101
|
+
@options.password,
|
102
|
+
@options.tag)
|
99
103
|
|
100
104
|
scan.add_observer self
|
101
|
-
puts
|
105
|
+
puts
|
102
106
|
begin
|
103
107
|
@udp_scan = scan.scan
|
104
108
|
|
@@ -210,7 +214,7 @@ module Firebind
|
|
210
214
|
when $authentication_failure
|
211
215
|
puts 'Authentication failure'
|
212
216
|
when $request_invalid
|
213
|
-
puts 'Incompatible command server (request invalid)'
|
217
|
+
puts 'Incompatible command server (request invalid) please check for a firescan gem update'
|
214
218
|
when $server_bind_error
|
215
219
|
puts "Server unable to bind on ports #{state.portspec.to_s}"
|
216
220
|
when $command_server_unavailable
|
@@ -300,7 +304,7 @@ module Firebind
|
|
300
304
|
|
301
305
|
# True if required arguments were provided
|
302
306
|
def arguments_valid?
|
303
|
-
true if @options.udp_port_list !=
|
307
|
+
true if @options.udp_port_list != nil || @options.tcp_port_list != nil
|
304
308
|
end
|
305
309
|
|
306
310
|
end
|