pwn 0.5.61 → 0.5.62
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 +4 -4
- data/README.md +3 -3
- data/bin/pwn_gqrx_scanner +11 -3
- data/lib/pwn/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b78feca18f7b658c6a1ef4cb65e2f40cab41101e4d31926caac9cdb293b8157
|
|
4
|
+
data.tar.gz: c3f3333e64e599efccac10eff086b724603afd3a7f966898bb380bbfc6ec4ff0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
40
|
+
pwn[v0.5.62]:001 >>> PWN.help
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
[](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.
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
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.
|
|
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-
|
|
11
|
+
date: 2024-03-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|