pwn 0.4.550 → 0.4.552

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: cd134f7000b7e270496c44285ef40619ca81d42dff7df5fd228ca721cac4de53
4
- data.tar.gz: d3ce94291f20a73cc78ebeee6f9ee88833ff7199056b7ed1863abd5e08de9032
3
+ metadata.gz: d1e99d054c32a3080283ed394aa8711220266af5e2ca115e59e99ff55101b87e
4
+ data.tar.gz: 892cf61a00ea0d0e090f0cb458635c0188fce92735a41f5b00ad7831776bf52a
5
5
  SHA512:
6
- metadata.gz: d410d706464b6deb80fb6c30fddddac9234f51143ea072cf7d05ff528306c0c65e57ccc7f36fb1ee9f9c3a6b990c7c3c486252039a883aa63fda3a72a5903069
7
- data.tar.gz: 01e7cc4937cb0ec0337e28d932f8c7ff92be9220dcc00820997a35b66be1b1b10679ac2974ec27fd1770ef54501fc793008f7323854cf9c76c5e0ebca47639c1
6
+ metadata.gz: ffca232d03cd3f35338e22c4f58957db41f45b247097aa57c5338720c51187b87fe4f1d416426326a652a99ca608b05fed522b1844eff15ebc72eaaf09e96063
7
+ data.tar.gz: 2cad3d29f583cf0307e26bc6077d86d96dc75fd7ecb4c8f4ef9053064da847ec9c91d667f2fdd9e7b099373bf843468f95c609755b21e9f074fbd127a49467c5
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.550]:001 >>> PWN.help
40
+ pwn[v0.4.552]: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.550]:001 >>> PWN.help
55
+ pwn[v0.4.552]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -509,6 +509,8 @@ module PWN
509
509
  print "#{seconds_to_record}s to record - remaining: #{format('%-9.9s', countdown)}"
510
510
  print "\r"
511
511
 
512
+ # TODO: Fix known issue - if remote terminates call early
513
+ # all calls in thread pool will be stopped prematurely :-/
512
514
  if dump_session_data.select { |s| s.include?(terminated) }.length.positive?
513
515
  reason = 'call terminated by other party'
514
516
  break
@@ -530,14 +532,14 @@ module PWN
530
532
  puts end_of_color
531
533
 
532
534
  # Move to ensure block?
533
- call_stopped = Time.now.strftime('%Y-%m-%d_%H.%M.%S')
534
- puts "\n#{green}#{call_stopped} >>> #{reason} #{target_num}#{end_of_color}"
535
- call_resp_hash[:call_stopped] = call_stopped
536
- call_resp_hash[:reason] = reason
537
- puts "call termination reason: #{reason}"
538
-
539
- stop(baresip_obj: baresip_obj)
540
- FileUtils.rm_rf(config_root_for_target_num)
535
+ # call_stopped = Time.now.strftime('%Y-%m-%d_%H.%M.%S')
536
+ # puts "\n#{green}#{call_stopped} >>> #{reason} #{target_num}#{end_of_color}"
537
+ # call_resp_hash[:call_stopped] = call_stopped
538
+ # call_resp_hash[:reason] = reason
539
+ # puts "call termination reason: #{reason}"
540
+
541
+ # stop(baresip_obj: baresip_obj)
542
+ # FileUtils.rm_rf(config_root_for_target_num)
541
543
  # End of ensure block
542
544
 
543
545
  absolute_recording = ''
@@ -617,6 +619,16 @@ module PWN
617
619
  call_resp_hash
618
620
  rescue StandardError => e
619
621
  raise e
622
+ ensure
623
+ # Ensure baresip session is stopped
624
+ call_stopped = Time.now.strftime('%Y-%m-%d_%H.%M.%S')
625
+ puts "\n#{green}#{call_stopped} >>> #{reason} #{target_num}#{end_of_color}"
626
+ call_resp_hash[:call_stopped] = call_stopped
627
+ call_resp_hash[:reason] = reason
628
+ puts "call termination reason: #{reason}"
629
+
630
+ stop(baresip_obj: baresip_obj)
631
+ FileUtils.rm_rf(config_root_for_target_num)
620
632
  end
621
633
 
622
634
  # Supported Method Parameters::
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.550'
4
+ VERSION = '0.4.552'
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.550
4
+ version: 0.4.552
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.