pwn 0.5.55 → 0.5.57
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 +16 -14
- data/lib/pwn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be55cd1ef6de2ead835c5559f1b03e415bc78373669732ac2733670836a823c4
|
|
4
|
+
data.tar.gz: ae9385cbe7ea8ec60ab8089e5820a9a77618d95db8489cfc34fd85f9b024e6a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f51818e4dec719633a3c5e69b1cd86d676d2e36d031a1666570ac3cf91ab34a9bdcedbbb248e157f5c51667cda1425e25b2e776c5303db050fd7484ff8bcc466
|
|
7
|
+
data.tar.gz: 0bf0d8c6aac40dc0859c4ffdca6509c1fdd349935bdeb24f1704c23351f7dc682bef3133456d9a0d570c0ffba6cdd7a406b1fca7186f5d19c508b8a67ceb31c5
|
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.57]: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.57]: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.57]: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
|
@@ -31,7 +31,7 @@ OptionParser.new do |options|
|
|
|
31
31
|
opts[:audio_gain_db] = a
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
options.on('-bHZ', '--bandwidth=HZ', '<Optional - Set Bandwidth (Defaults to
|
|
34
|
+
options.on('-bHZ', '--bandwidth=HZ', '<Optional - Set Bandwidth 0.0 - SDR Bandwidth Limit, e.g. 20.000.000 (Defaults to 270.000)>') do |b|
|
|
35
35
|
opts[:bandwidth] = b
|
|
36
36
|
end
|
|
37
37
|
|
|
@@ -39,19 +39,19 @@ OptionParser.new do |options|
|
|
|
39
39
|
opts[:demodulator_mode] = d
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
options.on('-PINT', '--precision=INT', '<Optional - Precision of Frequency 1-12 (Defaults to
|
|
42
|
+
options.on('-PINT', '--precision=INT', '<Optional - Precision of Frequency 1-12 (Defaults to 5)>') do |p|
|
|
43
43
|
opts[:precision] = p
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
options.on('-SFLOAT', '--strength-lock=FLOAT', '<Optional - Strength to trigger lock on frequency (Defaults to -
|
|
46
|
+
options.on('-SFLOAT', '--strength-lock=FLOAT', '<Optional - Strength to trigger lock on frequency (Defaults to -45.0)>') do |s|
|
|
47
47
|
opts[:strength_lock] = s
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
options.on('-LFLOAT', '--lock-freq-duration=FLOAT', '<Optional - Duration to lock onto Freqency when Strength < --strength-lock value (Defaults to
|
|
50
|
+
options.on('-LFLOAT', '--lock-freq-duration=FLOAT', '<Optional - Duration to lock onto Freqency when Strength < --strength-lock value (Defaults to 0.25)>') do |l|
|
|
51
51
|
opts[:lock_on_freq_duration] = l
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
options.on('-QFLOAT', '--squelch=FLOAT', '<Optional - Squelch Threshold -
|
|
54
|
+
options.on('-QFLOAT', '--squelch=FLOAT', '<Optional - Squelch Threshold -150.0 to 0 (Defaults to -50.0)>') do |q|
|
|
55
55
|
opts[:squelch] = q
|
|
56
56
|
end
|
|
57
57
|
|
|
@@ -63,7 +63,7 @@ OptionParser.new do |options|
|
|
|
63
63
|
opts[:intermediate_gain] = i
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
-
options.on('-BFLOAT', '--basedband-gain=FLOAT', '<Optional - Baseband Gain 0.0-62.0 (Defaults to
|
|
66
|
+
options.on('-BFLOAT', '--basedband-gain=FLOAT', '<Optional - Baseband Gain 0.0-62.0 (Defaults to 10.0)>') do |b|
|
|
67
67
|
opts[:baseband_gain] = b
|
|
68
68
|
end
|
|
69
69
|
end.parse!
|
|
@@ -154,7 +154,8 @@ def gqrx_cmd(opts = {})
|
|
|
154
154
|
response = []
|
|
155
155
|
got_freq = false
|
|
156
156
|
# Read all responses from gqrx_sock.write
|
|
157
|
-
timeout = 0.
|
|
157
|
+
timeout = 0.001 if timeout.nil?
|
|
158
|
+
|
|
158
159
|
begin
|
|
159
160
|
response.push(gqrx_sock.readline.chomp) while gqrx_sock.wait_readable(timeout)
|
|
160
161
|
raise IOError if response.empty?
|
|
@@ -247,7 +248,8 @@ def init_freq(opts = {})
|
|
|
247
248
|
if_gain: if_gain,
|
|
248
249
|
bb_gain: bb_gain,
|
|
249
250
|
strength: current_strength,
|
|
250
|
-
strength_trigger_lock_on_freq: strength_lock
|
|
251
|
+
strength_trigger_lock_on_freq: strength_lock,
|
|
252
|
+
lock_on_freq_duration: lock_on_freq_duration
|
|
251
253
|
}
|
|
252
254
|
puts JSON.pretty_generate(init_freq_hash)
|
|
253
255
|
|
|
@@ -321,7 +323,7 @@ begin
|
|
|
321
323
|
demodulator_mode.upcase!
|
|
322
324
|
raise "ERROR: Invalid demodulator mode: #{demodulator_mode}" unless %w[OFF RAW AM FM WFM WFM_ST WFM_ST_OIRT LSB USB CW CWL CWU].include?(demodulator_mode)
|
|
323
325
|
|
|
324
|
-
bandwidth = opts[:bandwidth] ||= '
|
|
326
|
+
bandwidth = opts[:bandwidth] ||= '270.000'
|
|
325
327
|
|
|
326
328
|
puts "Setting demodulator mode to #{demodulator_mode} and bandwidth to #{bandwidth}..."
|
|
327
329
|
bandwidth = bandwidth.to_s.delete('.').to_i unless bandwidth.nil?
|
|
@@ -339,7 +341,7 @@ begin
|
|
|
339
341
|
resp_ok: 'RPRT 0'
|
|
340
342
|
)
|
|
341
343
|
|
|
342
|
-
squelch = opts[:squelch] ||= -
|
|
344
|
+
squelch = opts[:squelch] ||= -50.0
|
|
343
345
|
squelch = squelch.to_f
|
|
344
346
|
squelch_resp = gqrx_cmd(
|
|
345
347
|
gqrx_sock: gqrx_sock,
|
|
@@ -347,14 +349,14 @@ begin
|
|
|
347
349
|
resp_ok: 'RPRT 0'
|
|
348
350
|
)
|
|
349
351
|
|
|
350
|
-
precision = opts[:precision] ||=
|
|
352
|
+
precision = opts[:precision] ||= 5
|
|
351
353
|
precision = precision.to_i
|
|
352
354
|
raise "ERROR: Invalid precision: #{precision}" unless (1..12).include?(precision)
|
|
353
355
|
|
|
354
|
-
lock_on_freq_duration = opts[:lock_on_freq_duration] ||=
|
|
356
|
+
lock_on_freq_duration = opts[:lock_on_freq_duration] ||= 0.25
|
|
355
357
|
lock_on_freq_duration = lock_on_freq_duration.to_f
|
|
356
358
|
|
|
357
|
-
strength_lock = opts[:strength_lock] ||= -
|
|
359
|
+
strength_lock = opts[:strength_lock] ||= -45.0
|
|
358
360
|
strength_lock = strength_lock.to_f
|
|
359
361
|
|
|
360
362
|
rf_gain = opts[:rf_gain] ||= 16.0
|
|
@@ -373,7 +375,7 @@ begin
|
|
|
373
375
|
resp_ok: 'RPRT 0'
|
|
374
376
|
)
|
|
375
377
|
|
|
376
|
-
baseband_gain = opts[:baseband_gain] ||=
|
|
378
|
+
baseband_gain = opts[:baseband_gain] ||= 10.0
|
|
377
379
|
baseband_gain = baseband_gain.to_f
|
|
378
380
|
squelch_resp = gqrx_cmd(
|
|
379
381
|
gqrx_sock: gqrx_sock,
|
data/lib/pwn/version.rb
CHANGED