pwn 0.5.523 → 0.5.525

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: ab21d035f6c1ef47c893dad5234480994c06df8fb79b3015e4cc2f6d58fde0d0
4
- data.tar.gz: f0dacbafdfa4713284efcef186e4c8ac84d3c0e165261099dc0a37eb6fcefb6c
3
+ metadata.gz: 67600c92927578c7598e62ddc4e785dba48057f26a8dfa91e9ea58fbc3737c35
4
+ data.tar.gz: 07ef92cad239ffdcbea358e34127d515d9553f4e444c9a069dfba4f196f82b2e
5
5
  SHA512:
6
- metadata.gz: 596f8c1b30760fe582f31306331507b6a7327942c6811ab7473395677982041d740d27f8ddadeca127fb1ff2add0df27b2de18d403e5b9d842b63ed9657e0d17
7
- data.tar.gz: 8a0341fa6245a4ec9c7abec0cef74de1f2f0b5357d0cd6d6527f205403d2152119d5bbad1e08915e56855d71b6b4645e29db60228669b7959d5400bab2a94342
6
+ metadata.gz: b4203ad36d4dc9cd1f0011e8de8b5c80babf85b5a5aa6dbae19410e8e9014c199990ef7f14216ab9e528af5bfeb7de06ee62d02f405f73a27cb7418f26db9bb2
7
+ data.tar.gz: 8d6bef379e1fec99bb489f60b82faa0038ad13cf1e92bbb2bf274ba8a962dff0e0e8fa1455fea93211125217f4fefa1696f3917239cd94ce7ec8c7337bff3819
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.523]:001 >>> PWN.help
40
+ pwn[v0.5.525]: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.4.7@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.523]:001 >>> PWN.help
55
+ pwn[v0.5.525]: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.4.7@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.523]:001 >>> PWN.help
65
+ pwn[v0.5.525]: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
@@ -135,32 +135,32 @@ begin
135
135
  scan_log = opts[:scan_log]
136
136
  decoder = opts[:decoder]
137
137
  location = opts[:location]
138
- keep_looping = opts[:keep_looping] ||= false
138
+ keep_looping = opts[:keep_looping]
139
139
 
140
140
  # Merge opts again to ensure we override profile values with CLI values
141
- loop_count = 1
142
- loop do
143
- PWN::SDR::GQRX.scan_range(
144
- gqrx_sock: gqrx_sock,
145
- start_freq: start_freq,
146
- target_freq: target_freq,
147
- demodulator_mode: demodulator_mode,
148
- bandwidth: bandwidth,
149
- audio_gain_db: audio_gain_db,
150
- squelch: squelch,
151
- precision: precision,
152
- strength_lock: strength_lock,
153
- rf_gain: rf_gain,
154
- intermediate_gain: intermediate_gain,
155
- baseband_gain: baseband_gain,
156
- scan_log: scan_log,
157
- decoder: decoder,
158
- location: location
159
- )
160
- break unless keep_looping
141
+ PWN::SDR::GQRX.scan_range(
142
+ gqrx_sock: gqrx_sock,
143
+ start_freq: start_freq,
144
+ target_freq: target_freq,
145
+ demodulator_mode: demodulator_mode,
146
+ bandwidth: bandwidth,
147
+ audio_gain_db: audio_gain_db,
148
+ squelch: squelch,
149
+ precision: precision,
150
+ strength_lock: strength_lock,
151
+ rf_gain: rf_gain,
152
+ intermediate_gain: intermediate_gain,
153
+ baseband_gain: baseband_gain,
154
+ scan_log: scan_log,
155
+ decoder: decoder,
156
+ location: location,
157
+ keep_looping: keep_looping
158
+ )
161
159
 
162
160
  loop_count += 1
163
- scan_log = "/tmp/pwn_sdr_gqrx_scan_#{PWN::SDR.hz_to_s(start_freq)}-#{PWN::SDR.hz_to_s(target_freq)}_#{Time.now.strftime('%Y-%m-%d')}-loop_#{loop_count}.json"
161
+ gqrx_sock = PWN::SDR::GQRX.connect(target: host, port: port)
162
+ log_timestamp = Time.now.strftime('%Y-%m-%d')
163
+ scan_log = "/tmp/pwn_sdr_gqrx_scan_#{PWN::SDR.hz_to_s(start_freq)}-#{PWN::SDR.hz_to_s(target_freq)}_#{log_timestamp}-l#{loop_count}.json"
164
164
  end
165
165
  puts 'Scan Complete.'
166
166
  rescue StandardError => e
data/lib/pwn/sdr/gqrx.rb CHANGED
@@ -652,7 +652,8 @@ module PWN
652
652
  # intermediate_gain: 'optional - Intermediate gain (defaults to 32.0)',
653
653
  # baseband_gain: 'optional - Baseband gain (defaults to 10.0)',
654
654
  # scan_log: 'optional - Path to save detected signals log (defaults to /tmp/pwn_sdr_gqrx_scan_<start_freq>-<target_freq>_<timestamp>.json)',
655
- # location: 'optional - Location string to include in AI analysis (e.g., "New York, NY", 90210, GPS coords, etc.)'
655
+ # location: 'optional - Location string to include in AI analysis (e.g., "New York, NY", 90210, GPS coords, etc.)',
656
+ # keep_looping: 'optional - Boolean to keep scanning indefinitely (defaults to false)'
656
657
  # )
657
658
 
658
659
  public_class_method def self.scan_range(opts = {})
@@ -677,6 +678,7 @@ module PWN
677
678
  scan_log = opts[:scan_log] ||= "/tmp/pwn_sdr_gqrx_scan_#{PWN::SDR.hz_to_s(hz_start)}-#{PWN::SDR.hz_to_s(hz_target)}_#{log_timestamp}.json"
678
679
  decoder = opts[:decoder]
679
680
  location = opts[:location] ||= 'United States'
681
+ keep_looping = opts[:keep_looping] || false
680
682
 
681
683
  step_hz = 10**(precision - 1)
682
684
  step_hz_direction = hz_start > hz_target ? -step_hz : step_hz
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.523'
4
+ VERSION = '0.5.525'
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.523
4
+ version: 0.5.525
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.