pwn 0.4.865 → 0.4.866

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: da139fa7c3d5b1e27909f0b99942e9a524118f9ebe825d2716c8703b576d351a
4
- data.tar.gz: '0518c9a00bc10bfdea7af3366f40a0683959405d145ab253e1102c0a475f08a5'
3
+ metadata.gz: b6055d9f27f68d7c53bbb035c857bb78126e8dd9e65d511d51653d967fac9e97
4
+ data.tar.gz: 256fb4831c0be42992788c95f4de533b431bca48403a78a270c790248ed312dd
5
5
  SHA512:
6
- metadata.gz: b081eaf40b453ae96682fc93d10e4f006ed7371b3c29ef10e6cb58fa12a763d74bfa491bb74a5752fef10ae4a52da6fc31b6f4fb08ebb661d9e324e754d476ed
7
- data.tar.gz: 208cb6d8ec5aa41ac1370df5eb3bd29406d91e38a2949c28782ab338411249295f66e4399974f7f62732a04b8eb876daaad91cc4fbf9359fea096d8a7090ca38
6
+ metadata.gz: ebf19b2e8d064eae6fbd59fa3cda7e797456fa4a1971a2726bbcc90b4e9ecaedf6e2882c5839a6044cab93d6f0d8e57f4277273a43201f5044f2a0776fb21bc7
7
+ data.tar.gz: b5c436c6ea7870b2d0398452392884f23f5e6d80c9e41dec54800435239d962ae37afe26c5ae5faaf198d5510059d1d9abd636cec3a3b0240070908d52b824b7
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.2@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.865]:001 >>> PWN.help
40
+ pwn[v0.4.866]: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.2.2@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.865]:001 >>> PWN.help
55
+ pwn[v0.4.866]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -84,10 +84,6 @@ begin
84
84
  end
85
85
  end
86
86
  File.write(raw_query_results_file, JSON.pretty_generate(raw_results_arr))
87
- rescue JSON::GeneratorError
88
- # Sometimes we get source sequence is illegal/malformed utf-8
89
- # errors, so we still attempt to write without pretty_generate
90
- File.write(raw_query_results_file, raw_results_arr.to_json)
91
87
  rescue SystemExit, Interrupt
92
88
  puts "\nGoodbye."
93
89
  end
@@ -100,7 +100,7 @@ module PWN
100
100
  out_of_scope_arr = out_of_scope.select do |os|
101
101
  URI.parse(uri).scheme =~ /#{os[:protocol]}/ &&
102
102
  URI.parse(uri).host =~ /#{os[:host]}/ &&
103
- URI.parse(uri).path =~ /#{os[:file]}/
103
+ (URI.parse(uri).path =~ /#{os[:file]}/ || URI.parse(uri).path == '')
104
104
  end
105
105
  return false unless out_of_scope_arr.empty?
106
106
 
@@ -108,7 +108,7 @@ module PWN
108
108
  in_scope_arr = in_scope.select do |is|
109
109
  URI.parse(uri).scheme =~ /#{is[:protocol]}/ &&
110
110
  URI.parse(uri).host =~ /#{is[:host]}/ &&
111
- URI.parse(uri).path =~ /#{is[:file]}/
111
+ (URI.parse(uri).path =~ /#{is[:file]}/ || URI.parse(uri).path == '')
112
112
  end
113
113
  return false if in_scope_arr.empty?
114
114
 
@@ -104,6 +104,8 @@ module PWN
104
104
  else
105
105
  raise @@logger.error("Unsupported HTTP Method #{http_method} for #{self} Plugin")
106
106
  end
107
+ response_body_scrubbed = response.body.to_s.scrub
108
+ response.body = response_body_scrubbed
107
109
  response
108
110
  rescue RestClient::TooManyRequests
109
111
  print 'Too many requests. Sleeping 10s...'
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.865'
4
+ VERSION = '0.4.866'
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.865
4
+ version: 0.4.866
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.