pwn 0.5.231 → 0.5.232

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: d675dc77a942b4bd3de91ba881adf1e4527c72540ac4b895ab4eb4811f46653a
4
- data.tar.gz: e308821bcd440f215af4016aeeedaaacf5bd42db8a4a10386905005a22a0c925
3
+ metadata.gz: 88d9926d542dcfc18e99ff1e9c8698a0af64a3f3386e3a96bdad3896bfa969cb
4
+ data.tar.gz: 00c08c68a1a3e6a5a2c8ee2f983ffcddcde5427cef2a5c8492a56a88f2e5f6f5
5
5
  SHA512:
6
- metadata.gz: dba513ab987854314a5dc81e2da1b3034e5a680d40d5c8fd030da7be131876fcbb8115b55e32b025f285a4e294c76d3c755ee58fb508f2f65b725edd06cb6105
7
- data.tar.gz: 5a52df8f8efcd105e32ff80f025058814303c349e78da1384104db4bf879c0a0d21b1ec36ead39e416c3b08ede56b7022b10bab28227d06e0247810410f949d9
6
+ metadata.gz: 5e9c2d88aa036800bb1738db4f2619116b559886722f78c7e4208910518b889674d52ab83a4e5c171bfcc5ae126fc5a438c4d89c557b741dba46b97118bde8f2
7
+ data.tar.gz: 91a814b5f408ea3be3e7903af55bd6ba01947f144b1cc2d3cc38bdbfc593f005f2958521b33d8ea5d735e3d8c93cd96b475bcb679c8602f4d3b7c106e319abdd
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ cd /opt/pwn
37
37
  $ ./install.sh
38
38
  $ ./install.sh ruby-gem
39
39
  $ pwn
40
- pwn[v0.5.231]:001 >>> PWN.help
40
+ pwn[v0.5.232]: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.4.1@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.231]:001 >>> PWN.help
55
+ pwn[v0.5.232]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
  If you're using a multi-user install of RVM do:
@@ -62,7 +62,7 @@ $ rvm use ruby-3.4.1@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.231]:001 >>> PWN.help
65
+ pwn[v0.5.232]:001 >>> PWN.help
66
66
  ```
67
67
 
68
68
  PWN periodically upgrades to the latest version of Ruby which is reflected in `/opt/pwn/.ruby-version`. The easiest way to upgrade to the latest version of Ruby from a previous PWN installation is to run the following script:
@@ -57,14 +57,17 @@ module PWN
57
57
  public_class_method def self.request(opts = {})
58
58
  serial_obj = opts[:flipper_zero_obj]
59
59
  payload = "#{opts[:payload]}\r\n" if opts[:payload]
60
+ response_before = PWN::Plugins::Serial.dump_session_data
61
+
60
62
  PWN::Plugins::Serial.request(
61
63
  serial_obj: serial_obj,
62
64
  payload: payload
63
65
  )
64
- response = PWN::Plugins::Serial.dump_session_data
66
+ # response = PWN::Plugins::Serial.dump_session_data.clone
65
67
  puts response.join
66
68
  PWN::Plugins::Serial.flush_session_data
67
- response
69
+
70
+ # response
68
71
  rescue StandardError => e
69
72
  disconnect(flipper_zero_obj: opts[:flipper_zero_obj]) unless opts[:flipper_zero_obj].nil?
70
73
  raise e
@@ -140,6 +140,7 @@ module PWN
140
140
  serial_conn.putc(byte)
141
141
  end
142
142
 
143
+ sleep(0.1)
143
144
  serial_conn.flush
144
145
  rescue StandardError => e
145
146
  disconnect(serial_obj: serial_obj) unless serial_obj.nil?
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.5.231'
4
+ VERSION = '0.5.232'
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.5.231
4
+ version: 0.5.232
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.