pwn 0.4.471 → 0.4.472

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: 32922a349d82bb446e9fad95fb55df251fa80c58d9b72cbe6fafb50fb0e92a0c
4
- data.tar.gz: d95bc2403937f02a5579744f8c85850c354f522e264300fed35a772360266477
3
+ metadata.gz: 79226d5832fb6d629db612d4a2f44e02c27ae32ddbfdd41722feca31cfb13b7c
4
+ data.tar.gz: d1116586791753444e1d60d46efe5f4f8d099fd40d4397e4f045943fb41dce23
5
5
  SHA512:
6
- metadata.gz: 634a521d25395485a6f6318ad5754f5e7a8bd9c20bffe680bcbf0bea1fb6b01836cda1f01d658666e824073292d3c30e331754f88f9cde7bd0544cdcb7554b5a
7
- data.tar.gz: 00ca0f938d5ce07390a7e3b92a4fb7c4be156a6e299997414b33ab5ad743be80b65dce1e38882d1d88a59e62c3ac3b2f69514afe737af824ce23869f031f213b
6
+ metadata.gz: 23b26a6bbb579a707b948ea8bec858089e6a5dce7df26c8920946e6bc4637762cc71e8e03aa013d96ec9ad4fc35a497d4323b4fe006f5e50615e0093b6a279dd
7
+ data.tar.gz: 072f7811b42f425ef8a56fc120d64f6132df02408a19fa6229d725595464fe7a585db4bc9563c382a35ac5b083cc77f6df0017db466afaef86a2a99f147d5780
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.1.2@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.471]:001 >>> PWN.help
40
+ pwn[v0.4.472]:001 >>> PWN.help
41
41
  ```
42
42
 
43
43
  [![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
@@ -52,7 +52,7 @@ $ rvm use ruby-3.1.2@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.471]:001 >>> PWN.help
55
+ pwn[v0.4.472]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -31,14 +31,14 @@ if opts.empty?
31
31
  end
32
32
 
33
33
  begin
34
- yaml_file = opts[:yaml]
34
+ yaml_file = opts[:yaml].to_s
35
35
  raise "ERROR: #{yaml_file} does not exist." unless File.exist?(yaml_file)
36
36
 
37
37
  yaml = YAML.load_file(yaml_file, symbolize_names: true)
38
38
 
39
39
  api_key = yaml[:api_key]
40
40
 
41
- query_file = opts[:query_file]
41
+ query_file = opts[:query_file].to_s
42
42
  raise "ERROR: #{query_file} does not exist." unless File.exist?(query_file)
43
43
 
44
44
  queries = File.readlines(query_file)
@@ -46,8 +46,9 @@ begin
46
46
  timestamp = Time.now.strftime('%Y-%m-%d.%H:%M:%S')
47
47
  query_results_file = opts[:output_results_file]
48
48
  query_results_file ||= "/tmp/shodan-results-#{timestamp}.txt"
49
+ query_results_dir = File.dirname(query_results_file)
49
50
 
50
- raw_query_results_file = "/tmp/shodan-results-#{timestamp}-RAW.json"
51
+ raw_query_results_file = "#{query_results_dir}/shodan-results-#{timestamp}-RAW.json"
51
52
  File.open(raw_query_results_file, 'w') do |r|
52
53
  File.open(query_results_file, 'w') do |f|
53
54
  queries.each do |query_line|
data/lib/pwn/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.4.471'
4
+ VERSION = '0.4.472'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.471
4
+ version: 0.4.472
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.