buby 1.5.0.pre3-java → 1.5.0.pre4-java
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/buby.gemspec +2 -2
- data/lib/buby.rb +66 -13
- 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.0.
|
8
|
+
s.version = "1.5.0.pre4"
|
9
9
|
s.platform = "java"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.authors = ["Eric Monti, tduehr"]
|
13
|
-
s.date = "2013-03-
|
13
|
+
s.date = "2013-03-24"
|
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.rb
CHANGED
@@ -482,8 +482,13 @@ class Buby
|
|
482
482
|
# This method is only available with Burp 1.3.07+ and is deprecated in 1.5.01.
|
483
483
|
#
|
484
484
|
def registerMenuItem(menuItemCaption, menuItemHandler = nil, &block)
|
485
|
-
|
485
|
+
ret = if block_given?
|
486
|
+
_check_and_callback(:registerMenuItem, menuItemCaption, &block)
|
487
|
+
else
|
488
|
+
_check_and_callback(:registerMenuItem, menuItemCaption, menuItemHandler)
|
489
|
+
end
|
486
490
|
issueAlert("Handler #{menuItemHandler} registered for \"#{menuItemCaption}\"")
|
491
|
+
ret
|
487
492
|
end
|
488
493
|
alias register_menu_item registerMenuItem
|
489
494
|
|
@@ -623,7 +628,11 @@ class Buby
|
|
623
628
|
# (Isn't JRuby fun?)
|
624
629
|
#
|
625
630
|
def registerExtensionStateListener(listener = nil, &block)
|
626
|
-
|
631
|
+
if block_given?
|
632
|
+
_check_and_callback(:registerExtensionStateListener, &block)
|
633
|
+
else
|
634
|
+
_check_and_callback(:registerExtensionStateListener, listener)
|
635
|
+
end
|
627
636
|
end
|
628
637
|
alias register_extension_state_listener registerExtensionStateListener
|
629
638
|
|
@@ -639,7 +648,11 @@ class Buby
|
|
639
648
|
# (Isn't JRuby fun?)
|
640
649
|
#
|
641
650
|
def registerHttpListener(listener = nil, &block)
|
642
|
-
|
651
|
+
if block_given?
|
652
|
+
_check_and_callback(:registerHttpListener, &block)
|
653
|
+
else
|
654
|
+
_check_and_callback(:registerHttpListener, listener)
|
655
|
+
end
|
643
656
|
end
|
644
657
|
alias register_http_listener registerHttpListener
|
645
658
|
|
@@ -655,7 +668,11 @@ class Buby
|
|
655
668
|
# (Isn't JRuby fun?)
|
656
669
|
#
|
657
670
|
def registerProxyListener(listener = nil, &block)
|
658
|
-
|
671
|
+
if block_given?
|
672
|
+
_check_and_callback(:registerProxyListener, &block)
|
673
|
+
else
|
674
|
+
_check_and_callback(:registerProxyListener, listener)
|
675
|
+
end
|
659
676
|
end
|
660
677
|
alias register_proxy_listener registerProxyListener
|
661
678
|
|
@@ -671,7 +688,11 @@ class Buby
|
|
671
688
|
# (Isn't JRuby fun?)
|
672
689
|
#
|
673
690
|
def registerScannerListener(listener = nil, &block)
|
674
|
-
|
691
|
+
if block_given?
|
692
|
+
_check_and_callback(:registerScannerListener, &block)
|
693
|
+
else
|
694
|
+
_check_and_callback(:registerScannerListener, listener)
|
695
|
+
end
|
675
696
|
end
|
676
697
|
alias register_scanner_listener registerScannerListener
|
677
698
|
|
@@ -685,7 +706,11 @@ class Buby
|
|
685
706
|
# (Isn't JRuby fun?)
|
686
707
|
#
|
687
708
|
def registerScopeChangeListener(listener = nil, &block)
|
688
|
-
|
709
|
+
if block_given?
|
710
|
+
_check_and_callback(:registerScopeChangeListener, &block)
|
711
|
+
else
|
712
|
+
_check_and_callback(:registerScopeChangeListener, listener)
|
713
|
+
end
|
689
714
|
end
|
690
715
|
|
691
716
|
# This method is used to register a factory for custom context menu items.
|
@@ -704,7 +729,11 @@ class Buby
|
|
704
729
|
# wrapped properly.
|
705
730
|
#
|
706
731
|
def registerContextMenuFactory(factory = nil, &block)
|
707
|
-
|
732
|
+
if block_given?
|
733
|
+
_check_and_callback(:registerContextMenuFactory, &block)
|
734
|
+
else
|
735
|
+
_check_and_callback(:registerContextMenuFactory, factory)
|
736
|
+
end
|
708
737
|
end
|
709
738
|
alias register_context_menu_factory registerContextMenuFactory
|
710
739
|
|
@@ -725,7 +754,11 @@ class Buby
|
|
725
754
|
# wrapped properly.
|
726
755
|
#
|
727
756
|
def registerMessageEditorTabFactory(factory = nil, &block)
|
728
|
-
|
757
|
+
if block_given?
|
758
|
+
_check_and_callback(:registerMessageEditorTabFactory, &block)
|
759
|
+
else
|
760
|
+
_check_and_callback(:registerMessageEditorTabFactory, factory)
|
761
|
+
end
|
729
762
|
end
|
730
763
|
alias register_message_editor_tab_factory registerMessageEditorTabFactory
|
731
764
|
|
@@ -742,7 +775,11 @@ class Buby
|
|
742
775
|
# (Isn't JRuby fun?)
|
743
776
|
#
|
744
777
|
def registerScannerInsertionPointProvider(provider = nil, &block)
|
745
|
-
|
778
|
+
if block_given?
|
779
|
+
_check_and_callback(:registerScannerInsertionPointProvider, &block)
|
780
|
+
else
|
781
|
+
_check_and_callback(:registerScannerInsertionPointProvider, provider)
|
782
|
+
end
|
746
783
|
end
|
747
784
|
alias register_scanner_insertion_point_provider registerScannerInsertionPointProvider
|
748
785
|
|
@@ -753,7 +790,11 @@ class Buby
|
|
753
790
|
# @param [IScannerCheck] check An object that performs a given check.
|
754
791
|
#
|
755
792
|
def registerScannerCheck(check = nil, &block)
|
756
|
-
|
793
|
+
if block_given?
|
794
|
+
_check_and_callback(:registerScannerCheck, &block)
|
795
|
+
else
|
796
|
+
_check_and_callback(:registerScannerCheck, check)
|
797
|
+
end
|
757
798
|
end
|
758
799
|
alias register_scanner_check registerScannerCheck
|
759
800
|
|
@@ -769,7 +810,11 @@ class Buby
|
|
769
810
|
#
|
770
811
|
# @todo Test - block version may work here
|
771
812
|
def registerIntruderPayloadGeneratorFactory(factory = nil, &block)
|
772
|
-
|
813
|
+
if block_given?
|
814
|
+
_check_and_callback(:registerIntruderPayloadGeneratorFactory, &block)
|
815
|
+
else
|
816
|
+
_check_and_callback(:registerIntruderPayloadGeneratorFactory, factory)
|
817
|
+
end
|
773
818
|
end
|
774
819
|
alias register_intruder_payload_generator_factory registerIntruderPayloadGeneratorFactory
|
775
820
|
|
@@ -782,7 +827,11 @@ class Buby
|
|
782
827
|
#
|
783
828
|
# @todo Test - block version may work here
|
784
829
|
def registerIntruderPayloadProcessor(processor)
|
785
|
-
|
830
|
+
if block_given?
|
831
|
+
_check_and_callback(:registerIntruderPayloadProcessor, &block)
|
832
|
+
else
|
833
|
+
_check_and_callback(:registerIntruderPayloadProcessor, processor)
|
834
|
+
end
|
786
835
|
end
|
787
836
|
alias register_intruder_payload_processor registerIntruderPayloadProcessor
|
788
837
|
|
@@ -795,7 +844,11 @@ class Buby
|
|
795
844
|
#
|
796
845
|
# @todo Test - block version may work here
|
797
846
|
def registerSessionHandlingAction(action)
|
798
|
-
|
847
|
+
if block_given?
|
848
|
+
_check_and_callback(:registerSessionHandlingAction, &block)
|
849
|
+
else
|
850
|
+
_check_and_callback(:registerSessionHandlingAction, action)
|
851
|
+
end
|
799
852
|
end
|
800
853
|
alias register_session_handling_action registerSessionHandlingAction
|
801
854
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.0.
|
4
|
+
version: 1.5.0.pre4
|
5
5
|
prerelease: 6
|
6
6
|
platform: java
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|