get-voodoo 0.0.10 → 0.0.11

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a4911bead9d06ee332ff258e42bf310aa1f3b0291597832eff57c75b4527453
4
- data.tar.gz: 66d4e1ba75142b225a4bdd9a6733dd8f6efe6ced063b6c090caa77a624fd2cb7
3
+ metadata.gz: 965c3f91b6855d9b381e18ced1bfee172e5273d3180d50ef7a2892a66adbd30d
4
+ data.tar.gz: e20ea428ba96e9c5f82ab31a5bab21761c189cd451d05b31bbc38ec0f857b56d
5
5
  SHA512:
6
- metadata.gz: 99467f75cee89fd27f8072d4736dfab373a4965251fc4d37d38f067c5b2fcbed9b4c99a434df29a9b5e0fdccb25dcf4540abf5cffc9df0624c920d201f0c7e56
7
- data.tar.gz: a7f726629c1222b1a1de9a907062fef08605e01d3dc7ddac1fba72e691a3586d4898cf8f416804cbd608aefddc4e625c515f332718fb043ade2a0d443cc9279b
6
+ metadata.gz: a8a34ddd9b063f44353195203f633f16e9fcdb872cbab1b52662b2e9582a9af5ba4ced78c708cafebd9408196a5dfd7034296b141acc11b13bdc9a05b27920b9
7
+ data.tar.gz: 03c5e0884a62321e2053b93a3f8d606252bb127aded3748a997f33002d56070720e9a63a835ab96abbf2e70c1c99b8d0fb4550e11348c4ccd2cdc6921cfe4d2e
data/lib/voodoo/cli.rb CHANGED
@@ -6,7 +6,7 @@ require 'voodoo/browser'
6
6
 
7
7
  module VOODOO
8
8
 
9
- VERSION = 'v0.0.10'
9
+ VERSION = 'v0.0.11'
10
10
 
11
11
  class CLI < Thor
12
12
 
@@ -90,7 +90,7 @@ module VOODOO
90
90
  end
91
91
 
92
92
  option :browser, :type => :string, :aliases => :b, :default => nil
93
- option :format, :type => :string, :aliases => :f, :default => 'none', :desc => 'json, payload, none'
93
+ option :format, :type => :string, :aliases => :f, :default => 'none', :desc => 'json, payload, payload:base64decode, none'
94
94
  option :output, :type => :string, :aliases => :o, :desc => 'File path', :default => nil
95
95
  option :urls, :type => :array, :aliases => :x, :default => []
96
96
  option :params, :type => :hash,:aliases => :p, :default => {}
@@ -134,7 +134,7 @@ module VOODOO
134
134
  output_handler.handle(event)
135
135
  end
136
136
  else
137
- browser.add_script(matches: matches,content: content, options: options[:params], background: background)
137
+ browser.add_script(matches: matches, content: content, file: file, options: options[:params], background: background)
138
138
  end
139
139
  end
140
140
 
@@ -144,7 +144,7 @@ module VOODOO
144
144
  urls = browser_inst['urls']
145
145
  end
146
146
 
147
- browser.hijack urls
147
+ browser.hijack urls, flags: browser_inst['flags'] || ''
148
148
  end
149
149
 
150
150
  def self.exit_on_failure?
data/lib/voodoo/output.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'base64'
2
+
1
3
  module VOODOO
2
4
 
3
5
  class Output
@@ -48,6 +50,8 @@ module VOODOO
48
50
  write JSON.generate(event)
49
51
  when 'payload'
50
52
  write JSON.generate(event[:payload])
53
+ when 'payload:base64decode'
54
+ write Base64.decode64(event[:payload])
51
55
  else
52
56
  write JSON.generate(event)
53
57
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: get-voodoo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ron Masas