pwn 0.4.903 → 0.4.905

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: 5de6a96d91343303cae09ae5d5974c7f8752b2086f98923d850bef95811ef16f
4
- data.tar.gz: 12ae5821ad2b2f6d6a629e3f249e35236d67f789cf010ac645e336f4d898132e
3
+ metadata.gz: 209f9a7230d2b15c4b2a717fb960d6cef3cb66f46f80b7d1151ff30e1c55b608
4
+ data.tar.gz: 6cd6685fd53e8f8a7203a219d4b9d85f56d8bd20a00506b5455a736996f02563
5
5
  SHA512:
6
- metadata.gz: 61e12bd6d032128a250b2ac594f9eab034e63b705c1627096b218fe0eb279eb10b4988b184849bd8fbbeaf735dcd67ffca0c071ccb38b23cb48db5fe9d35652d
7
- data.tar.gz: 3a33790b6c7760d180ff303b0234cef343b2f1efb4aefa032ef1121e17d3439b5a14080536fab6005b360f32b00c7ef746c3cdeb571f68658d931fe827d7a0a1
6
+ metadata.gz: 27a3448585dfdca17e883c3f6b0b0d7d3fc88e0620ecd7ddfdc95949cc36d17378283600dbe8d6fef2143e86efefac43d184089a422e9874d39ba7eda405b33d
7
+ data.tar.gz: eb6a4f51147e0731c3236317f75b93454654234f16de80a95b63be9c2ce9fe5c7d58b56d0b4d3ce0dc1cf00b84b1510a1969e6dd82ee774577629cbaee01958b
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.903]:001 >>> PWN.help
40
+ pwn[v0.4.905]: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.903]:001 >>> PWN.help
55
+ pwn[v0.4.905]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -34,7 +34,7 @@ module PWN
34
34
  # OpenSSL::SSL::SSLContext::METHODS
35
35
  # tls_version = 'TLSv1' if tls_version.nil?
36
36
  # tls_version = nil if tls_min_version == OpenSSL::SSL::TLS1_3_VERSION
37
- cipher_tls = 'TLSv1.0' if cipher_tls.nil?
37
+ # cipher_tls = 'TLSv1.0' if cipher_tls.nil?
38
38
 
39
39
  case protocol
40
40
  when :tcp
@@ -45,9 +45,11 @@ module PWN
45
45
  # tls_context.verify_hostname = false
46
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
+ tls_sock.hostname = target
50
51
  sock_obj = tls_sock.connect
52
+ sock_obj.sync_close = true
51
53
  else
52
54
  sock_obj = TCPSocket.open(target, port)
53
55
  end
@@ -64,16 +66,16 @@ module PWN
64
66
  when OpenSSL::SSL::TLS1_VERSION
65
67
  puts 'Attempting OpenSSL::SSL::TLS1_1_VERSION...'
66
68
  # tls_version = 'TLSv1_1'
67
- cipher_tls = 'TLSv1.0'
69
+ # cipher_tls = 'TLSv1.0'
68
70
  tls_min_version = OpenSSL::SSL::TLS1_1_VERSION
69
71
  when OpenSSL::SSL::TLS1_1_VERSION
70
72
  puts 'Attempting OpenSSL::SSL::TLS1_2_VERSION...'
71
73
  # tls_version = 'TLSv1_2'
72
- cipher_tls = 'TLSv1.2'
74
+ # cipher_tls = 'TLSv1.2'
73
75
  tls_min_version = OpenSSL::SSL::TLS1_2_VERSION
74
76
  when OpenSSL::SSL::TLS1_2_VERSION
75
77
  puts 'Attempting OpenSSL::SSL::TLS1_3_VERSION...'
76
- cipher_tls = 'TLSv1.3'
78
+ # cipher_tls = 'TLSv1.3'
77
79
  tls_min_version = OpenSSL::SSL::TLS1_3_VERSION
78
80
  else
79
81
  tls_min_version = :abort
@@ -219,7 +221,6 @@ module PWN
219
221
  protocol: :tcp,
220
222
  tls: true
221
223
  )
222
- tls_sock_obj.sync_close = true
223
224
  tls_sock_obj.peer_cert
224
225
  rescue StandardError => e
225
226
  raise e
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.903'
4
+ VERSION = '0.4.905'
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.903
4
+ version: 0.4.905
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.