pwn 0.5.229 → 0.5.230

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: 001b5c31619468cfb8ec9da3effa118109f6af66b388d4c71a7a119d658fc28f
4
- data.tar.gz: 749fde686f3242b60d3da6b5d26488820a4b1c8e483dfdf914f84dfa416e6014
3
+ metadata.gz: 7af8e67a2f1debdf6740514a5c0f0b447d8b2e3020ec722c089ad7686492c760
4
+ data.tar.gz: 26fcb204bd1248eda0e941df4b0c7c55dacc8efa718fb67af994d3a3e66785a9
5
5
  SHA512:
6
- metadata.gz: 266e937c6b03158194cc17535ee7732398d8b5d62587a5954a953db3068c3652976731f7b498e94a6d8eab716d73202b676fcd13a9e7855732108aaf95cca028
7
- data.tar.gz: 3e2b4fa17bb40f7a43bb7fcef1c9ae488fc00e98ea5f6e1e86fa24eb51ea777c807814e776d634c4e2ef089782f509c3d7dc669520c9f3ae9ce1877a86877e65
6
+ metadata.gz: a3df6c9362495ef739f14ad4730624722639cbf60e666f2c75d9026b36d1b419edda106c8b03f03e8e958e2786354a05c71d1bbc4f1a92df9a64f34c62bcca42
7
+ data.tar.gz: e954c806a59456360e755695c0290acd2e067fde05982d6b81a2cd21b3fa22c95c6549e64e2b964e387eb265f86673d7b2c82e4b6b8d7b736483e6dcb9f3b3d1
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.229]:001 >>> PWN.help
40
+ pwn[v0.5.230]: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.229]:001 >>> PWN.help
55
+ pwn[v0.5.230]: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.229]:001 >>> PWN.help
65
+ pwn[v0.5.230]: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:
@@ -26,9 +26,9 @@ module PWN
26
26
  baud = opts[:baud] ||= 9_600
27
27
  data_bits = opts[:data_bits] ||= 8
28
28
  stop_bits = opts[:stop_bits] ||= 1
29
+ parity = opts[:parity] ||= :none
29
30
 
30
- parity = nil
31
- case opts[:parity].to_s.to_sym
31
+ case parity.to_s.to_sym
32
32
  when :even
33
33
  parity = 'E'
34
34
  when :odd
@@ -38,7 +38,8 @@ module PWN
38
38
  end
39
39
  raise "Invalid parity: #{opts[:parity]}" if parity.nil?
40
40
 
41
- mode = "#{data_bits}#{stop_bits}#{parity}"
41
+ mode = "#{data_bits}#{parity}#{stop_bits}"
42
+ puts mode
42
43
 
43
44
  serial_conn = UART.open(
44
45
  block_dev,
@@ -68,7 +69,7 @@ module PWN
68
69
 
69
70
  # Spin up a serial_obj session_thread
70
71
  Thread.new do
71
- serial_conn.read_timeout = -1
72
+ # serial_conn.read_timeout = -1
72
73
  serial_conn.flush
73
74
 
74
75
  loop do
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.229'
4
+ VERSION = '0.5.230'
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.229
4
+ version: 0.5.230
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.