pwn 0.4.902 → 0.4.904

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: 6f9de6a7518435bdc55db0d6eb1bce3d543f6de6f7a1b4b4ca280502b918ffa4
4
- data.tar.gz: a82e713765ef385bd7c01aa9fbc6f9105915799a427b7515d3038b193fd761a8
3
+ metadata.gz: bad6ce74eeb5ccae9625b4ee38d9b8b7fa1d3c8f91e4fbdb0023c78182abbd23
4
+ data.tar.gz: 5a7459ede92b731376ac68239c4193ce57dac70fa6188fe11c5450fab86b7217
5
5
  SHA512:
6
- metadata.gz: dad8d18c7f7f607ceaf1f95d71bfa743b26edb89687805268039ecfc5b2ec3066a6826ddd430bd81b38048a67a93d9194c904fc4dcf3a07b1a737325d713e856
7
- data.tar.gz: 168477ef2925a24c6b7d7dad04e82a170c4d6e3ed541050f93717abe0c7c31ab2d4f6e65eae4217166543d88f3bda54c6e8b8e27edf6fe785504d7521c229d0d
6
+ metadata.gz: 79a429151509542d1d64cda1335b42388be63e9c4741668ea0e09447da0d9895dfc1edc00f39554dd9ffd6c972a3b4e043b94dd62f02ec8c9a9a3a097607f599
7
+ data.tar.gz: a8871653250a0cb7d73da6e612fd209b55e1e1edf0500cb912f69500e8b5f7230522e7dda92aa041427e5ac03b7c6b6e3b475bf216f11b599d0e34b5f6b32180
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.902]:001 >>> PWN.help
40
+ pwn[v0.4.904]: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.902]:001 >>> PWN.help
55
+ pwn[v0.4.904]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -32,9 +32,9 @@ module PWN
32
32
  tls_min_version = OpenSSL::SSL::TLS1_VERSION if tls_min_version.nil?
33
33
  # tls_version Values can be Displayed via:
34
34
  # OpenSSL::SSL::SSLContext::METHODS
35
- tls_version = 'TLSv1' if tls_version.nil?
36
- tls_version = nil if tls_min_version == OpenSSL::SSL::TLS1_3_VERSION
37
- cipher_tls = 'TLSv1.0' if cipher_tls.nil?
35
+ # tls_version = 'TLSv1' if tls_version.nil?
36
+ # tls_version = nil if tls_min_version == OpenSSL::SSL::TLS1_3_VERSION
37
+ # cipher_tls = 'TLSv1.0' if cipher_tls.nil?
38
38
 
39
39
  case protocol
40
40
  when :tcp
@@ -42,10 +42,10 @@ module PWN
42
42
  sock = TCPSocket.open(target, port)
43
43
  tls_context = OpenSSL::SSL::SSLContext.new
44
44
  tls_context.set_params(verify_mode: OpenSSL::SSL::VERIFY_NONE)
45
- tls_context.verify_hostname = false
46
- tls_context.ssl_version = tls_version
45
+ # tls_context.verify_hostname = false
46
+ # tls_context.ssl_version = tls_version
47
47
  tls_context.min_version = tls_min_version
48
- tls_context.ciphers = tls_context.ciphers.select { |c| c[1] == cipher_tls }
48
+ # tls_context.ciphers = tls_context.ciphers.select { |c| c[1] == cipher_tls }
49
49
  tls_sock = OpenSSL::SSL::SSLSocket.new(sock, tls_context)
50
50
  sock_obj = tls_sock.connect
51
51
  else
@@ -63,18 +63,18 @@ module PWN
63
63
  case tls_min_version
64
64
  when OpenSSL::SSL::TLS1_VERSION
65
65
  puts 'Attempting OpenSSL::SSL::TLS1_1_VERSION...'
66
- tls_version = 'TLSv1_1'
67
- cipher_tls = 'TLSv1.0'
66
+ # tls_version = 'TLSv1_1'
67
+ # cipher_tls = 'TLSv1.0'
68
68
  tls_min_version = OpenSSL::SSL::TLS1_1_VERSION
69
69
  when OpenSSL::SSL::TLS1_1_VERSION
70
70
  puts 'Attempting OpenSSL::SSL::TLS1_2_VERSION...'
71
- tls_version = 'TLSv1_2'
72
- cipher_tls = 'TLSv1.2'
71
+ # tls_version = 'TLSv1_2'
72
+ # cipher_tls = 'TLSv1.2'
73
73
  tls_min_version = OpenSSL::SSL::TLS1_2_VERSION
74
- # when OpenSSL::SSL::TLS1_2_VERSION
75
- # puts 'Attempting OpenSSL::SSL::TLS1_3_VERSION...'
76
- # cipher_tls = 'TLSv1.3'
77
- # tls_min_version = OpenSSL::SSL::TLS1_3_VERSION
74
+ when OpenSSL::SSL::TLS1_2_VERSION
75
+ puts 'Attempting OpenSSL::SSL::TLS1_3_VERSION...'
76
+ # cipher_tls = 'TLSv1.3'
77
+ tls_min_version = OpenSSL::SSL::TLS1_3_VERSION
78
78
  else
79
79
  tls_min_version = :abort
80
80
  end
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.902'
4
+ VERSION = '0.4.904'
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.902
4
+ version: 0.4.904
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.