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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d514b15a63db15db79339971fcdef2bce732a73e37838618e839aefd47ce2af9
4
- data.tar.gz: 23d5501f5810546f3348c31f8230e0620dc23a1dd6390b18062d8c8f05bc4e91
3
+ metadata.gz: a6c816ffedc2894df4b53a12630f520b60c6948ecab662b527477c3d95d439e8
4
+ data.tar.gz: 6d7d1b7deeac4665d4b6173cf4d2cc9a9af66d9d06b861b6dbe1b09d764e2688
5
5
  SHA512:
6
- metadata.gz: fe9e53eb796c9abfc2c15ad603600420a7ad5a7500d26a319147ae1ffb852c6f4c7594c4fed061bab235464409f8990fea1eb7c8c2e19ff9b11bd2a08314a6a5
7
- data.tar.gz: '02409ac5271f7483f4efcf3978298804f5425ae3062aeb670262a712bb769d97c6de7125b5daee150aea923aaa32156dee280f07b59b3b97cd8b4055b966520d'
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.59]:001 >>> PWN.help
40
+ pwn[v0.5.60]: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.59]:001 >>> PWN.help
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.59]:001 >>> PWN.help
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 trigger lock on frequency (Defaults to -45.0)>') do |s|
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
- strength_trigger_lock_on_freq: strength_lock,
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
- strength_trigger_lock_on_freq: strength_lock,
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 (i % multiplier).zero?
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
- if approaching_detection && current_strength < prev_strength
305
- puts "**** Found a signal at ~ #{prev_freq} Hz ****"
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 at #{prev_freq} Hz ****"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.5.59'
4
+ VERSION = '0.5.60'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.59
4
+ version: 0.5.60
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.