pwn 0.5.57 → 0.5.58
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/bin/pwn_gqrx_scanner +11 -11
- 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: 0da642f1edb8037cac919389d67915e49d7278b22263df754a01bf7bc1bb3d64
|
4
|
+
data.tar.gz: 2b7a06914ea20e5bdc21cebe7dcadae532c12bed37980ced533b19d54278f7aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5b15e8a1f3ee7d85eb5fc90e0458526abb8c9c3788013687b39fa5fbb8e77c57fc6f26da3f0a05b2587e9179ce94ef5704a8ab89f126d3711ae7eb0ad47f7bb
|
7
|
+
data.tar.gz: 5f63dca98c0f3d4e78d1e38ac07d9ec4f7548b732afb96519731897206eb2d3ecde0ccd1c949046400509bd197682ee9a68e57447b884c4f82a46b859998c6f8
|
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.58]: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.
|
55
|
+
pwn[v0.5.58]: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.58]: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
@@ -47,8 +47,8 @@ OptionParser.new do |options|
|
|
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 0.
|
51
|
-
opts[:
|
50
|
+
options.on('-LFLOAT', '--lock-freq-duration=FLOAT', '<Optional - Duration to lock onto Freqency when Strength < --strength-lock value (Defaults to 0.5)>') do |l|
|
51
|
+
opts[:lock_freq_duration] = l
|
52
52
|
end
|
53
53
|
|
54
54
|
options.on('-QFLOAT', '--squelch=FLOAT', '<Optional - Squelch Threshold -150.0 to 0 (Defaults to -50.0)>') do |q|
|
@@ -190,7 +190,7 @@ def init_freq(opts = {})
|
|
190
190
|
demodulator_mode = opts[:demodulator_mode]
|
191
191
|
bandwidth = opts[:bandwidth]
|
192
192
|
this_freq = opts[:this_freq]
|
193
|
-
|
193
|
+
lock_freq_duration = opts[:lock_freq_duration]
|
194
194
|
strength_lock = opts[:strength_lock]
|
195
195
|
|
196
196
|
demod_n_passband = gqrx_cmd(
|
@@ -249,11 +249,11 @@ def init_freq(opts = {})
|
|
249
249
|
bb_gain: bb_gain,
|
250
250
|
strength: current_strength,
|
251
251
|
strength_trigger_lock_on_freq: strength_lock,
|
252
|
-
|
252
|
+
lock_freq_duration: lock_freq_duration
|
253
253
|
}
|
254
254
|
puts JSON.pretty_generate(init_freq_hash)
|
255
255
|
|
256
|
-
sleep
|
256
|
+
sleep lock_freq_duration if current_strength > strength_lock
|
257
257
|
|
258
258
|
init_freq_hash
|
259
259
|
end
|
@@ -265,7 +265,7 @@ def scan_range(opts = {})
|
|
265
265
|
start_freq = opts[:start_freq]
|
266
266
|
target_freq = opts[:target_freq]
|
267
267
|
precision = opts[:precision]
|
268
|
-
|
268
|
+
lock_freq_duration = opts[:lock_freq_duration]
|
269
269
|
strength_lock = opts[:strength_lock]
|
270
270
|
|
271
271
|
multiplier = 10**(precision - 1)
|
@@ -278,7 +278,7 @@ def scan_range(opts = {})
|
|
278
278
|
demodulator_mode: demodulator_mode,
|
279
279
|
bandwidth: bandwidth,
|
280
280
|
this_freq: this_freq,
|
281
|
-
|
281
|
+
lock_freq_duration: lock_freq_duration,
|
282
282
|
strength_lock: strength_lock
|
283
283
|
)
|
284
284
|
end
|
@@ -290,7 +290,7 @@ def scan_range(opts = {})
|
|
290
290
|
demodulator_mode: demodulator_mode,
|
291
291
|
bandwidth: bandwidth,
|
292
292
|
this_freq: this_freq,
|
293
|
-
|
293
|
+
lock_freq_duration: lock_freq_duration,
|
294
294
|
strength_lock: strength_lock
|
295
295
|
)
|
296
296
|
|
@@ -353,8 +353,8 @@ begin
|
|
353
353
|
precision = precision.to_i
|
354
354
|
raise "ERROR: Invalid precision: #{precision}" unless (1..12).include?(precision)
|
355
355
|
|
356
|
-
|
357
|
-
|
356
|
+
lock_freq_duration = opts[:lock_freq_duration] ||= 0.5
|
357
|
+
lock_freq_duration = lock_freq_duration.to_f
|
358
358
|
|
359
359
|
strength_lock = opts[:strength_lock] ||= -45.0
|
360
360
|
strength_lock = strength_lock.to_f
|
@@ -393,7 +393,7 @@ begin
|
|
393
393
|
start_freq: start_freq,
|
394
394
|
target_freq: target_freq,
|
395
395
|
precision: precision,
|
396
|
-
|
396
|
+
lock_freq_duration: lock_freq_duration,
|
397
397
|
strength_lock: strength_lock,
|
398
398
|
squelch: squelch
|
399
399
|
)
|
data/lib/pwn/version.rb
CHANGED