pwn 0.4.473 → 0.4.474

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 800a4481ec352e62a264e69979b18283eac032c9b4b4fa34a8785a6dd046bc7c
4
- data.tar.gz: ee5c3d0a5bf0ef7347ea27cd54fd4ebd851039509e94b6ae3464bd28100126ef
3
+ metadata.gz: 9ff179fc1eb5aa54b6c3546f5de3cc523044c53895dc2736b1207b6998068711
4
+ data.tar.gz: 6c56807bd01715adb522f82cb209bb7edac4856a6b73f22fe25a09cf0e9cf7c3
5
5
  SHA512:
6
- metadata.gz: 1a6784dc075ec9dabae9bea756f0cbd16fea0494a5445e09a9cf7402aa652f207ee140430c1dc9c689bffdbb62ec1983cc9cca2bb5b6aa366fe4b52cfa60bccd
7
- data.tar.gz: 5115ddcd05d4c3a2526727386e6b0a53a9fb8f5155dc4495d4e473bc7372517611d17fd06b9229a330c1cee907a7683b5a309c78e51c07339ef68a14c3dda30f
6
+ metadata.gz: 18cb621068a698d6f43701137a298bb375df0b660a0a458a4a46e545ef9c1eaa587b574e4a8b38cb5ab51a63c98a0f9ba3e12d2781108af37c298c84673a2362
7
+ data.tar.gz: f679e8a261b1e8720cd064949c5c9d0a1d2e2f013bbaa54fa28f10729ca4e4d949895cec68d0d0e143bf4fec5fd0efa0cacf69ecc2104fa990b47faa36473686
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.473]:001 >>> PWN.help
40
+ pwn[v0.4.474]: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.473]:001 >>> PWN.help
55
+ pwn[v0.4.474]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -45,23 +45,25 @@ begin
45
45
 
46
46
  timestamp = Time.now.strftime('%Y-%m-%d.%H:%M:%S')
47
47
  query_results_file = opts[:output_results_file]
48
- query_results_file ||= "/tmp/shodan-results-#{timestamp}.txt"
49
- query_results_dir = File.dirname(query_results_file)
48
+ query_results_file ||= "/tmp/shodan-results-#{timestamp}"
50
49
 
51
- raw_query_results_file = "#{query_results_dir}/shodan-results-#{timestamp}-RAW.json"
50
+ raw_query_results_file = "#{query_results_file}-RAW.json"
52
51
  File.open(raw_query_results_file, 'w') do |r|
53
52
  File.open(query_results_file, 'w') do |f|
54
53
  queries.each do |query_line|
55
54
  query = query_line.chomp
56
55
  print "QUERY: '#{query}'"
57
- r.puts("QUERY: '#{query}'")
58
56
  f.puts("QUERY: '#{query}'")
59
57
  search_results = PWN::Plugins::Shodan.search(
60
58
  api_key: api_key,
61
59
  query: query
62
60
  )
63
61
  puts " >>> Matches: #{search_results[:total]}"
64
- r.puts search_results.to_json
62
+
63
+ raw_results = {}
64
+ raw_results[:query] = query
65
+ raw_results[:results] = search_results
66
+ r.puts raw_results.to_json
65
67
 
66
68
  search_results[:matches].select do |m|
67
69
  f.puts "ORG: #{m[:org]} | PUBIP: #{m[:ip_str]} #{'*' * 36}"
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.473'
4
+ VERSION = '0.4.474'
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.473
4
+ version: 0.4.474
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.