buby 1.5.1-java → 1.5.2-java
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.yml +1 -1
- data/buby.gemspec +2 -2
- data/lib/buby.jar +0 -0
- data/lib/buby/extender.rb +26 -20
- data/lib/buby/version.rb +2 -2
- data/lib/burp_interfaces.jar +0 -0
- metadata +2 -2
data/VERSION.yml
CHANGED
data/buby.gemspec
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "buby"
|
8
|
-
s.version = "1.5.
|
8
|
+
s.version = "1.5.2"
|
9
9
|
s.platform = "java"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.authors = ["Eric Monti, tduehr"]
|
13
|
-
s.date = "2013-04-
|
13
|
+
s.date = "2013-04-29"
|
14
14
|
s.description = "Buby is a mashup of JRuby with the popular commercial web security testing tool Burp Suite from PortSwigger. Burp is driven from and tied to JRuby with a Java extension using the BurpExtender API. This extension aims to add Ruby scriptability to Burp Suite with an interface comparable to the Burp's pure Java extension interface."
|
15
15
|
s.email = "td@matasano.com"
|
16
16
|
s.executables = ["buby"]
|
data/lib/buby.jar
CHANGED
Binary file
|
data/lib/buby/extender.rb
CHANGED
@@ -22,26 +22,6 @@ class Buby
|
|
22
22
|
# Internal reference to ruby handler class (usually {Buby})
|
23
23
|
@@handler = nil
|
24
24
|
|
25
|
-
# Returns the internal Ruby handler reference.
|
26
|
-
#
|
27
|
-
# The handler is the ruby class or module used for proxying BurpExtender
|
28
|
-
# events into a ruby runtime. Usually, this is Buby or a subclass.
|
29
|
-
#
|
30
|
-
def self.handler
|
31
|
-
@@handler
|
32
|
-
end
|
33
|
-
|
34
|
-
# Sets an internal reference to the ruby handler class or module to use for
|
35
|
-
# proxied BurpExtender events into a ruby runtime.
|
36
|
-
#
|
37
|
-
# Generally, this should probably be called in {#registerExtenderCallbacks}.
|
38
|
-
# However, it is also possible to set this afterwards and even swap in new
|
39
|
-
# objects during runtime.
|
40
|
-
#
|
41
|
-
def self.handler=(hndlr)
|
42
|
-
@@handler = hndlr
|
43
|
-
end
|
44
|
-
|
45
25
|
def handler
|
46
26
|
@@handler
|
47
27
|
end
|
@@ -152,5 +132,31 @@ class Buby
|
|
152
132
|
def scopeChanged
|
153
133
|
@@handler.scope_changed if @@handler.respond_to? :scope_changed
|
154
134
|
end
|
135
|
+
|
136
|
+
def self.included klass
|
137
|
+
klass.extend ExtenderMethods
|
138
|
+
end
|
139
|
+
|
140
|
+
module ExtenderMethods
|
141
|
+
# Returns the internal Ruby handler reference.
|
142
|
+
#
|
143
|
+
# The handler is the ruby class or module used for proxying BurpExtender
|
144
|
+
# events into a ruby runtime. Usually, this is Buby or a subclass.
|
145
|
+
#
|
146
|
+
def handler
|
147
|
+
@@handler
|
148
|
+
end
|
149
|
+
|
150
|
+
# Sets an internal reference to the ruby handler class or module to use for
|
151
|
+
# proxied BurpExtender events into a ruby runtime.
|
152
|
+
#
|
153
|
+
# Generally, this should probably be called in {#registerExtenderCallbacks}.
|
154
|
+
# However, it is also possible to set this afterwards and even swap in new
|
155
|
+
# objects during runtime.
|
156
|
+
#
|
157
|
+
def handler=(hndlr)
|
158
|
+
@@handler = hndlr
|
159
|
+
end
|
160
|
+
end
|
155
161
|
end
|
156
162
|
end
|
data/lib/buby/version.rb
CHANGED
data/lib/burp_interfaces.jar
CHANGED
Binary file
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: buby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.5.
|
5
|
+
version: 1.5.2
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Eric Monti, tduehr
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|