pwn 0.4.904 → 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: bad6ce74eeb5ccae9625b4ee38d9b8b7fa1d3c8f91e4fbdb0023c78182abbd23
4
- data.tar.gz: 5a7459ede92b731376ac68239c4193ce57dac70fa6188fe11c5450fab86b7217
3
+ metadata.gz: 209f9a7230d2b15c4b2a717fb960d6cef3cb66f46f80b7d1151ff30e1c55b608
4
+ data.tar.gz: 6cd6685fd53e8f8a7203a219d4b9d85f56d8bd20a00506b5455a736996f02563
5
5
  SHA512:
6
- metadata.gz: 79a429151509542d1d64cda1335b42388be63e9c4741668ea0e09447da0d9895dfc1edc00f39554dd9ffd6c972a3b4e043b94dd62f02ec8c9a9a3a097607f599
7
- data.tar.gz: a8871653250a0cb7d73da6e612fd209b55e1e1edf0500cb912f69500e8b5f7230522e7dda92aa041427e5ac03b7c6b6e3b475bf216f11b599d0e34b5f6b32180
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.904]: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.904]:001 >>> PWN.help
55
+ pwn[v0.4.905]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -47,7 +47,9 @@ module PWN
47
47
  tls_context.min_version = tls_min_version
48
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
@@ -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.904'
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.904
4
+ version: 0.4.905
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.