pwn 0.4.551 → 0.4.553

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 37c116ff3072536f637e3b85299339fcff43cfae08fa907f51ef6db8f74bfeed
4
- data.tar.gz: bf01ca52b18146da07b3aa882981be1484fc56a5fc72845415056a0d61438245
3
+ metadata.gz: f6a9cf9077f04af8d1f05263ebf389014fc8d61847a2cc20d9e6f047c6c01c46
4
+ data.tar.gz: a70a0943345f3a5b4b1ee18f12d4fda080e1580dbf45af8a3dde677661d9fad7
5
5
  SHA512:
6
- metadata.gz: 4c4d7a6f950288b53d8850222c6a7f0ff22c54bf87de32cd7d842fde7ecef121374f1c1c6412f76fb26fb3fefc93b711b7b18e270d9b674c713e630f2174e381
7
- data.tar.gz: 18553d6f48fe65b9a4885f17a912c58953539fa044da6e1f8d70a1d81bf860789cf8b8626f75b612ade3962dc7692714b1d15d857f657cf5f5770983d55cb3f8
6
+ metadata.gz: 2fdd15710865e4d378a779ba5800f4483723b8b5a512abfb9d98a888a4d2ccc06a1bf9bffe279b84dd6e186df83ea7eec92f1f0200f28a042eef16b63d009511
7
+ data.tar.gz: b9bdf91a136054cd20b8f5aa6b12e49a8302c6812656a3bc031f157459522e5c49a395c141e4f16974472b0a45e3b9460bbba0644f7c26b45e668545a7296a28
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.1.2@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.551]:001 >>> PWN.help
40
+ pwn[v0.4.553]: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.1.2@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.551]:001 >>> PWN.help
55
+ pwn[v0.4.553]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -187,8 +187,8 @@ module PWN
187
187
  next unless File.exist?(screenlog_path)
188
188
 
189
189
  # Continuously consume contents of screenlog_path
190
- session_data = File.readlines(screenlog_path)
191
- session_data.delete_if do |line|
190
+ @session_data = File.readlines(screenlog_path)
191
+ @session_data.delete_if do |line|
192
192
  line.include?('ua: using best effort AF: af=AF_INET')
193
193
  end
194
194
  end
@@ -203,7 +203,7 @@ module PWN
203
203
  # session_data = PWN::Plugins::BareSIP.dump_session_data
204
204
 
205
205
  public_class_method def self.dump_session_data
206
- session_data
206
+ @session_data
207
207
  rescue StandardError => e
208
208
  raise e
209
209
  end
@@ -511,18 +511,22 @@ module PWN
511
511
 
512
512
  # TODO: Fix known issue - if remote terminates call early
513
513
  # all calls in thread pool will be stopped prematurely :-/
514
+ # This likely has something to do w/ data scoping issues in dump_session_data
514
515
  if dump_session_data.select { |s| s.include?(terminated) }.length.positive?
515
516
  reason = 'call terminated by other party'
517
+ flush_session_data
516
518
  break
517
519
  end
518
520
 
519
521
  if dump_session_data.select { |s| s.include?(unavail) }.length.positive?
520
522
  reason = 'SIP 503 (service unavailable)'
523
+ flush_session_data
521
524
  break
522
525
  end
523
526
 
524
527
  if dump_session_data.select { |s| s.include?(not_found) }.length.positive?
525
528
  reason = 'SIP 404 (not found)'
529
+ flush_session_data
526
530
  break
527
531
  end
528
532
 
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.4.551'
4
+ VERSION = '0.4.553'
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.4.551
4
+ version: 0.4.553
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.