pwn 0.5.10 → 0.5.11

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: c1b027d0d28d26dab4f24fd8f06f81309c6a66f6649ba51983ab020f4d41d25d
4
- data.tar.gz: ecf4d3183294450e9dadbb5266b38ac61c9af524f889560c0b82b0a22009852e
3
+ metadata.gz: 1166d531105fe91c4800c93a9cad918750415df08064e18fa28ce175a6daa3f7
4
+ data.tar.gz: 584b2f2d74a81905d2831b6ac7dffdf05152690a04b016147955c90a11f75cbb
5
5
  SHA512:
6
- metadata.gz: d2dc18f121e4bcf6ecffad944af64fa04a373b66d802a0de0f41680ed584694892927ecd2340b63646c07b75b0fa47870763793b87819f2b9e2fed4cc680760b
7
- data.tar.gz: df33214d5b0364992e07fe3cd0f03c4776d6d11d1fede10c6eb376ef42c8ec41e4b4168531f9201b5171f9463ed77ac9fb319b4f5a4e1844f9c0b3486b452f56
6
+ metadata.gz: 92c96fac207368f754e37086233bee4ca5ba186eb6b8a911fb820818e617226d6c44a0e051aedb67fa6e45727c2217e32246093ada982da491199bccc54f48fd
7
+ data.tar.gz: d47c8a7afef9bd92dcdc5b970136f1ef74d1fb2b465ce7b242daae9b17193ec1667b07b88a5a8e737bf13c0add6961690125babcf5707fa485af6f669c93f2e8
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.10]:001 >>> PWN.help
40
+ pwn[v0.5.11]: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.10]:001 >>> PWN.help
55
+ pwn[v0.5.11]: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.10]:001 >>> PWN.help
65
+ pwn[v0.5.11]: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:
@@ -454,7 +454,9 @@ module PWN
454
454
  puts cmd_resp.xpath('//pre').text
455
455
 
456
456
  puts red
457
+ # TODO: This is a brittle mess. Refactor.
457
458
  # Conditions to hangup when less than seconds_to_record
459
+ forbidden = '403 Caller Origination Number is Invalid'
458
460
  terminated = 'terminated (duration:'
459
461
  unavail = '503 Service Unavailable'
460
462
  not_found = 'session closed: 404 Not Found'
@@ -471,6 +473,11 @@ module PWN
471
473
  line.include?('ua: using best effort AF: af=AF_INET')
472
474
  end
473
475
 
476
+ if dump_session_data.select { |s| s.include?(forbidden) }.length.positive?
477
+ reason = 'SIP 403 (forbidden)'
478
+ break
479
+ end
480
+
474
481
  if dump_session_data.select { |s| s.include?(terminated) }.length.positive?
475
482
  reason = 'call terminated by other party'
476
483
  break
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.10'
4
+ VERSION = '0.5.11'
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.10
4
+ version: 0.5.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.