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 +4 -4
- data/lib/voodoo/cli.rb +4 -4
- data/lib/voodoo/output.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 965c3f91b6855d9b381e18ced1bfee172e5273d3180d50ef7a2892a66adbd30d
|
4
|
+
data.tar.gz: e20ea428ba96e9c5f82ab31a5bab21761c189cd451d05b31bbc38ec0f857b56d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|