pwn 0.4.765 → 0.4.767

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: d5a665966bbf0f64f8260459cbf77654bdcaac4fcd88c707fefba6f9e435173a
4
- data.tar.gz: 39a078b690e06dccd04a749ef52f4f8dc55746cae716f4b189229671da1b907a
3
+ metadata.gz: 8da3043274c7a3c13a9ec908414c9356e069e259ed2fbf9fb04cc7f632282d08
4
+ data.tar.gz: 3fa8571ff20dc98fd549e7020cc1fa3b49c8bb6ced2e2e10203fad7e39f87276
5
5
  SHA512:
6
- metadata.gz: 5681526ae59ba21c9526ecbc378f576740d8fa9c2a1bf3d1a696d40a5c8cba4eed7a27116865402787ebca3a438ba66aa0092923dcd087fca95ed3ba6073b103
7
- data.tar.gz: 9c15233536f8b2334743e2db49d5b488a513b8f3eda85f96040bee4665319c8855d3f14a3c36b3214eac854cbd40d23426872c7b2dd8137404e7d4cf1c7bb2fd
6
+ metadata.gz: a49259126f056a3dbd8f66fd65271d5ff94ab7103dbde0537a52ae68f2143e9c22f0086d9e0766b310004db507448e18cb3790acb28237298384029a3565d6b2
7
+ data.tar.gz: 430c3a5c5cd93290b7a2d53c7b8e4af3d347b216004f0a4c2559bfb3d093175eb0a807e90964543525021f82d40c1d9ada067016b71cde004de79ef06f694b9e
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.2@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.765]:001 >>> PWN.help
40
+ pwn[v0.4.767]: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.2.2@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.765]:001 >>> PWN.help
55
+ pwn[v0.4.767]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
data/bin/pwn_bdba_groups CHANGED
@@ -53,15 +53,13 @@ begin
53
53
  token: token
54
54
  )
55
55
 
56
- raise 'No groups found in BDBA. Use the --create flag to create one.' if group_resp.nil?
56
+ raise 'No groups found in BDBA. Use the --create flag to create your first group.' if groups_resp.nil?
57
57
 
58
58
  group_arr = groups_resp[:groups].select { |g| g[:name] == list_group_name }
59
59
  group_arr_sorted = group_arr.sort_by { |g| g[:id] }
60
60
  group = group_arr_sorted.last
61
61
 
62
- raise "ERROR: BDBA Group ID Not Found for: #{list_group_name}" if group.empty?
63
-
64
- parent_id = group[:id]
62
+ parent_id = group[:id] unless group.nil?
65
63
 
66
64
  if list_group_name
67
65
  group_id = parent_id
@@ -69,7 +67,7 @@ begin
69
67
  token: token,
70
68
  group_id: group_id
71
69
  )
72
- puts group_details_resp.to_json if group_details_resp.is_a?(Hash)
70
+ puts group_details_resp.to_json
73
71
  exit 0
74
72
  end
75
73
  end
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.765'
4
+ VERSION = '0.4.767'
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.765
4
+ version: 0.4.767
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.