pwn 0.5.59 → 0.5.60
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 -9
- 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: a6c816ffedc2894df4b53a12630f520b60c6948ecab662b527477c3d95d439e8
|
4
|
+
data.tar.gz: 6d7d1b7deeac4665d4b6173cf4d2cc9a9af66d9d06b861b6dbe1b09d764e2688
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0c01cb75c862332b5cd527c615301999731e640cf8252e766fcbb46eaa912dd8ff26a85de0ab9338157638748174efd4268cb7daf06f49b7eeaed76bb72556e
|
7
|
+
data.tar.gz: cf6d6bf0aa6ca87ab063b39129d9a3b5bb1281912a426ecc2ba29c80e063f3e4530c71b0274eb55ea1971655d0d48fd9d413f511e143dc131d8d4b844fd65482
|
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.60]: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.60]: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.60]: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
@@ -43,7 +43,7 @@ OptionParser.new do |options|
|
|
43
43
|
opts[:precision] = p
|
44
44
|
end
|
45
45
|
|
46
|
-
options.on('-SFLOAT', '--strength-lock=FLOAT', '<Optional - Strength to
|
46
|
+
options.on('-SFLOAT', '--strength-lock=FLOAT', '<Optional - Strength to lock onto frequency (Defaults to -45.0)>') do |s|
|
47
47
|
opts[:strength_lock] = s
|
48
48
|
end
|
49
49
|
|
@@ -249,7 +249,7 @@ def init_freq(opts = {})
|
|
249
249
|
if_gain: if_gain,
|
250
250
|
bb_gain: bb_gain,
|
251
251
|
strength: current_strength,
|
252
|
-
|
252
|
+
strength_lock: strength_lock,
|
253
253
|
lock_freq_duration: lock_freq_duration
|
254
254
|
}
|
255
255
|
|
@@ -280,12 +280,12 @@ def scan_range(opts = {})
|
|
280
280
|
if_gain: 0.0,
|
281
281
|
bb_gain: 0.0,
|
282
282
|
strength: 0.0,
|
283
|
-
|
283
|
+
strength_lock: strength_lock,
|
284
284
|
lock_freq_duration: lock_freq_duration
|
285
285
|
}
|
286
286
|
if start_freq > target_freq
|
287
287
|
start_freq.downto(target_freq) do |this_freq|
|
288
|
-
next unless (
|
288
|
+
next unless (this_freq % multiplier).zero?
|
289
289
|
|
290
290
|
init_freq_hash = init_freq(
|
291
291
|
gqrx_sock: gqrx_sock,
|
@@ -300,9 +300,10 @@ def scan_range(opts = {})
|
|
300
300
|
prev_strength = prev_freq_hash[:strength]
|
301
301
|
prev_freq = prev_freq_hash[:frequency]
|
302
302
|
|
303
|
-
approaching_detection = true if current_strength > prev_strength
|
304
|
-
|
305
|
-
|
303
|
+
approaching_detection = true if current_strength > prev_strength &&
|
304
|
+
current_strength > strength_lock
|
305
|
+
if approaching_detection && current_strength <= prev_strength
|
306
|
+
puts "\n**** Found a signal ~ #{prev_freq} Hz ****"
|
306
307
|
puts JSON.pretty_generate(prev_freq_hash)
|
307
308
|
approaching_detection = false
|
308
309
|
end
|
@@ -325,9 +326,10 @@ def scan_range(opts = {})
|
|
325
326
|
prev_strength = prev_freq_hash[:strength]
|
326
327
|
prev_freq = prev_freq_hash[:frequency]
|
327
328
|
|
328
|
-
approaching_detection = true if current_strength > prev_strength
|
329
|
+
approaching_detection = true if current_strength > prev_strength &&
|
330
|
+
current_strength > strength_lock
|
329
331
|
if approaching_detection && current_strength < prev_strength
|
330
|
-
puts "\n**** Discovered a signal
|
332
|
+
puts "\n**** Discovered a signal ~ #{prev_freq} Hz ****"
|
331
333
|
puts JSON.pretty_generate(prev_freq_hash)
|
332
334
|
approaching_detection = false
|
333
335
|
end
|
data/lib/pwn/version.rb
CHANGED