pwn 0.5.232 → 0.5.233

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: 88d9926d542dcfc18e99ff1e9c8698a0af64a3f3386e3a96bdad3896bfa969cb
4
- data.tar.gz: 00c08c68a1a3e6a5a2c8ee2f983ffcddcde5427cef2a5c8492a56a88f2e5f6f5
3
+ metadata.gz: db0096e78104586cb802be3fcbd1a01c44b4b285698c8cd0b80d29fe9ce0db98
4
+ data.tar.gz: 7a369b6c4ad42517c953d5e007adcf56ca87c21bd65005df95e5922f09f25bc2
5
5
  SHA512:
6
- metadata.gz: 5e9c2d88aa036800bb1738db4f2619116b559886722f78c7e4208910518b889674d52ab83a4e5c171bfcc5ae126fc5a438c4d89c557b741dba46b97118bde8f2
7
- data.tar.gz: 91a814b5f408ea3be3e7903af55bd6ba01947f144b1cc2d3cc38bdbfc593f005f2958521b33d8ea5d735e3d8c93cd96b475bcb679c8602f4d3b7c106e319abdd
6
+ metadata.gz: 9a13c85528792f2470010997a2971624ab7be0e87fc0875658b9e8d897e7cf9063013481341806dd6b724651a92fd6f7553a48396884ebfc03f28d2596c8da85
7
+ data.tar.gz: c83b89364e26eaf9f1861c8226b51221bd6d91474340801fae607fc79c014f3a8f27541ffac0a38fcd3d332286bbadb46a38146a10957b3779c8e76755d0286f
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.232]:001 >>> PWN.help
40
+ pwn[v0.5.233]: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.232]:001 >>> PWN.help
55
+ pwn[v0.5.233]: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.232]:001 >>> PWN.help
65
+ pwn[v0.5.233]: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:
@@ -52,22 +52,22 @@ module PWN
52
52
  # Supported Method Parameters::
53
53
  # response = PWN::Plugins::FlipperZero.request(
54
54
  # flipper_zero_obj: 'required - flipper_zero_obj returned from #connect method',
55
- # payload: 'required - payload to send to the device'
55
+ # payload: 'optional - payload to send to the device (defaults to help)'
56
56
  # )
57
57
  public_class_method def self.request(opts = {})
58
58
  serial_obj = opts[:flipper_zero_obj]
59
- payload = "#{opts[:payload]}\r\n" if opts[:payload]
60
- response_before = PWN::Plugins::Serial.dump_session_data
59
+ payload = opts[:payload] ||= 'help'
60
+ payload = "#{payload}\r\n"
61
61
 
62
62
  PWN::Plugins::Serial.request(
63
63
  serial_obj: serial_obj,
64
64
  payload: payload
65
65
  )
66
- # response = PWN::Plugins::Serial.dump_session_data.clone
66
+ response = PWN::Plugins::Serial.dump_session_data.clone
67
67
  puts response.join
68
68
  PWN::Plugins::Serial.flush_session_data
69
69
 
70
- # response
70
+ response
71
71
  rescue StandardError => e
72
72
  disconnect(flipper_zero_obj: opts[:flipper_zero_obj]) unless opts[:flipper_zero_obj].nil?
73
73
  raise e
@@ -113,7 +113,7 @@ module PWN
113
113
  response = #{self}.request(
114
114
  flipper_zero_obj: 'required - flipper_zero_obj returned from #connect method',
115
115
  payload: 'required - payload to send to the device'
116
- )
116
+ );
117
117
 
118
118
  #{self}.disconnect(
119
119
  flipper_zero_obj: 'required - flipper_zero_obj returned from #connect method'
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.232'
4
+ VERSION = '0.5.233'
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.232
4
+ version: 0.5.233
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.