rbkb 0.6.12 → 0.7.0

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.
Files changed (50) hide show
  1. checksums.yaml +15 -0
  2. data/.bnsignore +25 -0
  3. data/.rspec +2 -0
  4. data/Gemfile +4 -0
  5. data/Gemfile.lock +27 -0
  6. data/History.txt +8 -0
  7. data/LICENSE.txt +22 -0
  8. data/Rakefile +10 -45
  9. data/experimental/cap2files +21 -0
  10. data/experimental/cap2yaml +20 -0
  11. data/experimental/colordif.rb +72 -0
  12. data/experimental/deezee +91 -0
  13. data/experimental/feed +225 -0
  14. data/experimental/fmagic.rb +51 -0
  15. data/experimental/magicrip.c +92 -0
  16. data/experimental/magicripper.rb +63 -0
  17. data/lib/rbkb.rb +2 -48
  18. data/lib/rbkb/cli.rb +3 -2
  19. data/lib/rbkb/cli/bgrep.rb +1 -4
  20. data/lib/rbkb/cli/blit.rb +4 -0
  21. data/lib/rbkb/cli/crc32.rb +4 -1
  22. data/lib/rbkb/cli/dedump.rb +1 -0
  23. data/lib/rbkb/cli/rstrings.rb +1 -7
  24. data/lib/rbkb/extends.rb +8 -787
  25. data/lib/rbkb/extends/array.rb +29 -0
  26. data/lib/rbkb/extends/common.rb +13 -0
  27. data/lib/rbkb/extends/enumerable.rb +9 -0
  28. data/lib/rbkb/extends/float.rb +17 -0
  29. data/lib/rbkb/extends/numeric.rb +83 -0
  30. data/lib/rbkb/extends/object.rb +7 -0
  31. data/lib/rbkb/extends/string.rb +624 -0
  32. data/lib/rbkb/extends/symbol.rb +8 -0
  33. data/lib/rbkb/plug/blit.rb +21 -1
  34. data/lib/rbkb/plug/peer.rb +5 -0
  35. data/lib/rbkb/plug/plug.rb +6 -2
  36. data/lib/rbkb/version.rb +3 -0
  37. data/rbkb.gemspec +20 -34
  38. data/reference/blackbag-0.9.1.tgz +0 -0
  39. data/reference/note_http_unit_tests +3 -0
  40. data/spec/spec_helper.rb +5 -14
  41. data/spec/string_extends_spec.rb +129 -0
  42. data/test/{test_cli_blit.rb → disabled_test_cli_blit.rb} +0 -0
  43. data/test/{test_cli_feed.rb → disabled_test_cli_feed.rb} +0 -0
  44. data/test/{test_cli_telson.rb → disabled_test_cli_telson.rb} +0 -0
  45. data/test/test_cli_chars.rb +2 -0
  46. data/test/test_cli_helper.rb +3 -5
  47. data/test/test_cli_rstrings.rb +2 -0
  48. data/test/test_helper.rb +8 -0
  49. metadata +107 -89
  50. data/test/test_rbkb.rb +0 -19
@@ -0,0 +1,8 @@
1
+
2
+ class Symbol
3
+ # looks up this symbol as a constant defined in 'ns' (Object by default)
4
+ def const_lookup(ns=Object)
5
+ self.to_s.const_lookup(ns)
6
+ end
7
+ end
8
+
@@ -15,6 +15,7 @@ module Plug
15
15
  2 => :delete,
16
16
  5 => :sendmsg,
17
17
  6 => :list_peers,
18
+ 7 => :starttls,
18
19
 
19
20
  0xfe => :clear,
20
21
  0xff => :kill,
@@ -65,6 +66,21 @@ module Plug
65
66
  SIG + opno.chr
66
67
  end
67
68
 
69
+ def starttls
70
+ unless ( peerno=@buf.read(2) and peerno.size == 2 and
71
+ peer=@peers[peerno.dat_to_num(:big)] )
72
+
73
+ UI.log "** BLIT-ERROR(Malformed or missing peer for starttls)"
74
+ return true
75
+ end
76
+
77
+ peer.start_tls(self)
78
+ end
79
+
80
+ def self.make_starttls(peerno)
81
+ self.blit_header(:starttls) + peerno.to_bytes(:big, 2)
82
+ end
83
+
68
84
  def mute
69
85
  unless ( peerno=@buf.read(2) and peerno.size == 2 and
70
86
  peer=@peers[peerno.dat_to_num(:big)] )
@@ -202,6 +218,11 @@ module Plug
202
218
  blit_raw(msg)
203
219
  end
204
220
 
221
+ def self.blit_starttls(idx = 0)
222
+ msg = make_starttls(idx)
223
+ blit_raw(msg)
224
+ end
225
+
205
226
  def self.blit_raw(buf)
206
227
  raise "use blit_init first!" unless self.initialized?
207
228
  @blit_handler.call buf
@@ -209,7 +230,6 @@ module Plug
209
230
 
210
231
  end # of module Blit
211
232
 
212
-
213
233
  end # of module Plug
214
234
 
215
235
  class String
@@ -29,6 +29,11 @@ module Plug
29
29
  end
30
30
  end
31
31
 
32
+ def start_tls(sender)
33
+ UI.logmsg(self.name, "#{sender.name} initiated TLS")
34
+ @owner.start_tls
35
+ end
36
+
32
37
  def close
33
38
  @owner.unbind unless @transport == :UDP
34
39
  end
@@ -19,9 +19,13 @@ module Plug
19
19
 
20
20
  def self.debug(*msg); LOGCFG[:out].puts msg if LOGCFG[:debug] ; end
21
21
 
22
+ def self.logmsg(name, msg)
23
+ log "%% #{name} - #{msg}"
24
+ end
25
+
22
26
  def self.dump(from, to, dat)
23
27
  if dump=LOGCFG[:dump]
24
- LOGCFG[:out].puts "%% #{from} SAYS TO #{to} LEN=#{dat.size}" if LOGCFG[:verbose]
28
+ log "%% #{from} SAYS TO #{to} LEN=#{dat.size}" if LOGCFG[:verbose]
25
29
  case dump
26
30
  when :hex
27
31
  dat.hexdump(:out => LOGCFG[:out])
@@ -30,7 +34,7 @@ module Plug
30
34
  else
31
35
  LOGCFG[:out].puts dat
32
36
  end
33
- LOGCFG[:out].puts "%%" if LOGCFG[:verbose]
37
+ log "%%" if LOGCFG[:verbose]
34
38
  end
35
39
  end
36
40
  end
@@ -0,0 +1,3 @@
1
+ module Rbkb
2
+ VERSION = "0.7.0"
3
+ end
data/rbkb.gemspec CHANGED
@@ -1,38 +1,24 @@
1
- # -*- encoding: utf-8 -*-
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'rbkb/version'
2
5
 
3
- Gem::Specification.new do |s|
4
- s.name = %q{rbkb}
5
- s.version = "0.6.12"
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "rbkb"
8
+ spec.version = Rbkb::VERSION
9
+ spec.authors = ["Eric Monti"]
10
+ spec.email = ["monti@bluebox.com"]
11
+ spec.description = "Rbkb is a collection of ruby-based pen-testing and reversing tools. Inspired by Matasano Blackbag."
12
+ spec.summary = "Rbkb is a collection of ruby-based pen-testing and reversing tools"
13
+ spec.homepage = "http://emonti.github.com/rbkb"
14
+ spec.license = "MIT"
6
15
 
7
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Eric Monti"]
9
- s.date = %q{2009-11-02}
10
- s.description = %q{Rbkb is a collection of ruby-based pen-testing and reversing tools. Inspired by Matasano Blackbag.}
11
- s.email = %q{emonti@matasano.com}
12
- s.executables = ["b64", "bgrep", "blit", "c", "crc32", "d64", "dedump", "feed", "hexify", "len", "plugsrv", "rex", "rstrings", "slice", "telson", "unhexify", "urldec", "urlenc", "xor"]
13
- s.extra_rdoc_files = ["History.txt", "README.rdoc", "bin/b64", "bin/bgrep", "bin/blit", "bin/c", "bin/crc32", "bin/d64", "bin/dedump", "bin/feed", "bin/hexify", "bin/len", "bin/plugsrv", "bin/rex", "bin/rstrings", "bin/slice", "bin/telson", "bin/unhexify", "bin/urldec", "bin/urlenc", "bin/xor", "cli_usage.rdoc", "lib_usage.rdoc"]
14
- s.files = ["History.txt", "README.rdoc", "Rakefile", "bin/b64", "bin/bgrep", "bin/blit", "bin/c", "bin/crc32", "bin/d64", "bin/dedump", "bin/feed", "bin/hexify", "bin/len", "bin/plugsrv", "bin/rex", "bin/rstrings", "bin/slice", "bin/telson", "bin/unhexify", "bin/urldec", "bin/urlenc", "bin/xor", "cli_usage.rdoc", "doctor-bag.jpg", "lib/rbkb.rb", "lib/rbkb/cli.rb", "lib/rbkb/cli/b64.rb", "lib/rbkb/cli/bgrep.rb", "lib/rbkb/cli/blit.rb", "lib/rbkb/cli/chars.rb", "lib/rbkb/cli/crc32.rb", "lib/rbkb/cli/d64.rb", "lib/rbkb/cli/dedump.rb", "lib/rbkb/cli/feed.rb", "lib/rbkb/cli/hexify.rb", "lib/rbkb/cli/len.rb", "lib/rbkb/cli/rstrings.rb", "lib/rbkb/cli/slice.rb", "lib/rbkb/cli/telson.rb", "lib/rbkb/cli/unhexify.rb", "lib/rbkb/cli/urldec.rb", "lib/rbkb/cli/urlenc.rb", "lib/rbkb/cli/xor.rb", "lib/rbkb/extends.rb", "lib/rbkb/plug.rb", "lib/rbkb/plug/blit.rb", "lib/rbkb/plug/cli.rb", "lib/rbkb/plug/feed_import.rb", "lib/rbkb/plug/peer.rb", "lib/rbkb/plug/plug.rb", "lib/rbkb/plug/proxy.rb", "lib/rbkb/plug/unix_domain.rb", "lib_usage.rdoc", "rbkb.gemspec", "spec/rbkb_spec.rb", "spec/spec_helper.rb", "tasks/ann.rake", "tasks/bones.rake", "tasks/gem.rake", "tasks/git.rake", "tasks/notes.rake", "tasks/post_load.rake", "tasks/rdoc.rake", "tasks/rubyforge.rake", "tasks/setup.rb", "tasks/spec.rake", "tasks/svn.rake", "tasks/test.rake", "test/test_cli_b64.rb", "test/test_cli_bgrep.rb", "test/test_cli_blit.rb", "test/test_cli_chars.rb", "test/test_cli_crc32.rb", "test/test_cli_d64.rb", "test/test_cli_dedump.rb", "test/test_cli_feed.rb", "test/test_cli_helper.rb", "test/test_cli_hexify.rb", "test/test_cli_len.rb", "test/test_cli_rstrings.rb", "test/test_cli_slice.rb", "test/test_cli_telson.rb", "test/test_cli_unhexify.rb", "test/test_cli_urldec.rb", "test/test_cli_urlenc.rb", "test/test_cli_xor.rb", "test/test_helper.rb", "test/test_rbkb.rb"]
15
- s.homepage = %q{http://emonti.github.com/rbkb}
16
- s.rdoc_options = ["--line-numbers", "--main", "README.rdoc"]
17
- s.require_paths = ["lib"]
18
- s.rubyforge_project = %q{rbkb}
19
- s.rubygems_version = %q{1.3.4}
20
- s.summary = %q{Rbkb is a collection of ruby-based pen-testing and reversing tools}
21
- s.test_files = ["test/test_cli_b64.rb", "test/test_cli_bgrep.rb", "test/test_cli_blit.rb", "test/test_cli_chars.rb", "test/test_cli_crc32.rb", "test/test_cli_d64.rb", "test/test_cli_dedump.rb", "test/test_cli_feed.rb", "test/test_cli_helper.rb", "test/test_cli_hexify.rb", "test/test_cli_len.rb", "test/test_cli_rstrings.rb", "test/test_cli_slice.rb", "test/test_cli_telson.rb", "test/test_cli_unhexify.rb", "test/test_cli_urldec.rb", "test/test_cli_urlenc.rb", "test/test_cli_xor.rb", "test/test_helper.rb", "test/test_rbkb.rb"]
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
22
20
 
23
- if s.respond_to? :specification_version then
24
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
25
- s.specification_version = 3
26
-
27
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
28
- s.add_runtime_dependency(%q<eventmachine>, [">= 0.12.8"])
29
- s.add_development_dependency(%q<bones>, [">= 2.5.1"])
30
- else
31
- s.add_dependency(%q<eventmachine>, [">= 0.12.8"])
32
- s.add_dependency(%q<bones>, [">= 2.5.1"])
33
- end
34
- else
35
- s.add_dependency(%q<eventmachine>, [">= 0.12.8"])
36
- s.add_dependency(%q<bones>, [">= 2.5.1"])
37
- end
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "rspec"
38
24
  end
Binary file
@@ -0,0 +1,3 @@
1
+ ruby -S rcov \
2
+ test/test_http*.rb \
3
+ --sort coverage -T --exclude rcov.rb --exclude eventmachine --exclude pcap_misc.rb --exclude pcaplet.rb -o coverage_http
data/spec/spec_helper.rb CHANGED
@@ -1,16 +1,7 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+ require 'rspec'
4
+ require 'rbkb'
1
5
 
2
- require File.expand_path(
3
- File.join(File.dirname(__FILE__), %w[.. lib rbkb]))
4
-
5
- Spec::Runner.configure do |config|
6
- # == Mock Framework
7
- #
8
- # RSpec uses it's own mocking framework by default. If you prefer to
9
- # use mocha, flexmock or RR, uncomment the appropriate line:
10
- #
11
- # config.mock_with :mocha
12
- # config.mock_with :flexmock
13
- # config.mock_with :rr
6
+ RSpec.configure do |config|
14
7
  end
15
-
16
- # EOF
@@ -0,0 +1,129 @@
1
+ require_relative 'spec_helper'
2
+ require 'rbkb/extends/string'
3
+
4
+ # note by definition extends are really meant to be used as mixins or
5
+ # monkey-patches on base classes (like String) But here we use
6
+ # RbkbString to avoid performing the mixin for our tests
7
+ describe Rbkb::Extends::String do
8
+ it "should hexify" do
9
+ RbkbString("foo").hexify.should == "666f6f"
10
+ RbkbString("foo").hexify(:delim => ':').should == "66:6f:6f"
11
+ end
12
+
13
+ it "should unhexify" do
14
+ RbkbString("666f6f").unhexify.should == "foo"
15
+ RbkbString("66:6f:6f").unhexify(':').should == "foo"
16
+ end
17
+
18
+
19
+ it "should url-encode a string" do
20
+ RbkbString("foo").urlenc().should == "foo"
21
+ RbkbString("foo\n").urlenc().should == "foo%0a"
22
+ RbkbString("foo ").urlenc().should == "foo%20"
23
+ RbkbString("foo ").urlenc(plus:true).should == "foo+"
24
+ RbkbString("foo\xff\n").urlenc().should == "foo%ff%0a"
25
+ RbkbString("foo").urlenc(rx:/./).should == "%66%6f%6f"
26
+ end
27
+
28
+ it "should url-decode a string" do
29
+ RbkbString("%66%6f%6f").urldec.should == "foo"
30
+ RbkbString("foo%0a").urldec.should == "foo\n"
31
+ RbkbString("foo%20").urldec.should == "foo "
32
+ RbkbString("foo+").urldec.should == "foo "
33
+ RbkbString("foo%ff\n").urldec.should == "foo\xFF\n".force_encoding('ascii')
34
+ end
35
+
36
+
37
+ it "should base-64 encode a string" do
38
+ RbkbString("fooby").b64.should == "Zm9vYnk="
39
+ RbkbString("\xca\xfe\xba\xbe").b64.should == "yv66vg=="
40
+ RbkbString("foo\xFF\n".force_encoding('ascii')).b64.should == "Zm9v/wo="
41
+ end
42
+
43
+ it "should base-64 decode a string" do
44
+ RbkbString("Zm9vYnk=").d64.should == "fooby"
45
+ RbkbString("yv66vg==").d64.should == "\xca\xfe\xba\xbe"
46
+ RbkbString("yv66vg==").d64.bytes.to_a.should == [0xca,0xfe,0xba,0xbe]
47
+ RbkbString("Zm9v/wo=").d64.bytes.to_a.should == [0x66, 0x6f, 0x6f, 0xff, 0x0a]
48
+ end
49
+
50
+ it "should identify whether a string is all hex" do
51
+ RbkbString("foo").ishex?.should be_false
52
+ RbkbString("fa").ishex?.should be_true
53
+ RbkbString("faf").ishex?.should be_false
54
+ RbkbString("fa\nfa").ishex?.should be_true
55
+ RbkbString("fa\nfa\n").ishex?.should be_true
56
+ RbkbString(RbkbString((0..255).map{|x| x.chr}.join).hexify).ishex?.should be_true
57
+ end
58
+
59
+ it "should convert a raw string to number" do
60
+ RbkbString("\xFF"*10).dat_to_num.should == 1208925819614629174706175
61
+ RbkbString("\xFF"*20).dat_to_num.should == 1461501637330902918203684832716283019655932542975
62
+ end
63
+
64
+ it "should convert a hex string to number" do
65
+ RbkbString("FF"*10).hex_to_num.should == 1208925819614629174706175
66
+ RbkbString("FF"*20).hex_to_num.should == 1461501637330902918203684832716283019655932542975
67
+ end
68
+
69
+ it "should calculate the entropy of a string" do
70
+ RbkbString("\xFF"*10).entropy.should == 0.0
71
+ RbkbString("ABCD").entropy.should == 2.0
72
+ RbkbString("ABCD"*10).entropy.should == 2.0
73
+ RbkbString((0..255).to_a.map{|x| x.chr}.join).entropy.should == 8.0
74
+ end
75
+
76
+
77
+ it "should right/left align a string" do
78
+ RbkbString("foo").ralign(4).should == " foo"
79
+ RbkbString("foo").lalign(4).should == "foo "
80
+ RbkbString("fooby").ralign(4).should == " fooby"
81
+ RbkbString("fooby").lalign(4).should == "fooby "
82
+
83
+ RbkbString("foo").ralign(4,"\x00").should == "\x00foo"
84
+ RbkbString("foo").lalign(4,"\x00").should == "foo\x00"
85
+ RbkbString("fooby").ralign(4,"\x00").should == "\x00\x00\x00fooby"
86
+ RbkbString("fooby").lalign(4,"\x00").should == "fooby\x00\x00\x00"
87
+ end
88
+
89
+ context 'hexdump' do
90
+ before :all do
91
+ @tst_string = RbkbString("this is a \x00\n\n\ntest\x01\x02\xff\x00")
92
+ @tst_dump = RbkbString.new <<_EOF_
93
+ 00000000 74 68 69 73 20 69 73 20 61 20 00 0a 0a 0a 74 65 |this is a ....te|
94
+ 00000010 73 74 01 02 ff 00 |st....|
95
+ 00000016
96
+ _EOF_
97
+ end
98
+
99
+ it "should create a hexdump from a string" do
100
+ @tst_string.hexdump.should == @tst_dump
101
+ end
102
+
103
+ it "should dedump a hexdump back to a string" do
104
+ @tst_dump.dedump.bytes.to_a.should == @tst_string.bytes.to_a
105
+ end
106
+ end
107
+
108
+ context 'strings' do
109
+ before :all do
110
+ @test_dat = RbkbString("a\000bc\001def\002gehi\003jklmn\004string 1\005string 2\020\370\f string 3\314string4\221string 5\n\000string 6\r\n\000\000\000\000string 7\000\000w\000i\000d\000e\000s\000t\000r\000i\000n\000g\000\000\000last string\000")
111
+
112
+ @expect_strings =[
113
+ [20, 28, :ascii, "string 1"],
114
+ [29, 37, :ascii, "string 2"],
115
+ [39, 49, :ascii, "\f string 3"],
116
+ [50, 57, :ascii, "string4"],
117
+ [58, 68, :ascii, "string 5\n\x00"],
118
+ [68, 79, :ascii, "string 6\r\n\x00"],
119
+ [82, 91, :ascii, "string 7\x00"],
120
+ [92, 114, :unicode, "w\x00i\x00d\x00e\x00s\x00t\x00r\x00i\x00n\x00g\x00\x00\x00"],
121
+ [114, 126, :ascii, "last string\x00"],
122
+ ]
123
+ end
124
+
125
+ it "should find strings in a binary blob" do
126
+ @test_dat.strings.should == @expect_strings
127
+ end
128
+ end
129
+ end
@@ -1,5 +1,7 @@
1
1
  require File.join(File.dirname(__FILE__), "test_cli_helper.rb")
2
2
 
3
+ require 'rbkb/cli/chars'
4
+
3
5
  class TestCliChars < Test::Unit::TestCase
4
6
  include CliTest
5
7
 
@@ -1,15 +1,13 @@
1
1
  require File.join(File.dirname(__FILE__), 'test_helper.rb')
2
2
  require 'rbkb/cli.rb'
3
3
 
4
- Rbkb.require_all_libs_relative_to(File.dirname(__FILE__) + "/../lib/rbkb/cli.rb")
5
-
6
4
  Rbkb::Cli::TESTING = true unless defined? Rbkb::Cli::TESTING
7
5
 
8
6
  module CliTest
9
7
  def setup
10
- @stdout_io = StringIO.new
11
- @stderr_io = StringIO.new
12
- @stdin_io = StringIO.new
8
+ @stdout_io = StringIO_compat.new
9
+ @stderr_io = StringIO_compat.new
10
+ @stdin_io = StringIO_compat.new
13
11
  @cli_obj = @cli_class.new(
14
12
  :stdout => @stdout_io,
15
13
  :stderr => @stderr_io,
@@ -1,5 +1,7 @@
1
1
  require File.join(File.dirname(__FILE__), "test_cli_helper.rb")
2
2
 
3
+ require 'rbkb/cli/rstrings'
4
+
3
5
  # FIXME Finish test cases for rstrings cli
4
6
 
5
7
  class TestCliRstrings < Test::Unit::TestCase
data/test/test_helper.rb CHANGED
@@ -3,3 +3,11 @@ require 'stringio'
3
3
  require 'test/unit'
4
4
  $:.unshift File.dirname(__FILE__) + '/../lib'
5
5
 
6
+
7
+ class StringIO_compat < StringIO
8
+ def string(*args)
9
+ s = super(*args)
10
+ s.force_encoding("binary") if RUBY_VERSION >= "1.9"
11
+ return s
12
+ end
13
+ end
metadata CHANGED
@@ -1,40 +1,62 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rbkb
3
- version: !ruby/object:Gem::Version
4
- version: 0.6.12
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.0
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Eric Monti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2009-11-02 00:00:00 -06:00
13
- default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: eventmachine
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: 0.12.8
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: bones
11
+ date: 2014-03-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
27
20
  type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 2.5.1
34
- version:
35
- description: Rbkb is a collection of ruby-based pen-testing and reversing tools. Inspired by Matasano Blackbag.
36
- email: emonti@matasano.com
37
- executables:
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Rbkb is a collection of ruby-based pen-testing and reversing tools. Inspired
56
+ by Matasano Blackbag.
57
+ email:
58
+ - monti@bluebox.com
59
+ executables:
38
60
  - b64
39
61
  - bgrep
40
62
  - blit
@@ -55,33 +77,14 @@ executables:
55
77
  - urlenc
56
78
  - xor
57
79
  extensions: []
58
-
59
- extra_rdoc_files:
60
- - History.txt
61
- - README.rdoc
62
- - bin/b64
63
- - bin/bgrep
64
- - bin/blit
65
- - bin/c
66
- - bin/crc32
67
- - bin/d64
68
- - bin/dedump
69
- - bin/feed
70
- - bin/hexify
71
- - bin/len
72
- - bin/plugsrv
73
- - bin/rex
74
- - bin/rstrings
75
- - bin/slice
76
- - bin/telson
77
- - bin/unhexify
78
- - bin/urldec
79
- - bin/urlenc
80
- - bin/xor
81
- - cli_usage.rdoc
82
- - lib_usage.rdoc
83
- files:
80
+ extra_rdoc_files: []
81
+ files:
82
+ - .bnsignore
83
+ - .rspec
84
+ - Gemfile
85
+ - Gemfile.lock
84
86
  - History.txt
87
+ - LICENSE.txt
85
88
  - README.rdoc
86
89
  - Rakefile
87
90
  - bin/b64
@@ -105,6 +108,14 @@ files:
105
108
  - bin/xor
106
109
  - cli_usage.rdoc
107
110
  - doctor-bag.jpg
111
+ - experimental/cap2files
112
+ - experimental/cap2yaml
113
+ - experimental/colordif.rb
114
+ - experimental/deezee
115
+ - experimental/feed
116
+ - experimental/fmagic.rb
117
+ - experimental/magicrip.c
118
+ - experimental/magicripper.rb
108
119
  - lib/rbkb.rb
109
120
  - lib/rbkb/cli.rb
110
121
  - lib/rbkb/cli/b64.rb
@@ -125,6 +136,14 @@ files:
125
136
  - lib/rbkb/cli/urlenc.rb
126
137
  - lib/rbkb/cli/xor.rb
127
138
  - lib/rbkb/extends.rb
139
+ - lib/rbkb/extends/array.rb
140
+ - lib/rbkb/extends/common.rb
141
+ - lib/rbkb/extends/enumerable.rb
142
+ - lib/rbkb/extends/float.rb
143
+ - lib/rbkb/extends/numeric.rb
144
+ - lib/rbkb/extends/object.rb
145
+ - lib/rbkb/extends/string.rb
146
+ - lib/rbkb/extends/symbol.rb
128
147
  - lib/rbkb/plug.rb
129
148
  - lib/rbkb/plug/blit.rb
130
149
  - lib/rbkb/plug/cli.rb
@@ -133,10 +152,14 @@ files:
133
152
  - lib/rbkb/plug/plug.rb
134
153
  - lib/rbkb/plug/proxy.rb
135
154
  - lib/rbkb/plug/unix_domain.rb
155
+ - lib/rbkb/version.rb
136
156
  - lib_usage.rdoc
137
157
  - rbkb.gemspec
158
+ - reference/blackbag-0.9.1.tgz
159
+ - reference/note_http_unit_tests
138
160
  - spec/rbkb_spec.rb
139
161
  - spec/spec_helper.rb
162
+ - spec/string_extends_spec.rb
140
163
  - tasks/ann.rake
141
164
  - tasks/bones.rake
142
165
  - tasks/gem.rake
@@ -149,74 +172,69 @@ files:
149
172
  - tasks/spec.rake
150
173
  - tasks/svn.rake
151
174
  - tasks/test.rake
175
+ - test/disabled_test_cli_blit.rb
176
+ - test/disabled_test_cli_feed.rb
177
+ - test/disabled_test_cli_telson.rb
152
178
  - test/test_cli_b64.rb
153
179
  - test/test_cli_bgrep.rb
154
- - test/test_cli_blit.rb
155
180
  - test/test_cli_chars.rb
156
181
  - test/test_cli_crc32.rb
157
182
  - test/test_cli_d64.rb
158
183
  - test/test_cli_dedump.rb
159
- - test/test_cli_feed.rb
160
184
  - test/test_cli_helper.rb
161
185
  - test/test_cli_hexify.rb
162
186
  - test/test_cli_len.rb
163
187
  - test/test_cli_rstrings.rb
164
188
  - test/test_cli_slice.rb
165
- - test/test_cli_telson.rb
166
189
  - test/test_cli_unhexify.rb
167
190
  - test/test_cli_urldec.rb
168
191
  - test/test_cli_urlenc.rb
169
192
  - test/test_cli_xor.rb
170
193
  - test/test_helper.rb
171
- - test/test_rbkb.rb
172
- has_rdoc: true
173
194
  homepage: http://emonti.github.com/rbkb
174
- licenses: []
175
-
195
+ licenses:
196
+ - MIT
197
+ metadata: {}
176
198
  post_install_message:
177
- rdoc_options:
178
- - --line-numbers
179
- - --main
180
- - README.rdoc
181
- require_paths:
199
+ rdoc_options: []
200
+ require_paths:
182
201
  - lib
183
- required_ruby_version: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- version: "0"
188
- version:
189
- required_rubygems_version: !ruby/object:Gem::Requirement
190
- requirements:
191
- - - ">="
192
- - !ruby/object:Gem::Version
193
- version: "0"
194
- version:
202
+ required_ruby_version: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - ! '>='
205
+ - !ruby/object:Gem::Version
206
+ version: '0'
207
+ required_rubygems_version: !ruby/object:Gem::Requirement
208
+ requirements:
209
+ - - ! '>='
210
+ - !ruby/object:Gem::Version
211
+ version: '0'
195
212
  requirements: []
196
-
197
- rubyforge_project: rbkb
198
- rubygems_version: 1.3.5
213
+ rubyforge_project:
214
+ rubygems_version: 2.2.1
199
215
  signing_key:
200
- specification_version: 3
216
+ specification_version: 4
201
217
  summary: Rbkb is a collection of ruby-based pen-testing and reversing tools
202
- test_files:
218
+ test_files:
219
+ - spec/rbkb_spec.rb
220
+ - spec/spec_helper.rb
221
+ - spec/string_extends_spec.rb
222
+ - test/disabled_test_cli_blit.rb
223
+ - test/disabled_test_cli_feed.rb
224
+ - test/disabled_test_cli_telson.rb
203
225
  - test/test_cli_b64.rb
204
226
  - test/test_cli_bgrep.rb
205
- - test/test_cli_blit.rb
206
227
  - test/test_cli_chars.rb
207
228
  - test/test_cli_crc32.rb
208
229
  - test/test_cli_d64.rb
209
230
  - test/test_cli_dedump.rb
210
- - test/test_cli_feed.rb
211
231
  - test/test_cli_helper.rb
212
232
  - test/test_cli_hexify.rb
213
233
  - test/test_cli_len.rb
214
234
  - test/test_cli_rstrings.rb
215
235
  - test/test_cli_slice.rb
216
- - test/test_cli_telson.rb
217
236
  - test/test_cli_unhexify.rb
218
237
  - test/test_cli_urldec.rb
219
238
  - test/test_cli_urlenc.rb
220
239
  - test/test_cli_xor.rb
221
240
  - test/test_helper.rb
222
- - test/test_rbkb.rb