pwn 0.5.12 → 0.5.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/pwn/plugins/baresip.rb +4 -24
- 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: 077f484f2b9500cfa05ca631d5cf9d3b733e22bb098ab496040b6547eb250efc
|
4
|
+
data.tar.gz: 4cb5019625d4760c5a88df2787d0c64e2f9c8cd7b7ba207538674bb814ccd0c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a09a9d8f7eee168d9dbef8d90c52b8c7cfcc0bd3740c89e11d8d801cf81934e3e4dcc8d1a72c8d02aa565883580b44039e75a0fb0b23f1d32a2eaec5367170d3
|
7
|
+
data.tar.gz: 22129979d248c5027eece2188d42b7f693183b31e7c0a9b0fa9935bf340edc425110034ed4be2d84d857b3d231ad6b56b9fcba9ba5f38dee03605dad9e18aede
|
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.
|
40
|
+
pwn[v0.5.13]: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.
|
55
|
+
pwn[v0.5.13]: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.
|
65
|
+
pwn[v0.5.13]: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/lib/pwn/plugins/baresip.rb
CHANGED
@@ -454,13 +454,8 @@ module PWN
|
|
454
454
|
puts cmd_resp.xpath('//pre').text
|
455
455
|
|
456
456
|
puts red
|
457
|
-
#
|
458
|
-
|
459
|
-
forbidden = 'session closed: 403'
|
460
|
-
terminated = 'terminated (duration:'
|
461
|
-
# unavail = '503 Service Unavailable'
|
462
|
-
unavail = 'session closed: 503'
|
463
|
-
not_found = 'session closed: 404'
|
457
|
+
# Hangup if session is closed.
|
458
|
+
session_closed = ': session closed'
|
464
459
|
|
465
460
|
reason = 'recording limit reached'
|
466
461
|
seconds_recorded = 0
|
@@ -474,23 +469,8 @@ module PWN
|
|
474
469
|
line.include?('ua: using best effort AF: af=AF_INET')
|
475
470
|
end
|
476
471
|
|
477
|
-
if dump_session_data.select { |s| s.include?(
|
478
|
-
reason =
|
479
|
-
break
|
480
|
-
end
|
481
|
-
|
482
|
-
if dump_session_data.select { |s| s.include?(terminated) }.length.positive?
|
483
|
-
reason = 'call terminated by other party'
|
484
|
-
break
|
485
|
-
end
|
486
|
-
|
487
|
-
if dump_session_data.select { |s| s.include?(unavail) }.length.positive?
|
488
|
-
reason = 'SIP 503 (service unavailable)'
|
489
|
-
break
|
490
|
-
end
|
491
|
-
|
492
|
-
if dump_session_data.select { |s| s.include?(not_found) }.length.positive?
|
493
|
-
reason = 'SIP 404 (not found)'
|
472
|
+
if dump_session_data.select { |s| s.downcase.include?(session_closed) }.length.positive?
|
473
|
+
reason = dump_session_data.find { |s| s.downcase.include?(session_closed) }
|
494
474
|
break
|
495
475
|
end
|
496
476
|
|
data/lib/pwn/version.rb
CHANGED