pwn 0.5.279 → 0.5.280

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1305b14cb06bf37af02be9bae67675548ee58b5027584e9075f40edc6fbdcdb
4
- data.tar.gz: f01c6b1e804c971930662e6aa6d8f7d9c5b8eb6c2a0bab4dcff9956d11e1a2cf
3
+ metadata.gz: 31550d7a83b0e231bbaf07db506cec69ab8a99eae2f281439c44364fbeadbf13
4
+ data.tar.gz: bb4251b5884ad474b738c6b56a4edb1b5fd225b9697ef95ea025a7fcac4934f9
5
5
  SHA512:
6
- metadata.gz: d0bc62a5e5e0d50d49656c47c2070b57d9a1e5fcea44ae1666c73815729431d98820d895bd437f860f138028b3fa823bea7074af6dcdb887c2b1c863bd33a018
7
- data.tar.gz: 2ceb90153b66ca777cb6a452eda80a743f313a18497a21e21a607b8a7036156d18ae18e5b3d6b10c1dfc4003c6d988217a15328795ffa37b64d5e56e3ea67e08
6
+ metadata.gz: 5ea2a4ba93a123769e11414c21a98179614e02228db26046b4d07ae42defa2402ad8796188756c6006e3781e7f512e28491d90a0bbd7c63cce32560447f85057
7
+ data.tar.gz: 22577b3e2a7db491bde47101d1bd663f0fd8316fe39762e01e79cc6b3521ae47a45c86b57d29f1e6c44ba251a70f2fe262be5c1896fea527813a7445da7d8f7a
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.279]:001 >>> PWN.help
40
+ pwn[v0.5.280]: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.4.4@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.279]:001 >>> PWN.help
55
+ pwn[v0.5.280]: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.4.4@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.279]:001 >>> PWN.help
65
+ pwn[v0.5.280]: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/bin/pwn_mail_agent CHANGED
@@ -29,9 +29,7 @@ if opts.empty?
29
29
  exit 1
30
30
  end
31
31
 
32
- private
33
-
34
- def initiate_action
32
+ private_methods def initiate_action
35
33
  puts @list_agent_opts
36
34
  if @list_agent_opts
37
35
  puts "The following is an example YAML file for #{@agent_type}:\n#{@example_msg_body_yaml}"
@@ -27,9 +27,16 @@ module PWN
27
27
  "%<s1>07x0: %<s2>-40s %<s3>-16s\n",
28
28
  s1: index,
29
29
  s2: row.map { |pair| pair.map { |b| b.to_s(16).rjust(2, '0') }.join }.join(' '),
30
- s3: row.flat_map { |pair| pair.map { |b| (b >= 32 && b < 127 ? b.chr : '.') } }.flatten.join
30
+ s3: row.flat_map { |pair| pair.map { |b| (b >= 32 && b < 127 ? b.chr : '.') } }.join
31
31
  )
32
32
 
33
+ # fmt_row = format(
34
+ # "%<s1>07x0: %<s2>-40s %<s3>-16s\n",
35
+ # s1: index,
36
+ # s2: row.map { |pair| pair.map { |b| b.to_s(16).rjust(2, '0') }.join }.join(' '),
37
+ # s3: row.flat_map { |pair| pair.map { |b| (b >= 32 && b < 127 ? b.chr : '.') } }.flatten.join
38
+ # )
39
+
33
40
  io.write(fmt_row)
34
41
 
35
42
  if hashed
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.279'
4
+ VERSION = '0.5.280'
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.279
4
+ version: 0.5.280
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.