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 +4 -4
- data/README.md +2 -2
- data/lib/pwn/plugins/baresip.rb +20 -8
- 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: d1e99d054c32a3080283ed394aa8711220266af5e2ca115e59e99ff55101b87e
|
4
|
+
data.tar.gz: 892cf61a00ea0d0e090f0cb458635c0188fce92735a41f5b00ad7831776bf52a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
55
|
+
pwn[v0.4.552]:001 >>> PWN.help
|
56
56
|
```
|
57
57
|
|
58
58
|
|
data/lib/pwn/plugins/baresip.rb
CHANGED
@@ -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