pwn 0.5.61 → 0.5.62

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec464c3031975250eef48b7653e858ff40edce70a4da4a21b9f8d1e547d91483
4
- data.tar.gz: c084f4cd17c64a5d9ddee2f9b0d62477dff4a60f2628d17c9a4533ec2a2b6765
3
+ metadata.gz: 5b78feca18f7b658c6a1ef4cb65e2f40cab41101e4d31926caac9cdb293b8157
4
+ data.tar.gz: c3f3333e64e599efccac10eff086b724603afd3a7f966898bb380bbfc6ec4ff0
5
5
  SHA512:
6
- metadata.gz: c57b2c13075dd45f74ab328c27b553528ce5817e4f15b9a7522f27d032a2a3727f4801dbd663feb9922f2c2f5b4e6229369479aad8c64c5435ecf5f1966b337d
7
- data.tar.gz: 6538fa98dfff9c9d7953d4df3c01fe38f0ebbe0d432f05cff6c9d321179fb5d0e20a5390c28318c1620870173ca4d9adc9c5ea01339635774b924cab3fa0650d
6
+ metadata.gz: b24ff13b6f0e0437376208e912fe9fd3e2ef967add67f63d437396cb4c705e90f8620259b49d6bbf4af4b2c4b9c0595ff28faf22fac17bc441548bd26f58f32c
7
+ data.tar.gz: 71bd7188ce6a6390b64b0238f9723f050500c990690e55d60b1fd8e421a8ab0e43d0ef5787dd42f875476a6836961de9d06c80498ced7ef7842bdcfc955524e5
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.61]:001 >>> PWN.help
40
+ pwn[v0.5.62]: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.3.0@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.61]:001 >>> PWN.help
55
+ pwn[v0.5.62]: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.3.0@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.61]:001 >>> PWN.help
65
+ pwn[v0.5.62]: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:
data/bin/pwn_gqrx_scanner CHANGED
@@ -183,6 +183,14 @@ def gqrx_cmd(opts = {})
183
183
  # puts response.length
184
184
 
185
185
  response
186
+ rescue RuntimeError => e
187
+ puts 'WARNING: RF Gain is not supported by the radio backend.' if e.message.include?('Command: L RF_GAIN')
188
+ puts 'WARNING: Intermediate Gain is not supported by the radio backend.' if e.message.include?('Command: L IF_GAIN')
189
+ puts 'WARNING: Baseband Gain is not supported by the radio backend.' if e.message.include?('Command: L BB_GAIN')
190
+
191
+ raise e unless e.message.include?('Command: L RF_GAIN') ||
192
+ e.message.include?('Command: L IF_GAIN') ||
193
+ e.message.include?('Command: L BB_GAIN')
186
194
  end
187
195
 
188
196
  def init_freq(opts = {})
@@ -403,7 +411,7 @@ begin
403
411
 
404
412
  rf_gain = opts[:rf_gain] ||= 0.0
405
413
  rf_gain = rf_gain.to_f
406
- squelch_resp = gqrx_cmd(
414
+ rf_gain_resp = gqrx_cmd(
407
415
  gqrx_sock: gqrx_sock,
408
416
  cmd: "L RF_GAIN #{rf_gain}",
409
417
  resp_ok: 'RPRT 0'
@@ -411,7 +419,7 @@ begin
411
419
 
412
420
  intermediate_gain = opts[:intermediate_gain] ||= 32.0
413
421
  intermediate_gain = intermediate_gain.to_f
414
- squelch_resp = gqrx_cmd(
422
+ intermediate_resp = gqrx_cmd(
415
423
  gqrx_sock: gqrx_sock,
416
424
  cmd: "L IF_GAIN #{intermediate_gain}",
417
425
  resp_ok: 'RPRT 0'
@@ -419,7 +427,7 @@ begin
419
427
 
420
428
  baseband_gain = opts[:baseband_gain] ||= 10.0
421
429
  baseband_gain = baseband_gain.to_f
422
- squelch_resp = gqrx_cmd(
430
+ baseband_resp = gqrx_cmd(
423
431
  gqrx_sock: gqrx_sock,
424
432
  cmd: "L BB_GAIN #{baseband_gain}",
425
433
  resp_ok: 'RPRT 0'
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.61'
4
+ VERSION = '0.5.62'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.61
4
+ version: 0.5.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-22 00:00:00.000000000 Z
11
+ date: 2024-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport